Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions test/fixtures/zeebe/filtering.bpmn
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?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:zeebe="http://camunda.org/schema/zeebe/1.0" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_0modwgr" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.44.0" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.7.0">
<bpmn:process id="Process_1" name="Process_1" isExecutable="true">
<bpmn:subProcess id="SubProcess_1" name="SubProcess_1">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:input source="=globalFoo" target="subFoo" />
</zeebe:ioMapping>
</bpmn:extensionElements>
<bpmn:scriptTask id="Task_1" name="Task_1">
<bpmn:extensionElements>
<zeebe:script expression="=&#34;Task_1 :: result&#34; + taskFoo" resultVariable="localResult" />
<zeebe:ioMapping>
<zeebe:input source="=subFoo" target="taskFoo" />
<zeebe:output source="=localResult" target="taskResult" />
</zeebe:ioMapping>
</bpmn:extensionElements>
</bpmn:scriptTask>
</bpmn:subProcess>
<bpmn:textAnnotation id="TextAnnotation_0htuzu9">
<bpmn:text>declare: subFoo = globalFoo</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_0aa1wd0" associationDirection="None" sourceRef="SubProcess_1" targetRef="TextAnnotation_0htuzu9" />
<bpmn:textAnnotation id="TextAnnotation_07tfbe4">
<bpmn:text>declare: taskFoo = subFoo
read: taskFoo</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_17fzlji" associationDirection="None" sourceRef="Task_1" targetRef="TextAnnotation_07tfbe4" />
<bpmn:textAnnotation id="TextAnnotation_0x7whlg">
<bpmn:text>write: localResult (-&gt; depending on taskFoo)</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_0yn1gyn" associationDirection="None" sourceRef="Task_1" targetRef="TextAnnotation_0x7whlg" />
<bpmn:textAnnotation id="TextAnnotation_0cxitau">
<bpmn:text>produce: taskResult = localResult</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_14e87h9" associationDirection="None" sourceRef="Task_1" targetRef="TextAnnotation_0cxitau" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
<bpmndi:BPMNShape id="Activity_0zpajl6_di" bpmnElement="SubProcess_1" isExpanded="true">
<dc:Bounds x="290" y="180" width="350" height="200" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ie6k5k_di" bpmnElement="Task_1">
<dc:Bounds x="360" y="240" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Association_0aa1wd0_di" bpmnElement="Association_0aa1wd0">
<di:waypoint x="303" y="180" />
<di:waypoint x="250" y="100" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_14e87h9_di" bpmnElement="Association_14e87h9">
<di:waypoint x="451" y="320" />
<di:waypoint x="565" y="430" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_17fzlji_di" bpmnElement="Association_17fzlji">
<di:waypoint x="375" y="320" />
<di:waypoint x="283" y="424" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_0yn1gyn_di" bpmnElement="Association_0yn1gyn">
<di:waypoint x="404" y="320" />
<di:waypoint x="382" y="480" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="TextAnnotation_0htuzu9_di" bpmnElement="TextAnnotation_0htuzu9">
<dc:Bounds x="190" y="70" width="180" height="29.999998092651367" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="TextAnnotation_0cxitau_di" bpmnElement="TextAnnotation_0cxitau">
<dc:Bounds x="530" y="430" width="200" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="TextAnnotation_07tfbe4_di" bpmnElement="TextAnnotation_07tfbe4">
<dc:Bounds x="150" y="424" width="170" height="41" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="TextAnnotation_0x7whlg_di" bpmnElement="TextAnnotation_0x7whlg">
<dc:Bounds x="330" y="480" width="209.99998474121094" height="41" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
45 changes: 45 additions & 0 deletions test/fixtures/zeebe/read-write.bpmn
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?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:zeebe="http://camunda.org/schema/zeebe/1.0" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1kvhh4n" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.44.0" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.7.0">
<bpmn:process id="Process_1" name="Write: approved" isExecutable="true">
<bpmn:serviceTask id="ValidateApprovedTask" name="Validate Approved">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:input source="=approved" target="localApproved" />
<zeebe:output source="=localApproved" target="approved" />
</zeebe:ioMapping>
</bpmn:extensionElements>
</bpmn:serviceTask>
<bpmn:textAnnotation id="TextAnnotation_12joy1t">
<bpmn:text>Write: approved</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_1x9i5o6" associationDirection="None" sourceRef="ValidateApprovedTask" targetRef="TextAnnotation_12joy1t" />
<bpmn:textAnnotation id="TextAnnotation_0cyrq9q">
<bpmn:text>Read: approved</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_1qg1o3f" associationDirection="None" sourceRef="TextAnnotation_0cyrq9q" targetRef="ValidateApprovedTask" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
<bpmndi:BPMNShape id="Activity_13wsimk_di" bpmnElement="ValidateApprovedTask">
<dc:Bounds x="240" y="170" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Association_1x9i5o6_di" bpmnElement="Association_1x9i5o6">
<di:waypoint x="328" y="170" />
<di:waypoint x="386" y="110" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_1qg1o3f_di" bpmnElement="Association_1qg1o3f">
<di:waypoint x="201" y="110" />
<di:waypoint x="244" y="172" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="TextAnnotation_12joy1t_di" bpmnElement="TextAnnotation_12joy1t">
<dc:Bounds x="350" y="80" width="120" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1n8m9kv" bpmnElement="TextAnnotation_0cyrq9q">
<dc:Bounds x="160" y="80" width="130" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
45 changes: 45 additions & 0 deletions test/fixtures/zeebe/read-write.hierarchical.bpmn
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?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:zeebe="http://camunda.org/schema/zeebe/1.0" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1kvhh4n" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.44.0" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.7.0">
<bpmn:process id="Process_1" isExecutable="true">
<bpmn:serviceTask id="ValidateApprovedTask" name="Validate Approved">
<bpmn:extensionElements>
<zeebe:ioMapping>
<zeebe:input source="=application.approved" target="localApproved" />
<zeebe:output source="=localApproved" target="application.approved" />
</zeebe:ioMapping>
</bpmn:extensionElements>
</bpmn:serviceTask>
<bpmn:textAnnotation id="TextAnnotation_12joy1t">
<bpmn:text>Write: application.approved</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_1x9i5o6" associationDirection="None" sourceRef="ValidateApprovedTask" targetRef="TextAnnotation_12joy1t" />
<bpmn:textAnnotation id="TextAnnotation_0cyrq9q">
<bpmn:text>Read: application.approved</bpmn:text>
</bpmn:textAnnotation>
<bpmn:association id="Association_1qg1o3f" associationDirection="None" sourceRef="TextAnnotation_0cyrq9q" targetRef="ValidateApprovedTask" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
<bpmndi:BPMNShape id="Activity_13wsimk_di" bpmnElement="ValidateApprovedTask">
<dc:Bounds x="290" y="170" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Association_1qg1o3f_di" bpmnElement="Association_1qg1o3f">
<di:waypoint x="249" y="106" />
<di:waypoint x="294" y="172" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Association_1x9i5o6_di" bpmnElement="Association_1x9i5o6">
<di:waypoint x="378" y="170" />
<di:waypoint x="436" y="110" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="TextAnnotation_12joy1t_di" bpmnElement="TextAnnotation_12joy1t">
<dc:Bounds x="400" y="80" width="170" height="30" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_1n8m9kv" bpmnElement="TextAnnotation_0cyrq9q">
<dc:Bounds x="160" y="80" width="170" height="25.999998092651367" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>
Loading
Loading