2022-10-12 14:22:22 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2022-11-07 15:34:14 +00:00
|
|
|
<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">
|
2022-10-12 14:22:22 +00:00
|
|
|
<bpmn:startEvent id="StartEvent_1">
|
2022-11-07 15:34:14 +00:00
|
|
|
<bpmn:outgoing>Flow_0r3ua0i</bpmn:outgoing>
|
2022-10-12 14:22:22 +00:00
|
|
|
</bpmn:startEvent>
|
2022-11-07 15:34:14 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_0r3ua0i" sourceRef="StartEvent_1" targetRef="Activity_SetInitialData" />
|
|
|
|
<bpmn:scriptTask id="Activity_SetInitialData" name="Set Initial Data">
|
|
|
|
<bpmn:incoming>Flow_0r3ua0i</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_19g4f88</bpmn:outgoing>
|
2022-10-12 14:22:22 +00:00
|
|
|
<bpmn:script>a = 1
|
2022-11-07 15:34:14 +00:00
|
|
|
b = 2</bpmn:script>
|
|
|
|
</bpmn:scriptTask>
|
|
|
|
<bpmn:sequenceFlow id="Flow_19g4f88" sourceRef="Activity_SetInitialData" targetRef="Activity_CalculateNewData" />
|
|
|
|
<bpmn:scriptTask id="Activity_CalculateNewData" name="Calculate New Data">
|
|
|
|
<bpmn:extensionElements>
|
|
|
|
<spiffworkflow:unitTests>
|
|
|
|
<spiffworkflow:unitTest id="ScriptUnitTest_SimpleScript">
|
|
|
|
<spiffworkflow:inputJson>{'a': 1, 'b': 2}</spiffworkflow:inputJson>
|
|
|
|
<spiffworkflow:expectedOutputJson>{'a': 1, 'b': 2, 'c': 3}</spiffworkflow:expectedOutputJson>
|
|
|
|
</spiffworkflow:unitTest>
|
|
|
|
</spiffworkflow:unitTests>
|
|
|
|
</bpmn:extensionElements>
|
|
|
|
<bpmn:incoming>Flow_19g4f88</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_152cqfw</bpmn:outgoing>
|
|
|
|
<bpmn:script>c = a + b</bpmn:script>
|
2022-10-12 14:22:22 +00:00
|
|
|
</bpmn:scriptTask>
|
2022-11-07 15:34:14 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_152cqfw" sourceRef="Activity_CalculateNewData" targetRef="Activity_DisplayData" />
|
2022-10-12 14:22:22 +00:00
|
|
|
<bpmn:manualTask id="Activity_DisplayData" name="Display Data">
|
2022-11-07 15:34:14 +00:00
|
|
|
<bpmn:extensionElements>
|
|
|
|
<spiffworkflow:instructionsForEndUser>## Data
|
2022-10-12 14:22:22 +00:00
|
|
|
|
2022-11-07 15:34:14 +00:00
|
|
|
### A
|
2022-10-12 14:22:22 +00:00
|
|
|
{{ a }}
|
|
|
|
|
2022-11-07 15:34:14 +00:00
|
|
|
### B
|
2022-10-12 14:22:22 +00:00
|
|
|
{{ b }}
|
|
|
|
|
2022-11-07 15:34:14 +00:00
|
|
|
### C
|
|
|
|
{{ c }}</spiffworkflow:instructionsForEndUser>
|
|
|
|
</bpmn:extensionElements>
|
|
|
|
<bpmn:incoming>Flow_152cqfw</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1vqk60p</bpmn:outgoing>
|
2022-10-12 14:22:22 +00:00
|
|
|
</bpmn:manualTask>
|
2022-11-07 15:34:14 +00:00
|
|
|
<bpmn:endEvent id="Event_19fiqu4">
|
|
|
|
<bpmn:incoming>Flow_1vqk60p</bpmn:incoming>
|
|
|
|
</bpmn:endEvent>
|
|
|
|
<bpmn:sequenceFlow id="Flow_1vqk60p" sourceRef="Activity_DisplayData" targetRef="Event_19fiqu4" />
|
2022-10-12 14:22:22 +00:00
|
|
|
</bpmn:process>
|
|
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
2022-11-07 15:34:14 +00:00
|
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Proccess_SimpleScript">
|
2022-10-12 14:22:22 +00:00
|
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
2022-11-07 15:34:14 +00:00
|
|
|
<dc:Bounds x="179" y="159" width="36" height="36" />
|
2022-10-12 14:22:22 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2022-11-07 15:34:14 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_0l45w13_di" bpmnElement="Activity_SetInitialData">
|
|
|
|
<dc:Bounds x="270" y="137" width="100" height="80" />
|
|
|
|
<bpmndi:BPMNLabel />
|
2022-10-12 14:22:22 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2022-11-07 15:34:14 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_00n1s76_di" bpmnElement="Activity_CalculateNewData">
|
|
|
|
<dc:Bounds x="430" y="137" width="100" height="80" />
|
|
|
|
<bpmndi:BPMNLabel />
|
2022-10-12 14:22:22 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2022-11-07 15:34:14 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_1nhghi0_di" bpmnElement="Activity_DisplayData">
|
|
|
|
<dc:Bounds x="590" y="137" width="100" height="80" />
|
2022-10-12 14:22:22 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2022-11-07 15:34:14 +00:00
|
|
|
<bpmndi:BPMNShape id="Event_19fiqu4_di" bpmnElement="Event_19fiqu4">
|
|
|
|
<dc:Bounds x="752" y="159" width="36" height="36" />
|
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_0r3ua0i_di" bpmnElement="Flow_0r3ua0i">
|
|
|
|
<di:waypoint x="215" y="177" />
|
|
|
|
<di:waypoint x="270" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_19g4f88_di" bpmnElement="Flow_19g4f88">
|
|
|
|
<di:waypoint x="370" y="177" />
|
|
|
|
<di:waypoint x="430" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_152cqfw_di" bpmnElement="Flow_152cqfw">
|
|
|
|
<di:waypoint x="530" y="177" />
|
|
|
|
<di:waypoint x="590" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1vqk60p_di" bpmnElement="Flow_1vqk60p">
|
|
|
|
<di:waypoint x="690" y="177" />
|
|
|
|
<di:waypoint x="752" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
2022-10-12 14:22:22 +00:00
|
|
|
</bpmndi:BPMNPlane>
|
|
|
|
</bpmndi:BPMNDiagram>
|
|
|
|
</bpmn:definitions>
|