Custom Process Advisor using RTC SDK
Hi all,
I followed the content of the article referenced below to create a custom process advisor plugin that is designed to walk the relationship of linked work items. I am using RTC 3.0 and I did make the necessary translations from the article (written against 2.x) and was able to get the example in the article fully deployed and working. The problems started after I needed to add several imports to create the functionality I am looking for. The relevant custom source code is below. http://jazz.net/library/article/495/ When it runs I get the following error in the process advisor: An unhandled exception occurred during "Prohibit Save (Hello World Advisor)".The service 'helloworldadvisor.HelloWorldProhibitSave@245c245c' failed to find the required service 'interface com.ibm.team.links.common.service.ILinkService'. Check <prerequisites> in plugin.xml. I Googled this and looked it up in the forums and it appears that others are saying that I would have to manually edit the plug.xml file. This seems an unlikely task to me. So, I tried anyway but it had no effect. I'm sure I did something wrong because I didn't know what to enter for some of the element attributes. When I looked up the jar that contains the offending interface I scanned the tomcat directories and was unable to find it on the server. That makes me think that perhaps it needs to be packaged with my plugin. No idea how I would do that. Hoping some can point out what I need to change in my plugin, feature or site update project. The source code is follows.
|
Accepted answer
Hello,
The process runtime (that runs your operation advisor) is not able to find the link service because it has not been loaded. It has not been loaded because it has not been specificed as a required service. To specify it as a required service, you can add an extensionService element in the plugin.xml file and list the service in the prerequisites section. Here is an example of a required service in an operation advisor that I pulled from a test plugin:
Martha Jazz Developer, Process Component Some additional information regarding the problem I have posted above. <operationAdvisor> Ralph Schoon selected this answer as the correct answer
|
4 other answers
Some additional information regarding the problem I have posted above.
The plugin.xml file:
A screen shot of the dependencies listed in the RTC plugin project. http://dl.dropbox.com/u/2766268/RTC%20Advisor%20Problem%201.png |
Many thanks Martha. I was able to add the prereqs and got further in my testing.
Shouldn't the plugin project be writing these prereqs to the xml file for us? -Andy |
Hello,
In case I would have to support the functionnalities that are actually offered in a custom Clearquest schema (similar to the Former Analyst CQ schema) within RTC, I know we can create custom workitems, custom workflows and even _if i'm correct_ customized edition views. But what arethe things that you cannot do today in RTC 3.0.1 regarding the defintion of a workflow for a custom work item? Regards, Olivier Comments
ANIL ABRAHAM
commented Sep 20 '12, 2:47 p.m.
in RTC 4 , <extensionservice> is considered as "Unknown element" , so please watch out
Albert Yao
commented Nov 17 '13, 10:11 a.m.
What does "Unknown Element" mean? |
When I add "prerequisites" element to plugin.xml, it gives a warning "Element 'prerequisites' is not legal as a child of element 'extensionService'", that's very confusing and misleading!!!
|
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.