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

Manipulating Work Item Workflow States using java server API

 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

0 votes


Accepted answer

Permanent link
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

0 votes

Comments

 Hi Ralph,

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

 Hi Raplh,

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

 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 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,934
× 411
× 369
× 24

Question asked: May 17 '16, 2:19 a.m.

Question was seen: 2,870 times

Last updated: May 17 '16, 3:36 a.m.

Confirmation Cancel Confirm