It's all about the answers!

Ask a question

Using Workitem/workflow to trigger action


m sawires (1463268) | asked Sep 17 '09, 4:49 p.m.
Hello,
Can I use a workflow to define the state that a workItem can be in and programmatically trigger an associated action based on a given event?
The question is can one use workflow and workItem to automate processes?
Do permission to trigger workflow action are enable and working?
Thank you for sharing

3 answers



permanent link
Marcel Bihr, Jazz Work Item team (1.4k) | answered Sep 18 '09, 4:20 a.m.
JAZZ DEVELOPER
Hi
You can use the work item client library to programmatically trigger workflow actions. Workflow states on a work item can only be changed using workflow actions; direct modifications on the state attribute are not supported. The permissions are checked for the user that executes the save operation.
The wiki page https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation has some information about using the plain java client library.

Regards

Marcel
Jazz Work Item team.

permanent link
m sawires (1463268) | answered Sep 28 '09, 6:16 p.m.
Thanks, I was able to change WI states by changing workflow actions programmatically but what I really need is to be able to perform an action (invoke some Java code) when a WI state changes. I guess I need to use the Event Handler but it is disabled under Configuration Data or Project Configuration.
Any help or sample is welcome...
Thanks

Hi
You can use the work item client library to programmatically trigger workflow actions. Workflow states on a work item can only be changed using workflow actions; direct modifications on the state attribute are not supported. The permissions are checked for the user that executes the save operation.
The wiki page https://jazz.net/wiki/bin/view/Main/ProgrammaticWorkItemCreation has some information about using the plain java client library.

Regards

Marcel
Jazz Work Item team.

permanent link
Marcel Bihr, Jazz Work Item team (1.4k) | answered Sep 29 '09, 2:48 a.m.
JAZZ DEVELOPER
Hi
You may want to have a look at follow-up actions .

https://jazz.net/wiki/bin/view/Main/PreconditionFollowupCreation

Regards

Marcel
Jazz Work Item team

Your answer


Register or 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.