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
130 lines
6.7 KiB
XML
130 lines
6.7 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="MyOuterSubProcess" name="MyOuterSubProcess">
|
|
<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:endEvent id="outer_end" name="outer_end">
|
|
<bpmn:incoming>Flow_05tjul5</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:startEvent id="outer_start" name="outer_start">
|
|
<bpmn:outgoing>Flow_1pc1vib</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:subProcess id="MyInnerSubProcess" name="MyInnerSubProcess">
|
|
<bpmn:incoming>Flow_1pc1vib</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_05tjul5</bpmn:outgoing>
|
|
<bpmn:startEvent id="inner_start" name="inner_start">
|
|
<bpmn:outgoing>Flow_0hikak1</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:scriptTask id="SubProcessScript" name="SubProcessScript">
|
|
<bpmn:incoming>Flow_0hikak1</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0oby5rd</bpmn:outgoing>
|
|
<bpmn:script>my_var['new_info'] = "Adding this!"
|
|
my_var['name'] = my_var['name'] + "_edit"
|
|
</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
<bpmn:sequenceFlow id="Flow_0hikak1" sourceRef="inner_start" targetRef="SubProcessScript" />
|
|
<bpmn:endEvent id="inner_end" name="inner_end">
|
|
<bpmn:incoming>Flow_0oby5rd</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_0oby5rd" sourceRef="SubProcessScript" targetRef="inner_end" />
|
|
</bpmn:subProcess>
|
|
<bpmn:sequenceFlow id="Flow_1pc1vib" sourceRef="outer_start" targetRef="MyInnerSubProcess" />
|
|
<bpmn:sequenceFlow id="Flow_05tjul5" sourceRef="MyInnerSubProcess" targetRef="outer_end" />
|
|
</bpmn:subProcess>
|
|
<bpmn:sequenceFlow id="Flow_18e9qgr" sourceRef="MyOuterSubProcess" targetRef="Event_12boxg0" />
|
|
<bpmn:sequenceFlow id="Flow_1ona7kk" sourceRef="Activity_0umlasr" targetRef="MyOuterSubProcess" />
|
|
<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_0dsbqk4_di" bpmnElement="Flow_0dsbqk4">
|
|
<di:waypoint x="215" y="177" />
|
|
<di:waypoint x="250" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_18e9qgr_di" bpmnElement="Flow_18e9qgr">
|
|
<di:waypoint x="1110" y="177" />
|
|
<di:waypoint x="1182" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1ona7kk_di" bpmnElement="Flow_1ona7kk">
|
|
<di:waypoint x="350" y="177" />
|
|
<di:waypoint x="430" 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="Activity_18x5yaj_di" bpmnElement="Activity_0umlasr">
|
|
<dc:Bounds x="250" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_12boxg0_di" bpmnElement="Event_12boxg0">
|
|
<dc:Bounds x="1182" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_16u5jzz_di" bpmnElement="MyOuterSubProcess" isExpanded="true">
|
|
<dc:Bounds x="430" y="77" width="680" height="283" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_1pc1vib_di" bpmnElement="Flow_1pc1vib">
|
|
<di:waypoint x="518" y="177" />
|
|
<di:waypoint x="600" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_05tjul5_di" bpmnElement="Flow_05tjul5">
|
|
<di:waypoint x="950" y="177" />
|
|
<di:waypoint x="1002" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNShape id="Event_1u4mcv3_di" bpmnElement="outer_start">
|
|
<dc:Bounds x="482" y="159" width="36" height="36" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="474" y="202" width="53" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0y42ecd_di" bpmnElement="outer_end">
|
|
<dc:Bounds x="1002" y="159" width="36" height="36" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="996" y="202" width="50" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0f3yfji_di" bpmnElement="MyInnerSubProcess" isExpanded="true">
|
|
<dc:Bounds x="600" y="120" width="350" height="200" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_0hikak1_di" bpmnElement="Flow_0hikak1">
|
|
<di:waypoint x="658" y="220" />
|
|
<di:waypoint x="730" y="220" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0oby5rd_di" bpmnElement="Flow_0oby5rd">
|
|
<di:waypoint x="830" y="220" />
|
|
<di:waypoint x="892" y="220" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNShape id="Activity_1v1rg9x_di" bpmnElement="SubProcessScript">
|
|
<dc:Bounds x="730" y="180" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0tdns2c_di" bpmnElement="inner_end">
|
|
<dc:Bounds x="892" y="202" width="36" height="36" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="886" y="245" width="49" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0557238_di" bpmnElement="inner_start">
|
|
<dc:Bounds x="622" y="202" width="36" height="36" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="614" y="245" width="52" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|