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

Operation participant call only once or call on each save

I have one question about operation participant ...whether the
 Operation participant call only once when we create a new workitem or it call on each save of the workitem ?

Because I was create a operation participant and tried it to update work-item description, it was  works fine when I was created a new RCN but it didn't update workitem description next time when I was again save it.

0 votes



One answer

Permanent link
 Operation participants get called on every save. If you only want your participant to do something once you will need to check for it within your code and just return without doing anything.

You can tell if the operation in question is an initial save by checking the value of ISaveParameter#getOldState(), which will return null if the work item is being saved is new.

0 votes

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
× 1,701
× 102
× 9

Question asked: Aug 16 '12, 4:16 a.m.

Question was seen: 5,766 times

Last updated: Aug 16 '12, 4:42 a.m.

Confirmation Cancel Confirm