How to set preconditions programatically ?
![]()
Amit Ghatge (19●8)
| asked Jun 02 '19, 9:11 a.m.
edited Jun 03 '19, 2:13 a.m. by Ralph Schoon (62.3k●3●36●43) 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 (62.3k●3●36●43)
| 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
|