Starting task execution randomly

Hi All,

Is it possible to choose any node in process definition and start execution from there.

For e.g) process has task 1->task2->task3, where task3 is in progress. I just want to start execution from task 2 and also task 3 should continue as it is. Is it possible to acheive this programatically re-executing particular task or path of execution??

Thanks & Regards,
Devakumar J

Hi @Devakumar_Jayaraman,

I think process instance modification is what you are looking for.

Cheers,
Thorben

Thanks thorben.

This helps a lot. Also is it possible to add new random task programatically to process instance which is not defined in the process definition.

Thanks & Regards,
Devakumar J

Hi,

You can create standalone user tasks in the Java API via TaskService#newTask and TaskService#saveTask. You can link these to an existing user task via Task#setParentTask.

There is no API to add arbitrary BPMN activities at runtime.

Cheers,
Thorben