Hi all!
Within a process, I want to go back to a task that was executed before and go through the process again from the selected task using the Flowable API without using the process diagram.
found this and it’s work
runtimeService.createChangeActivityStateBuilder()
.processInstanceId(processInstanceId)
.moveActivityIdTo("sourceTaskId", "targetTaskId")
.changeState();
And do the same from a subprocess? The subprocess should be deleted and the parent process should be repositioned as the active task.
For this i think should be work it, but i still dont check it
runtimeService.createChangeActivityStateBuilder()
.moveExecutionsToSingleActivityId(subprocessExecutionId, targetActivitiInParentId)