I've got a problem with administrating the flow of the process.
In my case the observer might change the step of process.
For example the administrator of the process shown below can cancel while user task 2 reserved and re create user task 1 for an other actual owner with changed content.
i tried getTask method of TaskService class to copy and add a new task with new content but get some errors with dealing hibernate to evict the task.
Is there an other way to manage the flov of the process without changing the bpmn file.
Thanks in advance
In my opinion you should more look into task life cycle methods (as defined by WSHT spec) rather than modifying task instances. For instance you could use forward or delegate methods (depending on your needs) and then setDocumentContent to modify task content (variables) of the task.
Thank you for your reply ,you are right i need more look into the task life cycle but in my case changing task status is not enough.
Administrator can exit the current task(human task 2 or human task 3) and restart the completed task which is human task 1 in the image.forward or delegate is not enough for this.
The image is not clear so first task is human task 1 and second task is human task 2 and third task is human task 3