Case Task
A Case task calls another CMMN case as a "subcase" in the calling case, similar to the way a Call Activity works in BPMN.
A Case task may be either Blocking or Non-Blocking. A Non-Blocking task is marked completed immediately upon activation for purposes of satisfying completion of its containing stage but otherwise continues to execute normally.
Task Configuration
Task configuration involves selecting the called case, setting task attributes, and data mapping to the case inputs and outputs.
Selecting Called Case
To select the called case, you can click the Case/Link to Existing Process action on the CMMN ribbon.
This opens a view of the Digital Enterprise Graph, from which you select a CMMN model and then a case in that model.
The Case task then inherits the name of the called case and the task has a lock icon in upper right to indicate the link. Changes in the called case are synchronized with the Case task in CMMN.
Alternatively, if you click on the task type icon, you do not go to the Digital Enterprise Graph but instead a new blank page in the existing model is created, similar to creating a child page in Workflow Modeler.
Setting Task Attributes
From the Attributes context menu, you can set the following:
-
Manual Activation (default true) - Case is not started without human activation, if Manual Activation rule is true.
-
Required (default false) - Case must be completed or terminated in order to complete the containing stage, if Required rule is true.
-
Blocking (default true) - Task is completed when the called case is completed. If false, task marked completed immediately, before called case is completed.
-
Repeat (default false) - Following completion, task may be retriggered, if Repetition rule is true.
Data Mapping
The inputs of a Case task are defined as the inputs of the called case. Likewise, the outputs of a Case task are defined as the outputs of the called case. You cannot change either of them from the calling case model.
To define the case inputs and outputs, click Attributes/InputsOutputs on the case plan model shape.
Data mapping to and from a Process task follows the pattern detailed in data input mapping and data output mapping.