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
Accepted answer
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";
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.