sample-process-models/mike/simple-script/simple_script.bpmn

78 lines
3.8 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:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
<bpmn:process id="Proccess_SimpleScript" name="Simple Script" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_0kdd8x0</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_0kdd8x0" sourceRef="StartEvent_1" targetRef="Activity_0fei9ju" />
<bpmn:sequenceFlow id="Flow_1xp2da5" sourceRef="Activity_0fei9ju" targetRef="Activity_13w9tgj" />
<bpmn:sequenceFlow id="Flow_1wa446t" sourceRef="Activity_13w9tgj" targetRef="Activity_0i8axai" />
<bpmn:endEvent id="Event_0ng3s7z">
<bpmn:incoming>Flow_09k4m7l</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_09k4m7l" sourceRef="Activity_0i8axai" targetRef="Event_0ng3s7z" />
<bpmn:scriptTask id="Activity_0fei9ju" name="Set Initial Data">
<bpmn:incoming>Flow_0kdd8x0</bpmn:incoming>
<bpmn:outgoing>Flow_1xp2da5</bpmn:outgoing>
<bpmn:script>a = 1
b = 2</bpmn:script>
</bpmn:scriptTask>
<bpmn:scriptTask id="Activity_13w9tgj" name="Calculate New Data">
<bpmn:incoming>Flow_1xp2da5</bpmn:incoming>
<bpmn:outgoing>Flow_1wa446t</bpmn:outgoing>
<bpmn:script>c = a + b</bpmn:script>
</bpmn:scriptTask>
<bpmn:manualTask id="Activity_0i8axai" name="Display All Data">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>## Data
### A
{{ a }}
## B
{{ b }}
## C
{{ c }}</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1wa446t</bpmn:incoming>
<bpmn:outgoing>Flow_09k4m7l</bpmn:outgoing>
</bpmn:manualTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Proccess_SimpleScript">
<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_0ng3s7z_di" bpmnElement="Event_0ng3s7z">
<dc:Bounds x="752" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_11ukc6l_di" bpmnElement="Activity_0fei9ju">
<dc:Bounds x="270" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1qefush_di" bpmnElement="Activity_13w9tgj">
<dc:Bounds x="430" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0dpqey6_di" bpmnElement="Activity_0i8axai">
<dc:Bounds x="590" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0kdd8x0_di" bpmnElement="Flow_0kdd8x0">
<di:waypoint x="215" y="177" />
<di:waypoint x="270" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1xp2da5_di" bpmnElement="Flow_1xp2da5">
<di:waypoint x="370" y="177" />
<di:waypoint x="430" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1wa446t_di" bpmnElement="Flow_1wa446t">
<di:waypoint x="530" y="177" />
<di:waypoint x="590" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_09k4m7l_di" bpmnElement="Flow_09k4m7l">
<di:waypoint x="690" y="177" />
<di:waypoint x="752" y="177" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>