Skip to main content

Auto Complete

Can be used with: Stage, CasePlanModel

The attribute autoComplete controls the completion of a stage instance. The following table describes the completion criteria of a stage instance based on the autoComplete property.

  • autoComplete = true: There are no children in the ACTIVE state, and all required (see Required Rule) children are COMPLETED, DISABLED or TERMINATED.
  • autoComplete = false: There are no children in the ACTIVE state, and
    • all children are COMPLETED, DISABLED or TERMINATED, or
    • on manual completion using CaseService#completeCaseExecution, all required (see Required Rule) children are COMPLETED, DISABLED or TERMINATED.

For a CasePlanModel the property autoComplete can be set as follows:

<case id="case">
<casePlanModel id="CasePlanModel_1" autoComplete="true">

...

</casePlanModel>
</case>

For a Stage, the following XML can be used:

<case id="case">
<casePlanModel id="CasePlanModel_1" autoComplete="true">

<planItem id="PI_Stage_1" definitionRef="Stage_1" />

<stage id="Stage_1" autoComplete="true"/>

</casePlanModel>
</case>