Hi,
I am trying to update instructions and assign user groups using WorkflowService_JAXWS.createProcess(ProcessDefinition...) but am not getting the expected results. I am updating the ProcessDefinition before creating a ProcessInstance but the ProcessInstance is using the original Process Definition instead of the updated one. Is there something I'm missing?
The following are the steps I took.
ProcessDefinition processDefinition = workflowService.getProcessDefinition(workflowMapID);
List<Activity> activities = processDefinition.getActivities();
for (Activity activity: activities)
{
if (activity.getInstructions() != null && meets certain criteria)
{
activity.setInstructions("some updated instructions");
}
}
WorkflowService_JAXWS.createProcess(processDefinition...)
The result however doesn't have the updated instructions but instead still contained the instructsion from the original map. I tried updating user groups for each activity as well and that didn't get updated either.
Thanks in advance.