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?
|
Accepted answer
![]()
Ralph Schoon (62.7k●3●36●43)
| answered Mar 28 '15, 5:12 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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
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?
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
![]()
Not without doing something like Ralph suggests. The product does not provide any mechanism to log what plugins get called during any transaction
|