Configure stages to wait for adhoc tasks to be completed

Hello,

I wanted to know if there was a way to make a stage or task wait till a Adhoc task or sub task, defined at run-time through Flowable Task application is completed.

Thanks in advance.

Hello,

Is there any update on this?

I also have another query. Is there any way to explicitly mark a stage as complete, irrespective of status of the tasks in the stage.

Thanks in advance.

No, right now not. When the root task is completed, the corresponding plan item instance is completed which triggers stage completion.

Are you adding tasks through the TaskService?

One way is to get the corresponding plan item instance through a PlanItemInstanceQuery. With that result, you can call CmmnRuntimeService#completeStagePlanItemInstance.

Yes, I am creating the tasks using the TaskService.

Is there a way for me to do it using only the Modeler?

Right now the logic doesn’t do that, but i agree it probably should do that.

No, completing a stage is a runtime action, so you need to trigger it trough a runtime API.

Is there any workaround for this?
Only with Modeler.