Set Task to belong to another process in Camunda

Viewed 53

I have process 1 and task 1 started for that process. I have process 2 and task 2 started for that process.

Is it possible to set task 2 to belong to process 1?

What I tried is the following:

mergeTicketTasks.forEach(task -> ((TaskEntity) task).setProcessInstanceId(baseTicketId));

and it is updating the process instanceId of the task but when requesting a list of tasks for process instance 1 I am not getting task 2. Additionally I am not able to see task 2 in the Camunda UI anymore.

So to summarise is it possible to make a task to belong to another process?

1 Answers
Related