Can be used with: Stage, CasePlanModel

    Auto Complete - 图1

    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:
    1. <case id="case">
    2. <casePlanModel id="CasePlanModel_1" autoComplete="true">
    3. ...
    4. </casePlanModel>
    5. </case>

    For a Stage, the following XML can be used:

    1. <case id="case">
    2. <casePlanModel id="CasePlanModel_1" autoComplete="true">
    3. <planItem id="PI_Stage_1" definitionRef="Stage_1" />
    4. <stage id="Stage_1" autoComplete="true"/>
    5. </casePlanModel>
    6. </case>

    原文: https://docs.camunda.org/manual/7.9/reference/cmmn11/markers/auto-complete/