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 theACTIVEstate, and all required (see Required Rule) children areCOMPLETED,DISABLEDorTERMINATED.autoComplete = false: There are no children in theACTIVEstate, and- all children are
COMPLETED,DISABLEDorTERMINATED, or - on manual completion using
CaseService#completeCaseExecution, all required (see Required Rule) children areCOMPLETED,DISABLEDorTERMINATED.
- all children are
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>