mirror of
https://github.com/sartography/demo-process-models.git
synced 2025-02-24 21:28:13 +00:00
123 lines
6.4 KiB
XML
123 lines
6.4 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:collaboration id="Collaboration_1816wll">
|
|
<bpmn:participant id="Participant_0wq5h8c" processRef="Process_0r0k74n" />
|
|
</bpmn:collaboration>
|
|
<bpmn:process id="Process_0r0k74n">
|
|
<bpmn:laneSet id="LaneSet_0d2l7o5">
|
|
<bpmn:lane id="Lane_1nnbdvi" name="Cashier">
|
|
<bpmn:flowNodeRef>Activity_0n95rn3</bpmn:flowNodeRef>
|
|
</bpmn:lane>
|
|
<bpmn:lane id="Lane_1b1rc92">
|
|
<bpmn:flowNodeRef>StartEvent_1</bpmn:flowNodeRef>
|
|
<bpmn:flowNodeRef>Activity_0fccmvy</bpmn:flowNodeRef>
|
|
<bpmn:flowNodeRef>Activity_1t2lac8</bpmn:flowNodeRef>
|
|
<bpmn:flowNodeRef>Event_1pureqy</bpmn:flowNodeRef>
|
|
<bpmn:flowNodeRef>Activity_1g7pkvp</bpmn:flowNodeRef>
|
|
</bpmn:lane>
|
|
</bpmn:laneSet>
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_0k8z2d5</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:userTask id="Activity_0fccmvy" name="Petty Cash Request">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="petty-cash-request-schema.json" />
|
|
</spiffworkflow:properties>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0k8z2d5</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0usmyja</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:scriptTask id="Activity_1t2lac8" name="Assign Lanes">
|
|
<bpmn:incoming>Flow_0usmyja</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0sjtrwc</bpmn:outgoing>
|
|
<bpmn:script>requested_by = get_current_user()['username']
|
|
lane_owners = { "Cashier": [get_current_user()['username']] } </bpmn:script>
|
|
</bpmn:scriptTask>
|
|
<bpmn:sequenceFlow id="Flow_0k8z2d5" sourceRef="StartEvent_1" targetRef="Activity_0fccmvy" />
|
|
<bpmn:sequenceFlow id="Flow_0usmyja" sourceRef="Activity_0fccmvy" targetRef="Activity_1t2lac8" />
|
|
<bpmn:sequenceFlow id="Flow_0sjtrwc" sourceRef="Activity_1t2lac8" targetRef="Activity_0n95rn3" />
|
|
<bpmn:sequenceFlow id="Flow_0blso14" sourceRef="Activity_0n95rn3" targetRef="Activity_1g7pkvp" />
|
|
<bpmn:endEvent id="Event_1pureqy">
|
|
<bpmn:incoming>Flow_11dpyk6</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_11dpyk6" sourceRef="Activity_1g7pkvp" targetRef="Event_1pureqy" />
|
|
<bpmn:userTask id="Activity_0n95rn3" name="Approve">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="petty-cash-approval-schema.json" />
|
|
</spiffworkflow:properties>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0sjtrwc</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0blso14</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:manualTask id="Activity_1g7pkvp" name="Display Output">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:instructionsForEndUser>#### Your petty cash request for {{amount}} has been approved by {{approved_by}}</spiffworkflow:instructionsForEndUser>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0blso14</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_11dpyk6</bpmn:outgoing>
|
|
</bpmn:manualTask>
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1816wll">
|
|
<bpmndi:BPMNShape id="Participant_0wq5h8c_di" bpmnElement="Participant_0wq5h8c" isHorizontal="true">
|
|
<dc:Bounds x="-350" y="-320" width="878" height="250" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Lane_1b1rc92_di" bpmnElement="Lane_1b1rc92" isHorizontal="true">
|
|
<dc:Bounds x="-320" y="-195" width="848" height="125" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Lane_1nnbdvi_di" bpmnElement="Lane_1nnbdvi" isHorizontal="true">
|
|
<dc:Bounds x="-320" y="-320" width="848" height="125" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="-308" y="-158" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1w8w6cc_di" bpmnElement="Activity_0fccmvy">
|
|
<dc:Bounds x="-220" y="-180" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0no38z8_di" bpmnElement="Activity_1t2lac8">
|
|
<dc:Bounds x="-60" y="-180" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1pureqy_di" bpmnElement="Event_1pureqy">
|
|
<dc:Bounds x="392" y="-158" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_05ckc2z_di" bpmnElement="Activity_0n95rn3">
|
|
<dc:Bounds x="90" y="-300" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_19fagx7_di" bpmnElement="Activity_1g7pkvp">
|
|
<dc:Bounds x="240" y="-180" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_0k8z2d5_di" bpmnElement="Flow_0k8z2d5">
|
|
<di:waypoint x="-272" y="-140" />
|
|
<di:waypoint x="-220" y="-140" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0usmyja_di" bpmnElement="Flow_0usmyja">
|
|
<di:waypoint x="-120" y="-140" />
|
|
<di:waypoint x="-60" y="-140" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0sjtrwc_di" bpmnElement="Flow_0sjtrwc">
|
|
<di:waypoint x="40" y="-140" />
|
|
<di:waypoint x="65" y="-140" />
|
|
<di:waypoint x="65" y="-260" />
|
|
<di:waypoint x="90" y="-260" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0blso14_di" bpmnElement="Flow_0blso14">
|
|
<di:waypoint x="190" y="-260" />
|
|
<di:waypoint x="215" y="-260" />
|
|
<di:waypoint x="215" y="-140" />
|
|
<di:waypoint x="240" y="-140" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_11dpyk6_di" bpmnElement="Flow_11dpyk6">
|
|
<di:waypoint x="340" y="-140" />
|
|
<di:waypoint x="392" y="-140" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|