175 lines
9.1 KiB
Plaintext
Raw Normal View History

<?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_1gv878q">
<bpmn:participant id="Participant_0m2fswd" processRef="Process_8ydk0bh" />
</bpmn:collaboration>
<bpmn:process id="Process_8ydk0bh" isExecutable="true">
<bpmn:laneSet id="LaneSet_19zwbwi">
<bpmn:lane id="Lane_1xwssek">
<bpmn:flowNodeRef>StartEvent_1</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_19x8z4q</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_0u39yj2</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Event_1enhsap</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Event_1mrcpko</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_1hrnzcs" name="approvers_one">
<bpmn:flowNodeRef>Activity_1kdx24p</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_1vfdi2v</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Event_0p15zpc</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Event_1dt5ijd</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_130ey79</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:userTask id="Activity_19x8z4q" name="Make Request">
<bpmn:extensionElements>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="request-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="request-uischema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_130ey79</bpmn:incoming>
<bpmn:outgoing>Flow_1gfzcde</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_130ey79" sourceRef="StartEvent_1" targetRef="Activity_19x8z4q" />
<bpmn:sequenceFlow id="Flow_1gfzcde" sourceRef="Activity_19x8z4q" targetRef="Activity_0u39yj2" />
<bpmn:scriptTask id="Activity_0u39yj2" name="set lane ownsers">
<bpmn:incoming>Flow_1gfzcde</bpmn:incoming>
<bpmn:outgoing>Flow_0qdzj5v</bpmn:outgoing>
<bpmn:script>lane_owners = {"approvers_one": ["dingli@gmail.com"]}</bpmn:script>
</bpmn:scriptTask>
<bpmn:sequenceFlow id="Flow_0qdzj5v" sourceRef="Activity_0u39yj2" targetRef="Activity_1kdx24p" />
<bpmn:sequenceFlow id="Flow_12aqem8" sourceRef="Activity_1kdx24p" targetRef="Gateway_1vfdi2v" />
<bpmn:userTask id="Activity_1kdx24p" name="Approve Request">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser># Approve it
By clicking the button below you approve this request.
</spiffworkflow:instructionsForEndUser>
<spiffworkflow:properties>
<spiffworkflow:property name="formJsonSchemaFilename" value="approve-request-schema.json" />
<spiffworkflow:property name="formUiSchemaFilename" value="approve-request-uischema.json" />
</spiffworkflow:properties>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0qdzj5v</bpmn:incoming>
<bpmn:outgoing>Flow_12aqem8</bpmn:outgoing>
</bpmn:userTask>
<bpmn:exclusiveGateway id="Gateway_1vfdi2v" name="approved?" default="Flow_1cfkj9x">
<bpmn:incoming>Flow_12aqem8</bpmn:incoming>
<bpmn:outgoing>Flow_1cfkj9x</bpmn:outgoing>
<bpmn:outgoing>Flow_0e6s3lk</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_1cfkj9x" sourceRef="Gateway_1vfdi2v" targetRef="Event_1dt5ijd" />
<bpmn:endEvent id="Event_0p15zpc">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>Your request was rejected!</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_06bw5rz</bpmn:incoming>
</bpmn:endEvent>
<bpmn:endEvent id="Event_1enhsap">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>Your request was accepted!</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1rearx1</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1rearx1" sourceRef="Event_1mrcpko" targetRef="Event_1enhsap" />
<bpmn:sequenceFlow id="Flow_06bw5rz" sourceRef="Event_1dt5ijd" targetRef="Event_0p15zpc" />
<bpmn:intermediateThrowEvent id="Event_1dt5ijd" name="Accepted">
<bpmn:incoming>Flow_1cfkj9x</bpmn:incoming>
<bpmn:outgoing>Flow_06bw5rz</bpmn:outgoing>
</bpmn:intermediateThrowEvent>
<bpmn:intermediateThrowEvent id="Event_1mrcpko" name="Rejected">
<bpmn:incoming>Flow_0e6s3lk</bpmn:incoming>
<bpmn:outgoing>Flow_1rearx1</bpmn:outgoing>
</bpmn:intermediateThrowEvent>
<bpmn:sequenceFlow id="Flow_0e6s3lk" sourceRef="Gateway_1vfdi2v" targetRef="Event_1mrcpko">
<bpmn:conditionExpression>do_you_approve == "rejected"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1gv878q">
<bpmndi:BPMNShape id="Participant_0m2fswd_di" bpmnElement="Participant_0m2fswd" isHorizontal="true">
<dc:Bounds x="-120" y="0" width="690" height="360" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_1hrnzcs_di" bpmnElement="Lane_1hrnzcs" isHorizontal="true">
<dc:Bounds x="-90" y="140" width="660" height="220" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_1xwssek_di" bpmnElement="Lane_1xwssek" isHorizontal="true">
<dc:Bounds x="-90" y="0" width="660" height="140" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="-38" y="42" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_03z51oi_di" bpmnElement="Activity_19x8z4q">
<dc:Bounds x="50" y="20" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0dbxi08_di" bpmnElement="Activity_0u39yj2">
<dc:Bounds x="170" y="20" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0o2c103_di" bpmnElement="Activity_1kdx24p">
<dc:Bounds x="170" y="200" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1vfdi2v_di" bpmnElement="Gateway_1vfdi2v" isMarkerVisible="true">
<dc:Bounds x="316" y="215" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="314" y="273" width="52" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0p15zpc_di" bpmnElement="Event_0p15zpc">
<dc:Bounds x="472" y="222" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1enhsap_di" bpmnElement="Event_1enhsap">
<dc:Bounds x="472" y="62" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1dt5ijd_di" bpmnElement="Event_1dt5ijd">
<dc:Bounds x="402" y="222" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="397" y="265" width="46" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1mrcpko_di" bpmnElement="Event_1mrcpko">
<dc:Bounds x="402" y="62" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="398" y="105" width="44" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_130ey79_di" bpmnElement="Flow_130ey79">
<di:waypoint x="-2" y="60" />
<di:waypoint x="50" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1gfzcde_di" bpmnElement="Flow_1gfzcde">
<di:waypoint x="150" y="60" />
<di:waypoint x="170" y="60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0qdzj5v_di" bpmnElement="Flow_0qdzj5v">
<di:waypoint x="220" y="100" />
<di:waypoint x="220" y="200" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_12aqem8_di" bpmnElement="Flow_12aqem8">
<di:waypoint x="270" y="240" />
<di:waypoint x="316" y="240" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1cfkj9x_di" bpmnElement="Flow_1cfkj9x">
<di:waypoint x="366" y="240" />
<di:waypoint x="402" y="240" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1rearx1_di" bpmnElement="Flow_1rearx1">
<di:waypoint x="438" y="80" />
<di:waypoint x="472" y="80" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_06bw5rz_di" bpmnElement="Flow_06bw5rz">
<di:waypoint x="438" y="240" />
<di:waypoint x="472" y="240" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0e6s3lk_di" bpmnElement="Flow_0e6s3lk">
<di:waypoint x="341" y="215" />
<di:waypoint x="341" y="80" />
<di:waypoint x="402" y="80" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>