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

What's the difference between preconditions and follow-up actions for saving work items

 This seems quite clear as the document stated like: Preconditions are checked before the save operation runs; follow-up actions are checked after the save operation.

However, when doing the RTC extension, I added a follow-up action and expect that the act will be done after the Work Item be saved. But the follow-up action will be always triggered during the save operation. Is there a way to do the follow-up action after the WI saved? Thanks.

0 votes


Accepted answer

Permanent link
see the accepted answer here for some of my sample code that does this
https://jazz.net/forum/questions/156477/rtc-extension-participant

Hongwu Wang selected this answer as the correct answer

1 vote

Comments

 Thanks. i will try that.


One other answer

Permanent link
Both of these extensions happen during each transaction. (workitem save, source code deliver operations, etc)

the precondition  gives the extension the ability to stop the transaction before any data is saved
   the precondition cannot modify the proposed new data
the follow-up extension is triggered AFTER the data is saved, but before the transaction ends
   the follow-up cannot modify the data to be saved, however, it can cause ANOTHER transaction to modify the data
    ie (save it again)
 

1 vote

Comments

Hi Sam, Thanks for your answer. Could you give me some more details about how to trigger ANOTHER transaction to modify the data? Actually I want to change the WI data, like adding links, when saving the Work Item. Do you know how can I do that? Thanks again for your help. /Hongwu

Also https://rsjazz.wordpress.com/2012/11/27/resolve-parent-if-all-children-are-resolved-participant/ as well as other follow up actions use this. As stated in the posts, you need to be a ware that a save will trigger another operation to be run and you might need to suppress that using with additional parameters.

AND the 'other operation' also triggers the pre-condition, which COULD reject the save..

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

Question asked: Nov 26 '14, 5:32 a.m.

Question was seen: 2,784 times

Last updated: Nov 26 '14, 10:09 a.m.

Confirmation Cancel Confirm