-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support listening to a variable change event with multiple elements i…
…n bpmn and cmmn
- Loading branch information
1 parent
5f56cc4
commit 98fde0c
Showing
7 changed files
with
195 additions
and
7 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
33 changes: 33 additions & 0 deletions
33
...st/eventlistener/VariableEventListenerTest.testTriggerMultipleVariableEventListeners.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,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns="http://www.omg.org/spec/CMMN/20151109/MODEL" | ||
xmlns:flowable="http://flowable.org/cmmn" | ||
targetNamespace="http://flowable.org/cmmn"> | ||
<case id="variableListener" name="Variable listener"> | ||
<casePlanModel id="casePlanModel"> | ||
<planItem id="planItemA" name="A" definitionRef="taskA"/> | ||
<planItem id="variableEventListenerPlanItem" definitionRef="variableEventListener"/> | ||
<planItem id="planItemB" name="B" definitionRef="taskB"> | ||
<entryCriterion id="entryTaskB" sentryRef="sentryOnVariableEventListener"/> | ||
</planItem> | ||
<planItem id="variableEventListenerPlanItem2" definitionRef="variableEventListener2"/> | ||
<planItem id="planItemC" name="C" definitionRef="taskC"> | ||
<entryCriterion id="entryTaskC" sentryRef="sentryOnVariableEventListener2"/> | ||
</planItem> | ||
<sentry id="sentryOnVariableEventListener"> | ||
<planItemOnPart id="sentryOnvariableEvent" sourceRef="variableEventListenerPlanItem"> | ||
<standardEvent>occur</standardEvent> | ||
</planItemOnPart> | ||
</sentry> | ||
<sentry id="sentryOnVariableEventListener2"> | ||
<planItemOnPart id="sentryOnvariableEvent2" sourceRef="variableEventListenerPlanItem2"> | ||
<standardEvent>occur</standardEvent> | ||
</planItemOnPart> | ||
</sentry> | ||
<humanTask id="taskA" name="A"/> | ||
<eventListener id="variableEventListener" flowable:eventType="variable" flowable:variableName="var1" /> | ||
<humanTask id="taskB" name="B"/> | ||
<eventListener id="variableEventListener2" flowable:eventType="variable" flowable:variableName="var1" /> | ||
<humanTask id="taskC" name="C"/> | ||
</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
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
51 changes: 51 additions & 0 deletions
51
...t/bpmn/event/variable/VariableListenerEventTest.multipleCatchVariableListeners.bpmn20.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,51 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions id="definitions" | ||
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" | ||
xmlns:flowable="http://flowable.org/bpmn" | ||
targetNamespace="Examples"> | ||
|
||
<process id="catchVariableListener"> | ||
|
||
<startEvent id="start" /> | ||
|
||
<sequenceFlow sourceRef="start" targetRef="parallelFork" /> | ||
|
||
<parallelGateway id="parallelFork" /> | ||
|
||
<sequenceFlow sourceRef="parallelFork" targetRef="variableListenerEvent" /> | ||
|
||
<intermediateCatchEvent id="variableListenerEvent" name="Variable listener"> | ||
<extensionElements> | ||
<flowable:variableListenerEventDefinition variableName="var1" /> | ||
</extensionElements> | ||
</intermediateCatchEvent> | ||
|
||
<userTask id="aftertask" /> | ||
|
||
<sequenceFlow sourceRef="parallelFork" targetRef="variableListenerEvent2" /> | ||
|
||
<intermediateCatchEvent id="variableListenerEvent2" name="Variable listener 2"> | ||
<extensionElements> | ||
<flowable:variableListenerEventDefinition variableName="var1" /> | ||
</extensionElements> | ||
</intermediateCatchEvent> | ||
|
||
<userTask id="aftertask2" /> | ||
|
||
<sequenceFlow sourceRef="variableListenerEvent" targetRef="aftertask" /> | ||
|
||
<sequenceFlow sourceRef="variableListenerEvent2" targetRef="aftertask2" /> | ||
|
||
<parallelGateway id="parallelJoin" /> | ||
|
||
<sequenceFlow sourceRef="aftertask" targetRef="parallelJoin" /> | ||
|
||
<sequenceFlow sourceRef="aftertask2" targetRef="parallelJoin" /> | ||
|
||
<endEvent id="end" /> | ||
|
||
<sequenceFlow sourceRef="parallelJoin" targetRef="end" /> | ||
|
||
</process> | ||
|
||
</definitions> |