Custom RTC plug-in not loaded when adding com.ibm.team.*.client dependency to manifest.inf
Accepted answer
All should mention which APi they use. On the server you can use WorkItemCommon and WorkItemServer. See for example https://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/ as opposed to the client API in https://rsjazz.wordpress.com/2012/10/01/adding-approvals-to-work-items-using-the-plain-java-client-libraries/
Search for work item on the blog for more examples.
Comments
Thank's Ralph for your reply. You are right - I got confused with the libraries. It's good to have the Create Approval Sample Source Code here so that I can dig into that sample and adapt it to what I need. Great Job.
After further investigations I saw that the "Create approval work item save participant" server extension depends on client extensions too. When trying to load the plugin to RTC 4.0.4 exactly the same happens as with my previous experiment - the "Follow-up action" is not available. After removing the client dependencies the action is available.
Thanks for the feedback, I will try to find time to look into my code and remove dependencies that should not be there. The issue is, if you run on the SDK, you see client and server code and can potentially mix things up.
You would notice the issue only if you really deploy on a server environment.