It's all about the answers!

Ask a question

Manipulating Work Item Workflow States using java server API


vikrant kamble (1323196) | asked May 17 '16, 2:19 a.m.
 Hi Team I am following Manipulating Work Item Workflow States link to change work item state using java server API.
I have added below plugin into plugin dependencies
 com.ibm.team.process.service, com.ibm.team.workitem.common, com.ibm.team. workitem.service, com.ibm.team.process.common, com.ibm.team.repository.common, com.ibm.team.repository.service

but at this line
additionalParams.add(IExtensionsDefinitions.UPDATE_PARENT_STATE_EXTENSION_ID);

I am getting error as IExtensionsDefinitions cannot be resolved to a variable.
Could anyone please tell me what am I missing, do I need to add more plugins into plugin dependencies tab.
How can I solve this error? 
My RTC version is 5.0.2

Accepted answer


permanent link
Ralph Schoon (63.1k33646) | answered May 17 '16, 2:39 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
IExtensionsDefinitions.UPDATE_PARENT_STATE_EXTENSION_ID is just a String like

public static final String IExtensionsDefinitions.UPDATE_PARENT_STATE_EXTENSION_ID="my.company.extension.id";
vikrant kamble selected this answer as the correct answer

Comments
vikrant kamble commented May 17 '16, 2:42 a.m. | edited May 17 '16, 2:44 a.m.

 Hi Ralph,

"my.company.extension.id" by this should I pass Id of my extension that I am developing
Or this could be null


vikrant kamble commented May 17 '16, 2:57 a.m. | edited May 17 '16, 2:58 a.m.

 Hi Raplh,

It worked for me, I passed id of my extension. Also if we are passing null, we get null pointer exception.


Ralph Schoon commented May 17 '16, 3:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

 You can take any string. You don't have to pass the additional parameter and you can use other save methods. If you pass additional parameter, you want to make sure the string is unique.

Your answer


Register or 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.