It's all about the answers!

Ask a question

How to add precondition in Workflow Action?


Vikash Singh (421865) | asked Feb 02 '15, 6:25 a.m.
edited Feb 02 '15, 12:34 p.m. by Geoffrey Clemm (30.0k23035)

I added workflow action and would like to add precondition for the action.

Please guide me,How to add precondition for created workflow action.


Comments
Ralph Schoon commented Feb 02 '15, 6:38 a.m. | edited Feb 02 '15, 6:38 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

What precondition should that be?


Vikash Singh commented Feb 02 '15, 7:10 a.m. | edited Feb 02 '15, 7:11 a.m.

I can add some script which will check the some activity or action is completed before doing the created workflow action.

One answer



permanent link
Ralph Schoon (60.7k33643) | answered Feb 02 '15, 7:23 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
You can configure the operational behavior that is available in the process configuration. E.g. as described in Lab 5 here: https://jazz.net/library/article/1093

With respect to JavaScript, please read the first two sections of that lab 5. JavaScript is not really able to do much based on state changes.

If the operational behavior (for work item save) is not available, the only way is to create your own operational behavior as Java client/server extension.  One example with the links to the relevant additional information is described here: https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/

Your answer


Register or to post your answer.