-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert execution.getVariable("a") to a valid FEEL expression (#1092)
- Loading branch information
1 parent
2d8ded0
commit c504854
Showing
9 changed files
with
142 additions
and
17 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
73 changes: 73 additions & 0 deletions
73
backend-diagram-converter/core/src/test/resources/expression-get-variable.bpmn
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,73 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<bpmn:definitions xmlns:bpmn="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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1ortpt7" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.29.0" modeler:executionPlatform="Camunda Platform" modeler:executionPlatformVersion="7.22.0"> | ||
<bpmn:process id="GetVariableExpressionProcess" name="GetVariable expression process" isExecutable="true" camunda:historyTimeToLive="30"> | ||
<bpmn:startEvent id="StartEvent_1" name="Expression getVariable should be tested"> | ||
<bpmn:outgoing>Flow_1c8n89f</bpmn:outgoing> | ||
</bpmn:startEvent> | ||
<bpmn:exclusiveGateway id="Gateway_1flm2ff" name="exampleVar is not null and equal to "yes"?"> | ||
<bpmn:incoming>Flow_1c8n89f</bpmn:incoming> | ||
<bpmn:outgoing>GetVariableEqualsYesFlow</bpmn:outgoing> | ||
<bpmn:outgoing>GetVariableNotEqualsYesFlow</bpmn:outgoing> | ||
</bpmn:exclusiveGateway> | ||
<bpmn:sequenceFlow id="Flow_1c8n89f" sourceRef="StartEvent_1" targetRef="Gateway_1flm2ff" /> | ||
<bpmn:endEvent id="Event_14xfi06" name="Expression getVariable evaluated"> | ||
<bpmn:incoming>GetVariableEqualsYesFlow</bpmn:incoming> | ||
</bpmn:endEvent> | ||
<bpmn:sequenceFlow id="GetVariableEqualsYesFlow" name="yes" sourceRef="Gateway_1flm2ff" targetRef="Event_14xfi06"> | ||
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${execution.getVariable("exampleVar") == "yes"}</bpmn:conditionExpression> | ||
</bpmn:sequenceFlow> | ||
<bpmn:endEvent id="Event_0t9rfk6" name="Expression getVariable returned"> | ||
<bpmn:incoming>GetVariableNotEqualsYesFlow</bpmn:incoming> | ||
</bpmn:endEvent> | ||
<bpmn:sequenceFlow id="GetVariableNotEqualsYesFlow" name="no" sourceRef="Gateway_1flm2ff" targetRef="Event_0t9rfk6"> | ||
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${execution.getVariable("exampleVar") != "yes"}</bpmn:conditionExpression> | ||
</bpmn:sequenceFlow> | ||
</bpmn:process> | ||
<bpmndi:BPMNDiagram id="BPMNDiagram_1"> | ||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="GetVariableExpressionProcess"> | ||
<bpmndi:BPMNShape id="StartEvent_1_di" bpmnElement="StartEvent_1"> | ||
<dc:Bounds x="182" y="162" width="36" height="36" /> | ||
<bpmndi:BPMNLabel> | ||
<dc:Bounds x="160" y="205" width="81" height="40" /> | ||
</bpmndi:BPMNLabel> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Gateway_1flm2ff_di" bpmnElement="Gateway_1flm2ff" isMarkerVisible="true"> | ||
<dc:Bounds x="275" y="155" width="50" height="50" /> | ||
<bpmndi:BPMNLabel> | ||
<dc:Bounds x="256" y="105" width="88" height="40" /> | ||
</bpmndi:BPMNLabel> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Event_14xfi06_di" bpmnElement="Event_14xfi06"> | ||
<dc:Bounds x="382" y="162" width="36" height="36" /> | ||
<bpmndi:BPMNLabel> | ||
<dc:Bounds x="373" y="205" width="55" height="40" /> | ||
</bpmndi:BPMNLabel> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNShape id="Event_0t9rfk6_di" bpmnElement="Event_0t9rfk6"> | ||
<dc:Bounds x="382" y="272" width="36" height="36" /> | ||
<bpmndi:BPMNLabel> | ||
<dc:Bounds x="373" y="315" width="55" height="40" /> | ||
</bpmndi:BPMNLabel> | ||
</bpmndi:BPMNShape> | ||
<bpmndi:BPMNEdge id="Flow_1c8n89f_di" bpmnElement="Flow_1c8n89f"> | ||
<di:waypoint x="218" y="180" /> | ||
<di:waypoint x="275" y="180" /> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNEdge id="Flow_1pahf39_di" bpmnElement="GetVariableEqualsYesFlow"> | ||
<di:waypoint x="325" y="180" /> | ||
<di:waypoint x="382" y="180" /> | ||
<bpmndi:BPMNLabel> | ||
<dc:Bounds x="345" y="162" width="18" height="14" /> | ||
</bpmndi:BPMNLabel> | ||
</bpmndi:BPMNEdge> | ||
<bpmndi:BPMNEdge id="Flow_1t756j0_di" bpmnElement="GetVariableNotEqualsYesFlow"> | ||
<di:waypoint x="300" y="205" /> | ||
<di:waypoint x="300" y="290" /> | ||
<di:waypoint x="382" y="290" /> | ||
<bpmndi:BPMNLabel> | ||
<dc:Bounds x="334" y="273" width="13" height="14" /> | ||
</bpmndi:BPMNLabel> | ||
</bpmndi:BPMNEdge> | ||
</bpmndi:BPMNPlane> | ||
</bpmndi:BPMNDiagram> | ||
</bpmn:definitions> |