|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | | -<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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_varResolution" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.44.0" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.9.0"> |
| 2 | +<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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_varResolution" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.42.0" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.9.0"> |
3 | 3 | <bpmn:process id="Process_varResolution" isExecutable="true"> |
| 4 | + <!-- Literal type outputs --> |
4 | 5 | <bpmn:serviceTask id="literalNullTask" name="Literal Null"> |
5 | 6 | <bpmn:extensionElements> |
6 | 7 | <zeebe:ioMapping> |
|
12 | 13 | <bpmn:serviceTask id="literalStringTask" name="Literal String"> |
13 | 14 | <bpmn:extensionElements> |
14 | 15 | <zeebe:ioMapping> |
15 | | - <zeebe:output source="="hello"" target="outString" /> |
| 16 | + <zeebe:output source="="hello"" target="outString" /> |
16 | 17 | </zeebe:ioMapping> |
17 | 18 | </bpmn:extensionElements> |
18 | 19 | <bpmn:incoming>Flow_1</bpmn:incoming> |
|
39 | 40 | <bpmn:serviceTask id="literalContextTask" name="Literal Context"> |
40 | 41 | <bpmn:extensionElements> |
41 | 42 | <zeebe:ioMapping> |
42 | | - <zeebe:output source="={"key": "value"}" target="outContext" /> |
| 43 | + <zeebe:output source="={"key": "value"}" target="outContext" /> |
43 | 44 | </zeebe:ioMapping> |
44 | 45 | </bpmn:extensionElements> |
45 | 46 | <bpmn:incoming>Flow_4</bpmn:incoming> |
|
55 | 56 | <bpmn:outgoing>Flow_6</bpmn:outgoing> |
56 | 57 | <bpmn:outgoing>Flow_1u936n5</bpmn:outgoing> |
57 | 58 | </bpmn:serviceTask> |
58 | | - <bpmn:serviceTask id="passthroughProducerTask" name="Passthrough Producer"> |
| 59 | + <!-- Path expression resolution --> |
| 60 | + <bpmn:serviceTask id="contextProducerTask" name="Context Producer"> |
59 | 61 | <bpmn:extensionElements> |
60 | 62 | <zeebe:ioMapping> |
61 | | - <zeebe:output source="="world"" target="strVar" /> |
| 63 | + <zeebe:output source="={"name": "alice", "count": 42, "flag": true, "nested": {"deep": null}}" target="ctxVar" /> |
62 | 64 | </zeebe:ioMapping> |
63 | 65 | </bpmn:extensionElements> |
64 | 66 | <bpmn:incoming>Flow_6</bpmn:incoming> |
| 67 | + <bpmn:outgoing>Flow_7</bpmn:outgoing> |
| 68 | + </bpmn:serviceTask> |
| 69 | + <bpmn:serviceTask id="pathConsumerTask" name="Path Consumer"> |
| 70 | + <bpmn:extensionElements> |
| 71 | + <zeebe:ioMapping> |
| 72 | + <zeebe:input source="=ctxVar.name" target="pathString" /> |
| 73 | + <zeebe:input source="=ctxVar.count" target="pathNumber" /> |
| 74 | + <zeebe:input source="=ctxVar.flag" target="pathBoolean" /> |
| 75 | + <zeebe:input source="=ctxVar.nested.deep" target="pathDeepNull" /> |
| 76 | + </zeebe:ioMapping> |
| 77 | + </bpmn:extensionElements> |
| 78 | + <bpmn:incoming>Flow_7</bpmn:incoming> |
| 79 | + <bpmn:outgoing>Flow_8</bpmn:outgoing> |
| 80 | + </bpmn:serviceTask> |
| 81 | + <!-- Variable passthrough --> |
| 82 | + <bpmn:serviceTask id="passthroughProducerTask" name="Passthrough Producer"> |
| 83 | + <bpmn:extensionElements> |
| 84 | + <zeebe:ioMapping> |
| 85 | + <zeebe:output source="="world"" target="strVar" /> |
| 86 | + </zeebe:ioMapping> |
| 87 | + </bpmn:extensionElements> |
| 88 | + <bpmn:incoming>Flow_8</bpmn:incoming> |
65 | 89 | <bpmn:outgoing>Flow_9</bpmn:outgoing> |
66 | 90 | </bpmn:serviceTask> |
67 | 91 | <bpmn:serviceTask id="passthroughConsumerTask" name="Passthrough Consumer"> |
|
73 | 97 | <bpmn:incoming>Flow_9</bpmn:incoming> |
74 | 98 | <bpmn:outgoing>Flow_10</bpmn:outgoing> |
75 | 99 | </bpmn:serviceTask> |
| 100 | + <!-- Unresolved variable --> |
76 | 101 | <bpmn:serviceTask id="unresolvedConsumerTask" name="Unresolved Consumer"> |
77 | 102 | <bpmn:extensionElements> |
78 | 103 | <zeebe:ioMapping> |
|
81 | 106 | </bpmn:extensionElements> |
82 | 107 | <bpmn:incoming>Flow_10</bpmn:incoming> |
83 | 108 | </bpmn:serviceTask> |
| 109 | + <!-- Sequence Flows --> |
84 | 110 | <bpmn:sequenceFlow id="Flow_1" sourceRef="literalNullTask" targetRef="literalStringTask" /> |
85 | 111 | <bpmn:sequenceFlow id="Flow_2" sourceRef="literalStringTask" targetRef="literalNumberTask" /> |
86 | 112 | <bpmn:sequenceFlow id="Flow_3" sourceRef="literalNumberTask" targetRef="literalBooleanTask" /> |
87 | 113 | <bpmn:sequenceFlow id="Flow_4" sourceRef="literalBooleanTask" targetRef="literalContextTask" /> |
88 | 114 | <bpmn:sequenceFlow id="Flow_5" sourceRef="literalContextTask" targetRef="emptySourceTask" /> |
89 | | - <bpmn:sequenceFlow id="Flow_6" sourceRef="emptySourceTask" targetRef="passthroughProducerTask" /> |
| 115 | + <bpmn:sequenceFlow id="Flow_6" sourceRef="emptySourceTask" targetRef="contextProducerTask" /> |
| 116 | + <bpmn:sequenceFlow id="Flow_7" sourceRef="contextProducerTask" targetRef="pathConsumerTask" /> |
| 117 | + <bpmn:sequenceFlow id="Flow_8" sourceRef="pathConsumerTask" targetRef="passthroughProducerTask" /> |
90 | 118 | <bpmn:sequenceFlow id="Flow_9" sourceRef="passthroughProducerTask" targetRef="passthroughConsumerTask" /> |
91 | 119 | <bpmn:sequenceFlow id="Flow_10" sourceRef="passthroughConsumerTask" targetRef="unresolvedConsumerTask" /> |
92 | 120 | <bpmn:serviceTask id="useUnknownVariable" name="Use unknown input"> |
|
101 | 129 | </bpmn:process> |
102 | 130 | <bpmndi:BPMNDiagram id="BPMNDiagram_1"> |
103 | 131 | <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_varResolution"> |
| 132 | + <!-- Literal type outputs --> |
104 | 133 | <bpmndi:BPMNShape id="literalNullTask_di" bpmnElement="literalNullTask"> |
105 | 134 | <dc:Bounds x="160" y="100" width="100" height="80" /> |
106 | 135 | </bpmndi:BPMNShape> |
|
119 | 148 | <bpmndi:BPMNShape id="emptySourceTask_di" bpmnElement="emptySourceTask"> |
120 | 149 | <dc:Bounds x="560" y="250" width="100" height="80" /> |
121 | 150 | </bpmndi:BPMNShape> |
| 151 | + <!-- Path expression resolution --> |
| 152 | + <bpmndi:BPMNShape id="contextProducerTask_di" bpmnElement="contextProducerTask"> |
| 153 | + <dc:Bounds x="160" y="400" width="100" height="80" /> |
| 154 | + </bpmndi:BPMNShape> |
| 155 | + <bpmndi:BPMNShape id="pathConsumerTask_di" bpmnElement="pathConsumerTask"> |
| 156 | + <dc:Bounds x="360" y="400" width="100" height="80" /> |
| 157 | + </bpmndi:BPMNShape> |
| 158 | + <!-- Variable passthrough --> |
122 | 159 | <bpmndi:BPMNShape id="passthroughProducerTask_di" bpmnElement="passthroughProducerTask"> |
123 | 160 | <dc:Bounds x="560" y="400" width="100" height="80" /> |
124 | 161 | </bpmndi:BPMNShape> |
125 | 162 | <bpmndi:BPMNShape id="passthroughConsumerTask_di" bpmnElement="passthroughConsumerTask"> |
126 | 163 | <dc:Bounds x="160" y="550" width="100" height="80" /> |
127 | 164 | </bpmndi:BPMNShape> |
| 165 | + <!-- Unresolved variable --> |
128 | 166 | <bpmndi:BPMNShape id="unresolvedConsumerTask_di" bpmnElement="unresolvedConsumerTask"> |
129 | 167 | <dc:Bounds x="360" y="550" width="100" height="80" /> |
130 | 168 | </bpmndi:BPMNShape> |
|
158 | 196 | <di:waypoint x="610" y="330" /> |
159 | 197 | <di:waypoint x="610" y="370" /> |
160 | 198 | <di:waypoint x="210" y="370" /> |
161 | | - <di:waypoint x="210" y="440" /> |
| 199 | + <di:waypoint x="210" y="400" /> |
| 200 | + </bpmndi:BPMNEdge> |
| 201 | + <bpmndi:BPMNEdge id="Flow_7_di" bpmnElement="Flow_7"> |
| 202 | + <di:waypoint x="260" y="440" /> |
| 203 | + <di:waypoint x="360" y="440" /> |
| 204 | + </bpmndi:BPMNEdge> |
| 205 | + <bpmndi:BPMNEdge id="Flow_8_di" bpmnElement="Flow_8"> |
| 206 | + <di:waypoint x="460" y="440" /> |
162 | 207 | <di:waypoint x="560" y="440" /> |
163 | 208 | </bpmndi:BPMNEdge> |
164 | 209 | <bpmndi:BPMNEdge id="Flow_9_di" bpmnElement="Flow_9"> |
|
0 commit comments