Auto Complete

Этот раздел перенесён из документации Camunda 7 и в дальнейшем будет доработан с учётом особенностей OpenBPM Engine

Can be used with: Stage, CasePlanModel

{{< cmmn-symbol type="marker-auto-complete" >}}

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 (<a href="Required Rule">see Required Rule</a>) 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 (<a href="Required Rule">see Required Rule</a>) 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>

Лицензия и атрибуция

Эта документация была создана на базе материала "Camunda 7 Docs" от Camunda, находится под лицензией Creative Commons Attribution-ShareAlike 3.0 Unported License .

Оригинал документации: https://docs.camunda.org