05-16-2011 10:35 AM
taskService.complete(taskId, vars); the variables are not saved against the activityInstanceId or the execution it is running in, but only against the process instance. 05-24-2011 03:28 AM
07-12-2012 10:48 AM
07-16-2012 03:29 AM
07-26-2012 09:50 AM
Workaround:
- Use taskService.setvariablesLocal() or delegateTask.setVariableLocal() to ensure task-id is used in history, instead of passing the when calling "completeTask"
- THe variables passed in taskService.complete are written to the process-instance indeed, this is normal behavior. By default (not using setVariableLocal) If there is no variable present for a given key in the task/execution, the parent is checked. If the value key is present on the parent it's set there. This goes on until the root of the execution-tree. If process-instance is reached and no child-executions contained the variable already, it's set on the process-instance.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.