Reopening a task in a process


#1

For scenario- a->b->c->d->f
|
E

note : Here E is attached to C …

here a, b,d,e,f are user task
Q:1. Can we reopen task any task and regain the state of process before closing or in between.

Q:2:If C is decision task and on YES it goes to ‘d’ and on NO it goes to ‘E’
User has completed C task with Yes, so currently d task is open.
If user reopens the task c again and inputs ‘NO’ then task E is opened again.


#2

Check out :

https://docs…org/manual/7.4/webapps/tasklist/task-lifecycle/

Task lifecycle indicates that you cannot reopen a closed task. You can instatiate a new instance of a previous task. But you can’t reopen instance of a closed task.


#3

I understood that we cant reopen the same instance of task, But in above scenario how can we achieve the same ?
The way I think that either we create the same process with different processId and complete till the task we want to reopen or generate a workflow which actually have a loop back for those task which we wants to reopen.


#4

correct me if I am wrong or suggest me a different approach if u think of one.

thanks


#5

I found a way out …using
https://docs.camunda.org/manual/7.6/user-guide/process-engine/process-instance-modification/


#6

I have the same scenario that i have to send back to previous UserTask at certain condtions. How can we do it without changing Task Ids and other details of completed task.

A->B->C->D can be reversed to D->C->B .


#7

You will have to redesign your process or needs. The lifecycle of a task is not supposed to support this. The task instance id would change.


#8

Thanks StephenOTT for your valuable input.

But in case i want details of completed task like assignee,comments and variables etc of a process instance and reassigne or set the same to newly created task id after send back to previous usertask. How can we do it ? Also if it can be an approach to achieve it ?