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

Programatically change workitem state

I know that this question has been asked several times before and I did my due diligence to read through all of them. I am asking this very same question again because, although I have followed the solutions recommended in those topics, I cannot trigger a programmatic change of state for my workitems.

I have a participant that is responsible to trigger a workflow change when certain conditions are met: all approvals are closed, the current state is a particular one in the workflow.

What I am doing is to invoke the following piece of code :

IStatus saveStatus = fWorkItemServer.saveWorkItem2 (workItemWorkingCopy, null, workflowAction);

where the workflowAction is a string representation of the ID of the target state. This ID is retrieved from an IWorkflowInfo object.

By the way, the target state is a direct successor of the current state of the workitem.

Well, this code does exactly nothing. So, what am I missing here? Have I forgot to make some preparations?

NB : I have also followed the UpdateParentParticipants example on the rsjazz.net site.


0 votes


Be the first one to answer this question!

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,938

Question asked: May 06 '13, 9:17 a.m.

Question was seen: 3,016 times

Last updated: May 06 '13, 9:17 a.m.

Confirmation Cancel Confirm