-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to not create a repetitionCounter variable for repetition …
…elements in CMMN
- Loading branch information
1 parent
2e209bf
commit f4f003c
Showing
12 changed files
with
249 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...ble/cmmn/test/itemcontrol/RepetitionRuleTest.testPlanItemLocalVariablesIgnoreCounter.cmmn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns="http://www.omg.org/spec/CMMN/20151109/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:flowable="http://flowable.org/cmmn" xmlns:cmmndi="http://www.omg.org/spec/CMMN/20151109/CMMNDI" xmlns:dc="http://www.omg.org/spec/CMMN/20151109/DC" xmlns:di="http://www.omg.org/spec/CMMN/20151109/DI" targetNamespace="http://www.flowable.org/casedef"> | ||
<case id="repeatingTask" name="repeatingTask" flowable:initiatorVariableName="initiator"> | ||
<casePlanModel id="casePlanModel"> | ||
<planItem id="planItem1" name="My Task" definitionRef="humanTask1"> | ||
<itemControl> | ||
<repetitionRule flowable:ignoreCounterVariable="true" /> | ||
</itemControl> | ||
</planItem> | ||
<humanTask id="humanTask1" name="My Task"></humanTask> | ||
</casePlanModel> | ||
</case> | ||
<cmmndi:CMMNDI> | ||
<cmmndi:CMMNDiagram id="CMMNDiagram_repeatingTask"> | ||
<cmmndi:CMMNShape id="CMMNShape_casePlanModel" cmmnElementRef="casePlanModel"> | ||
<dc:Bounds height="714.0" width="718.0" x="40.0" y="40.0"></dc:Bounds> | ||
<cmmndi:CMMNLabel></cmmndi:CMMNLabel> | ||
</cmmndi:CMMNShape> | ||
<cmmndi:CMMNShape id="CMMNShape_planItem1" cmmnElementRef="planItem1"> | ||
<dc:Bounds height="80.0" width="100.0" x="183.0" y="218.0"></dc:Bounds> | ||
<cmmndi:CMMNLabel></cmmndi:CMMNLabel> | ||
</cmmndi:CMMNShape> | ||
</cmmndi:CMMNDiagram> | ||
</cmmndi:CMMNDI> | ||
</definitions> |
25 changes: 25 additions & 0 deletions
25
...itemcontrol/RepetitionRuleTest.testPlanItemLocalVariablesWithCollectionIgnoreCounter.cmmn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns="http://www.omg.org/spec/CMMN/20151109/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:flowable="http://flowable.org/cmmn" xmlns:cmmndi="http://www.omg.org/spec/CMMN/20151109/CMMNDI" xmlns:dc="http://www.omg.org/spec/CMMN/20151109/DC" xmlns:di="http://www.omg.org/spec/CMMN/20151109/DI" targetNamespace="http://www.flowable.org/casedef"> | ||
<case id="repeatingTask" name="repeatingTask" flowable:initiatorVariableName="initiator"> | ||
<casePlanModel id="casePlanModel"> | ||
<planItem id="planItem1" name="My Task" definitionRef="humanTask1"> | ||
<itemControl> | ||
<repetitionRule flowable:collectionVariable="myCollection" flowable:elementVariable="item" flowable:elementIndexVariable="itemIndex" flowable:ignoreCounterVariable="true" /> | ||
</itemControl> | ||
</planItem> | ||
<humanTask id="humanTask1" name="My Task" flowable:priority="${itemIndex}"></humanTask> | ||
</casePlanModel> | ||
</case> | ||
<cmmndi:CMMNDI> | ||
<cmmndi:CMMNDiagram id="CMMNDiagram_repeatingTask"> | ||
<cmmndi:CMMNShape id="CMMNShape_casePlanModel" cmmnElementRef="casePlanModel"> | ||
<dc:Bounds height="714.0" width="718.0" x="40.0" y="40.0"></dc:Bounds> | ||
<cmmndi:CMMNLabel></cmmndi:CMMNLabel> | ||
</cmmndi:CMMNShape> | ||
<cmmndi:CMMNShape id="CMMNShape_planItem1" cmmnElementRef="planItem1"> | ||
<dc:Bounds height="80.0" width="100.0" x="183.0" y="218.0"></dc:Bounds> | ||
<cmmndi:CMMNLabel></cmmndi:CMMNLabel> | ||
</cmmndi:CMMNShape> | ||
</cmmndi:CMMNDiagram> | ||
</cmmndi:CMMNDI> | ||
</definitions> |
34 changes: 34 additions & 0 deletions
34
...ntrol/RepetitionVariableAggregationTest.testSequentialRepeatingUserTaskIgnoreCounter.cmmn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns="http://www.omg.org/spec/CMMN/20151109/MODEL" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:flowable="http://flowable.org/cmmn" | ||
xsi:schemaLocation="http://www.omg.org/spec/CMMN/20151109/MODEL https://www.omg.org/spec/CMMN/20151109/CMMN11.xsd" | ||
targetNamespace="http://flowable.org/cmmn"> | ||
|
||
<case id="repeatingTask" name="repeatingTask" flowable:initiatorVariableName="initiator"> | ||
<casePlanModel id="casePlanModel"> | ||
|
||
<planItem id="planItem1" name="My Task" definitionRef="humanTask1"> | ||
<itemControl> | ||
<repetitionRule flowable:ignoreCounterVariable="true"> | ||
<extensionElements> | ||
<flowable:variableAggregation target="reviews" createOverviewVariable="true"> | ||
<variable sourceExpression="${task:get(taskId).assignee}" target="userId" /> | ||
<variable source="approved" /> | ||
<variable source="description" /> | ||
</flowable:variableAggregation> | ||
</extensionElements> | ||
<condition><![CDATA[${repetitionCounter < nrOfLoops}]]></condition> | ||
</repetitionRule> | ||
</itemControl> | ||
</planItem> | ||
|
||
<planItem id="planItem2" name="My Task 2" definitionRef="humanTask2" /> | ||
|
||
<humanTask id="humanTask1" name="My Task" flowable:taskIdVariableName="taskId"/> | ||
|
||
<humanTask id="humanTask2" name="My Task"></humanTask> | ||
|
||
</casePlanModel> | ||
</case> | ||
|
||
</definitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters