Using Workitem/workflow to trigger action
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
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
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.
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.
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
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.