How to set preconditions programatically ?
Amit Ghatge (19●10)
| asked Jun 02 '19, 9:11 a.m.
edited Jun 03 '19, 2:13 a.m. by Ralph Schoon (63.7k●3●36●48) Hi,
I am trying to set preconditions & follow up actions programatically using plain java API. Manually what we do is create a new configuration and then for save operation we set some preconditions & follow up actions. What i want to achieve is to create a new configuration for save work item operation (using plain java api). So do you guys know how can i achieve it ? I couldn't find any java documentation/API to create a new configuration for save work item operation
Thanks
|
Accepted answer
Ralph Schoon (63.7k●3●36●48)
| answered Jun 03 '19, 2:35 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Amit, there is no documented API for this. You basically have to manipulate the process configuration XML file and save it.
This is an example how this can be done. Note that this is potentially dangerous.
IProcessClientService processClient = (IProcessClientService) teamRepository .getClientLibrary(IProcessClientService.class); Amit Ghatge selected this answer as the correct answer
Comments
Amit Ghatge
commented Jun 03 '19, 4:46 a.m.
Thanks Ralph ! It seems manipulating the process XML is the only way to achieve it. |
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.