-
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.
Fix issue with repetition counter variables not getting created for c…
…ase migration
- Loading branch information
1 parent
19f1fa3
commit 0cd0140
Showing
6 changed files
with
251 additions
and
0 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
43 changes: 43 additions & 0 deletions
43
...sources/org/flowable/cmmn/test/migration/repetition-2tasks-new-repetition-2tasks.cmmn.xml
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,43 @@ | ||
<?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" xmlns:design="http://flowable.org/design" targetNamespace="http://flowable.org/cmmn"> | ||
<case id="repetitionTaskCase" name="RepetitionTaskCase"> | ||
<casePlanModel id="onecaseplanmodel1" name="Case plan model"> | ||
<planItem id="planItemInitialTask" name="initialTask" definitionRef="initialTask"> | ||
<itemControl> | ||
<repetitionRule flowable:counterVariable="initialCounter" /> | ||
</itemControl> | ||
</planItem> | ||
<planItem id="planItemDependingTask" name="dependingTask" definitionRef="dependingTask"> | ||
<itemControl> | ||
<repetitionRule flowable:counterVariable="dependingCounter" /> | ||
</itemControl> | ||
<entryCriterion id="entryCriterion1" sentryRef="sentryentryCriterion1" /> | ||
</planItem> | ||
<planItem id="planItemExtraInitialTask" name="extraInitialTask" definitionRef="extraInitialTask"> | ||
<itemControl> | ||
<repetitionRule flowable:counterVariable="extraInitialCounter" /> | ||
</itemControl> | ||
</planItem> | ||
<planItem id="planItemExtraDependingTask" name="extraDependingTask" definitionRef="extraDependingTask"> | ||
<itemControl> | ||
<repetitionRule flowable:counterVariable="extraDependingCounter" /> | ||
</itemControl> | ||
<entryCriterion id="entryCriterion2" sentryRef="sentryentryCriterion2" /> | ||
</planItem> | ||
<sentry id="sentryentryCriterion1"> | ||
<planItemOnPart id="sentryOnPartentryCriterion1" sourceRef="planItemInitialTask"> | ||
<standardEvent>complete</standardEvent> | ||
</planItemOnPart> | ||
</sentry> | ||
<sentry id="sentryentryCriterion2"> | ||
<planItemOnPart id="sentryOnPartentryCriterion2" sourceRef="planItemExtraInitialTask"> | ||
<standardEvent>complete</standardEvent> | ||
</planItemOnPart> | ||
</sentry> | ||
<humanTask id="initialTask" name="initialTask" /> | ||
<humanTask id="dependingTask" name="dependingTask" /> | ||
<humanTask id="extraInitialTask" name="extraInitialTask" /> | ||
<humanTask id="extraDependingTask" name="extraDependingTask" /> | ||
</casePlanModel> | ||
</case> | ||
</definitions> |
25 changes: 25 additions & 0 deletions
25
...mmn-engine/src/test/resources/org/flowable/cmmn/test/migration/repetition-2tasks.cmmn.xml
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" xmlns:design="http://flowable.org/design" targetNamespace="http://flowable.org/cmmn"> | ||
<case id="repetitionTaskCase" name="RepetitionTaskCase"> | ||
<casePlanModel id="onecaseplanmodel1" name="Case plan model"> | ||
<planItem id="planItemInitialTask" name="initialTask" definitionRef="initialTask"> | ||
<itemControl> | ||
<repetitionRule flowable:counterVariable="initialCounter" /> | ||
</itemControl> | ||
</planItem> | ||
<planItem id="planItemDependingTask" name="dependingTask" definitionRef="dependingTask"> | ||
<itemControl> | ||
<repetitionRule flowable:counterVariable="dependingCounter" /> | ||
</itemControl> | ||
<entryCriterion id="entryCriterion1" sentryRef="sentryentryCriterion1" /> | ||
</planItem> | ||
<sentry id="sentryentryCriterion1"> | ||
<planItemOnPart id="sentryOnPartentryCriterion1" sourceRef="planItemInitialTask"> | ||
<standardEvent>complete</standardEvent> | ||
</planItemOnPart> | ||
</sentry> | ||
<humanTask id="initialTask" name="initialTask" /> | ||
<humanTask id="dependingTask" name="dependingTask" /> | ||
</casePlanModel> | ||
</case> | ||
</definitions> |
19 changes: 19 additions & 0 deletions
19
...t/resources/org/flowable/cmmn/test/migration/repetition-task-new-repetition-task.cmmn.xml
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,19 @@ | ||
<?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" xmlns:design="http://flowable.org/design" targetNamespace="http://flowable.org/cmmn"> | ||
<case id="repetitionTaskCase" name="RepetitionTaskCase"> | ||
<casePlanModel id="onecaseplanmodel1" name="Case plan model"> | ||
<planItem id="planItemrepeatableTask" name="repeatableTask" definitionRef="repeatableTask"> | ||
<itemControl> | ||
<repetitionRule flowable:counterVariable="repetitionCounter" /> | ||
</itemControl> | ||
</planItem> | ||
<planItem id="planItemrepeatableTask2" name="repeatableTask2" definitionRef="repeatableTask2"> | ||
<itemControl> | ||
<repetitionRule flowable:counterVariable="repetitionCounter2" /> | ||
</itemControl> | ||
</planItem> | ||
<humanTask id="repeatableTask" name="repeatableTask" /> | ||
<humanTask id="repeatableTask2" name="repeatableTask2" /> | ||
</casePlanModel> | ||
</case> | ||
</definitions> |
13 changes: 13 additions & 0 deletions
13
...-cmmn-engine/src/test/resources/org/flowable/cmmn/test/migration/repetition-task.cmmn.xml
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,13 @@ | ||
<?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" xmlns:design="http://flowable.org/design" targetNamespace="http://flowable.org/cmmn"> | ||
<case id="repetitionTaskCase" name="RepetitionTaskCase"> | ||
<casePlanModel id="onecaseplanmodel1" name="Case plan model"> | ||
<planItem id="planItemrepeatableTask" name="repeatableTask" definitionRef="repeatableTask"> | ||
<itemControl> | ||
<repetitionRule flowable:counterVariable="repetitionCounter" /> | ||
</itemControl> | ||
</planItem> | ||
<humanTask id="repeatableTask" name="repeatableTask" /> | ||
</casePlanModel> | ||
</case> | ||
</definitions> |