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

How to throw an exception in the Participant plugin? will the work item created if the participant fails?

Hi every one,

 
When writing a participant plugin to link a newly created work item to a parent which meets certain conditions, how to throw an exception if the parent was not found  ? what could be the best option?  will the work item saves in the DB?

waiting for reply..
Thanks,
Jyothsna.

0 votes


Accepted answer

Permanent link

 These questions are all discussed and answered in https://jazz.net/library/article/1000 (lab 3). https://rsjazz.wordpress.com/2012/11/30/a-create-approval-work-item-save-participant/ shows also code for it. 


When you add a severity ERROR information to the information collector, the follow up action should prevent the save. As far as I understand , the whole preconditions and follow up actions are run in a transaction, that is also the reason, why pre-conditions and follow up actions should be fast.

lakshmi jyothsna selected this answer as the correct answer

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
× 10,944

Question asked: Jul 27 '20, 1:08 a.m.

Question was seen: 926 times

Last updated: Jul 27 '20, 2:54 a.m.

Related questions
Confirmation Cancel Confirm