Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JBPM-5363 - Evaluation of variable expressions in subprocesses (#633)
- Loading branch information
1 parent
eef6b0c
commit a2893d3
Showing
10 changed files
with
175 additions
and
44 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
77 changes: 77 additions & 0 deletions
77
jbpm-bpmn2/src/test/resources/BPMN2-EventSubprocessSignalExpression.bpmn2
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,77 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:tns="http://www.jboss.org/drools" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="Definitions_1" expressionLanguage="http://www.mvel.org/2.0" targetNamespace="http://www.jboss.org/drools" typeLanguage="http://www.java.com/javaTypes"> | ||
<bpmn2:signal id="MySignal" name="#{x}"/> | ||
<bpmn2:itemDefinition id="_xItem" structureRef="String" /> | ||
<bpmn2:process id="BPMN2-EventSubprocessSignalExpression" tns:version="1" tns:packageName="defaultPackage" name="Default Process"> | ||
<bpmn2:property id="x" itemSubjectRef="_xItem"/> | ||
<bpmn2:startEvent id="StartEvent_1" name="start"> | ||
<bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing> | ||
</bpmn2:startEvent> | ||
<bpmn2:sequenceFlow id="SequenceFlow_1" tns:priority="1" sourceRef="UserTask_1" targetRef="EndEvent_1"/> | ||
<bpmn2:endEvent id="EndEvent_1" name="end"> | ||
<bpmn2:incoming>SequenceFlow_1</bpmn2:incoming> | ||
</bpmn2:endEvent> | ||
<bpmn2:userTask id="UserTask_1" name="User Task 1"> | ||
<bpmn2:incoming>SequenceFlow_2</bpmn2:incoming> | ||
<bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing> | ||
</bpmn2:userTask> | ||
<bpmn2:sequenceFlow id="SequenceFlow_2" tns:priority="1" name="" sourceRef="StartEvent_1" targetRef="UserTask_1"/> | ||
<bpmn2:subProcess id="SubProcess_1" name="Sub Process 1" triggeredByEvent="true" > | ||
<bpmn2:startEvent id="StartEvent_2" name="start-sub" isInterrupting="true"> | ||
<bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing> | ||
<bpmn2:signalEventDefinition id="SignalEventDefinition_1" signalRef="MySignal"/> | ||
</bpmn2:startEvent> | ||
<bpmn2:scriptTask id="ScriptTask_1" name="sub-script"> | ||
<bpmn2:incoming>SequenceFlow_3</bpmn2:incoming> | ||
<bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing> | ||
<bpmn2:script>System.out.println("Event sub process triggered");</bpmn2:script> | ||
</bpmn2:scriptTask> | ||
<bpmn2:sequenceFlow id="SequenceFlow_3" tns:priority="1" sourceRef="StartEvent_2" targetRef="ScriptTask_1"/> | ||
<bpmn2:endEvent id="EndEvent_2" name="end-sub"> | ||
<bpmn2:incoming>SequenceFlow_4</bpmn2:incoming> | ||
</bpmn2:endEvent> | ||
<bpmn2:sequenceFlow id="SequenceFlow_4" tns:priority="1" sourceRef="ScriptTask_1" targetRef="EndEvent_2"/> | ||
</bpmn2:subProcess> | ||
</bpmn2:process> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_1" name="Default Process Diagram"> | ||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="BPMN2-EventSubprocessSignalExpression"> | ||
<bpmndi:BPMNShape id="BPMNShape_1" bpmnElement="StartEvent_1"> | ||
<dc:Bounds height="36.0" width="36.0" x="100.0" y="100.0"/> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="BPMNShape_2" bpmnElement="EndEvent_1"> | ||
<dc:Bounds height="36.0" width="36.0" x="500.0" y="100.0"/> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="BPMNShape_UserTask_1" targetElement="BPMNShape_2"> | ||
<di:waypoint xsi:type="dc:Point" x="380.0" y="118.0"/> | ||
<di:waypoint xsi:type="dc:Point" x="500.0" y="118.0"/> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNShape id="BPMNShape_UserTask_1" bpmnElement="UserTask_1"> | ||
<dc:Bounds height="50.0" width="110.0" x="270.0" y="93.0"/> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="BPMNShape_1" targetElement="BPMNShape_UserTask_1"> | ||
<di:waypoint xsi:type="dc:Point" x="136.0" y="118.0"/> | ||
<di:waypoint xsi:type="dc:Point" x="270.0" y="118.0"/> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNShape id="BPMNShape_SubProcess_1" bpmnElement="SubProcess_1" isExpanded="true"> | ||
<dc:Bounds height="131.0" width="381.0" x="180.0" y="240.0"/> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="StartEvent_2"> | ||
<dc:Bounds height="36.0" width="36.0" x="232.0" y="287.0"/> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="BPMNShape_ScriptTask_1" bpmnElement="ScriptTask_1"> | ||
<dc:Bounds height="50.0" width="110.0" x="318.0" y="280.0"/> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="BPMNShape_StartEvent_1" targetElement="BPMNShape_ScriptTask_1"> | ||
<di:waypoint xsi:type="dc:Point" x="268.0" y="305.0"/> | ||
<di:waypoint xsi:type="dc:Point" x="318.0" y="305.0"/> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNShape id="BPMNShape_EndEvent_1" bpmnElement="EndEvent_2"> | ||
<dc:Bounds height="36.0" width="36.0" x="478.0" y="287.0"/> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="BPMNShape_ScriptTask_1" targetElement="BPMNShape_EndEvent_1"> | ||
<di:waypoint xsi:type="dc:Point" x="428.0" y="305.0"/> | ||
<di:waypoint xsi:type="dc:Point" x="478.0" y="305.0"/> | ||
</bpmndi:BPMNEdge> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</bpmn2: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
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