Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC API - Is there a way to check if a specific advisor has ran from within a participant?

I'm trying to handle the case where a participant is enabled without a corresponding advisor. Is there a way to check if the advisor has already ran from within a paticipant's API?

0 votes


Accepted answer

Permanent link
 If you created the code for both, you can add a special save parameter string and test for that in the participant. See https://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ and look for additionalsaveparameter.
Zaid Al-Khishman selected this answer as the correct answer

1 vote

Comments

The problem is here both my advisor and my participant are parts of a deliver operation so I don't think this method can be utilized here. My understanding is that this method assumes that 'operation.getOperationData()' is an instance of ISaveParameter which I don't think is true for a deliver operation. Maybe I missed something here or is there an alternative way to do this for a deliver operation?

I was thinking instead about creating a file using something that is unique and global to the operation via the advisor and deleting it via the participant. Still unsure about what this may imply.

note that you could get multiple concurrent invocations of the advisor/participant chains from requests from multiple clients (client side and web).

The additional parameter might be available there as well. I don't know.

On a second thought, the additional parameters are only available during a save operation. So they don't apply for advisors. I'd suggest to search the Eclipse forum for a way to communicate across extensions. You might have to create your own extension that allows to do this.


One other answer

Permanent link
Not without doing something like Ralph suggests.  The product does not provide any mechanism to log what plugins get called during any transaction

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,954

Question asked: Mar 27 '15, 4:50 p.m.

Question was seen: 3,205 times

Last updated: Apr 01 '15, 3:04 a.m.

Confirmation Cancel Confirm