mirror of
https://github.com/sartography/demo-process-models.git
synced 2025-02-23 18:18:11 +00:00
91 lines
4.2 KiB
XML
91 lines
4.2 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="Process_y4rdhwt" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_192ivnf</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_192ivnf" sourceRef="StartEvent_1" targetRef="Activity_0g5pmj7" />
|
|
<bpmn:userTask id="Activity_0g5pmj7" name="Get Numbers">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="NumberForm-schema.json" />
|
|
<spiffworkflow:property name="formUiSchemaFilename" value="NumberForm-uischema.json" />
|
|
</spiffworkflow:properties>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_192ivnf</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_01frqfe</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:sequenceFlow id="Flow_01frqfe" sourceRef="Activity_0g5pmj7" targetRef="Activity_1fxetxn" />
|
|
<bpmn:scriptTask id="Activity_1fxetxn" name="Calculation">
|
|
<bpmn:incoming>Flow_01frqfe</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0zls7of</bpmn:outgoing>
|
|
<bpmn:script>time.sleep(1)
|
|
|
|
add = 0
|
|
|
|
multiply =0
|
|
|
|
add= firstnumber+secondnumber
|
|
|
|
multiply=firstnumber*secondnumber</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
<bpmn:sequenceFlow id="Flow_0zls7of" sourceRef="Activity_1fxetxn" targetRef="Activity_11hff1b" />
|
|
<bpmn:manualTask id="Activity_11hff1b" name="Display Results">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:instructionsForEndUser># Results
|
|
|
|
#### Addition
|
|
|
|
**{{firstnumber}} + {{secondnumber}} = {{add}}**
|
|
|
|
#### Multiplication
|
|
|
|
**{{firstnumber}} * {{secondnumber}} = {{multiply}}**</spiffworkflow:instructionsForEndUser>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0zls7of</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1sk85yc</bpmn:outgoing>
|
|
</bpmn:manualTask>
|
|
<bpmn:endEvent id="Event_1hhza3x">
|
|
<bpmn:incoming>Flow_1sk85yc</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_1sk85yc" sourceRef="Activity_11hff1b" targetRef="Event_1hhza3x" />
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_y4rdhwt">
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="-468" y="82" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1rjwhgn_di" bpmnElement="Activity_0g5pmj7">
|
|
<dc:Bounds x="-380" y="60" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_13c96wj_di" bpmnElement="Activity_1fxetxn">
|
|
<dc:Bounds x="-220" y="60" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0mk3xu4_di" bpmnElement="Activity_11hff1b">
|
|
<dc:Bounds x="-60" y="60" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1hhza3x_di" bpmnElement="Event_1hhza3x">
|
|
<dc:Bounds x="102" y="82" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_192ivnf_di" bpmnElement="Flow_192ivnf">
|
|
<di:waypoint x="-432" y="100" />
|
|
<di:waypoint x="-380" y="100" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_01frqfe_di" bpmnElement="Flow_01frqfe">
|
|
<di:waypoint x="-280" y="100" />
|
|
<di:waypoint x="-220" y="100" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0zls7of_di" bpmnElement="Flow_0zls7of">
|
|
<di:waypoint x="-120" y="100" />
|
|
<di:waypoint x="-60" y="100" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1sk85yc_di" bpmnElement="Flow_1sk85yc">
|
|
<di:waypoint x="40" y="100" />
|
|
<di:waypoint x="102" y="100" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|