mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-02-03 13:43:59 +00:00
0892db6fa7
git-subtree-dir: SpiffWorkflow git-subtree-split: 63db3e45947ec66b8d0efc2c74064004f8ff482c
94 lines
4.9 KiB
XML
94 lines
4.9 KiB
XML
<?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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_015ooho" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.10.0">
|
|
<bpmn:process id="Process_1l85e0n" name="ScriptTest" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_0dsbqk4</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_0dsbqk4" sourceRef="StartEvent_1" targetRef="Activity_0umlasr" />
|
|
<bpmn:endEvent id="Event_12boxg0">
|
|
<bpmn:incoming>Flow_18e9qgr</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:subProcess id="MySubProcess" name="MySubProcess">
|
|
<bpmn:incoming>Flow_1ona7kk</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_18e9qgr</bpmn:outgoing>
|
|
<bpmn:multiInstanceLoopCharacteristics isSequential="true" camunda:collection="my_collection" camunda:elementVariable="my_var" />
|
|
<bpmn:scriptTask id="SubProcessScript" name="SubProcessScript">
|
|
<bpmn:incoming>Flow_14l2ton</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_06gypww</bpmn:outgoing>
|
|
<bpmn:script>my_var['new_info'] = "Adding this!"
|
|
my_var['name'] = my_var['name'] + "_edit"</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
<bpmn:endEvent id="MySubProcessEnd" name="MySubProcessEnd">
|
|
<bpmn:incoming>Flow_06gypww</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:startEvent id="MySubProcessStart" name="MySubProcessStart">
|
|
<bpmn:outgoing>Flow_14l2ton</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_06gypww" sourceRef="SubProcessScript" targetRef="MySubProcessEnd" />
|
|
<bpmn:sequenceFlow id="Flow_14l2ton" sourceRef="MySubProcessStart" targetRef="SubProcessScript" />
|
|
</bpmn:subProcess>
|
|
<bpmn:sequenceFlow id="Flow_18e9qgr" sourceRef="MySubProcess" targetRef="Event_12boxg0" />
|
|
<bpmn:sequenceFlow id="Flow_1ona7kk" sourceRef="Activity_0umlasr" targetRef="MySubProcess" />
|
|
<bpmn:scriptTask id="Activity_0umlasr" name="init">
|
|
<bpmn:incoming>Flow_0dsbqk4</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1ona7kk</bpmn:outgoing>
|
|
<bpmn:script>my_collection = {
|
|
'a':{'name':'Apple'},
|
|
'b':{'name':'Bubble'},
|
|
'c':{'name':'Crap, I should write better code'}
|
|
}</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1l85e0n">
|
|
<bpmndi:BPMNEdge id="Flow_1ona7kk_di" bpmnElement="Flow_1ona7kk">
|
|
<di:waypoint x="350" y="177" />
|
|
<di:waypoint x="430" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_18e9qgr_di" bpmnElement="Flow_18e9qgr">
|
|
<di:waypoint x="940" y="177" />
|
|
<di:waypoint x="1032" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0dsbqk4_di" bpmnElement="Flow_0dsbqk4">
|
|
<di:waypoint x="215" y="177" />
|
|
<di:waypoint x="250" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="179" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_12boxg0_di" bpmnElement="Event_12boxg0">
|
|
<dc:Bounds x="1032" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_16u5jzz_di" bpmnElement="MySubProcess" isExpanded="true">
|
|
<dc:Bounds x="430" y="77" width="510" height="200" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_14l2ton_di" bpmnElement="Flow_14l2ton">
|
|
<di:waypoint x="518" y="177" />
|
|
<di:waypoint x="640" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_06gypww_di" bpmnElement="Flow_06gypww">
|
|
<di:waypoint x="740" y="177" />
|
|
<di:waypoint x="862" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNShape id="Activity_1v1rg9x_di" bpmnElement="SubProcessScript">
|
|
<dc:Bounds x="640" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0y42ecd_di" bpmnElement="MySubProcessEnd">
|
|
<dc:Bounds x="862" y="159" width="36" height="36" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="839" y="202" width="82" height="27" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1u4mcv3_di" bpmnElement="MySubProcessStart">
|
|
<dc:Bounds x="482" y="159" width="36" height="36" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="458" y="202" width="85" height="27" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_18x5yaj_di" bpmnElement="Activity_0umlasr">
|
|
<dc:Bounds x="250" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|