Jon Herron 0892db6fa7 Squashed 'SpiffWorkflow/' content from commit 63db3e4
git-subtree-dir: SpiffWorkflow
git-subtree-split: 63db3e45947ec66b8d0efc2c74064004f8ff482c
2022-10-12 10:19:53 -04:00

211 lines
11 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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_0ktat0o" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.11.1">
<bpmn:collaboration id="Collaboration_0n93bdm">
<bpmn:participant id="Participant_1s3h4jc" processRef="ThrowCatch" />
</bpmn:collaboration>
<bpmn:process id="ThrowCatch" isExecutable="true">
<bpmn:laneSet id="LaneSet_0ti2l3g">
<bpmn:lane id="Lane_0stxlz6" name="process_a">
<bpmn:flowNodeRef>Activity_ApproveOrDeny</bpmn:flowNodeRef>
<bpmn:flowNodeRef>SendDecision</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Event_EndEvent2</bpmn:flowNodeRef>
<bpmn:flowNodeRef>StartApprovalProcess</bpmn:flowNodeRef>
</bpmn:lane>
<bpmn:lane id="Lane_0m6phgl" name="process_b">
<bpmn:flowNodeRef>Event_NormalStart</bpmn:flowNodeRef>
<bpmn:flowNodeRef>SendApprovalRequest</bpmn:flowNodeRef>
<bpmn:flowNodeRef>GetDecision</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Gateway_Approved</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_EnterPlan</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Activity_EnablePlan</bpmn:flowNodeRef>
<bpmn:flowNodeRef>Event_EndEvent1</bpmn:flowNodeRef>
</bpmn:lane>
</bpmn:laneSet>
<bpmn:startEvent id="Event_NormalStart">
<bpmn:outgoing>Flow_060cfic</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:intermediateThrowEvent id="SendApprovalRequest" name="Send Approval Request">
<bpmn:incoming>Flow_1nsjil4</bpmn:incoming>
<bpmn:outgoing>Flow_1t3bhky</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_1rqtu3x" messageRef="Message_1rkbi27" camunda:expression="plan_details" />
</bpmn:intermediateThrowEvent>
<bpmn:intermediateCatchEvent id="GetDecision" name="Get Decision">
<bpmn:incoming>Flow_1t3bhky</bpmn:incoming>
<bpmn:outgoing>Flow_1jdfc06</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_0glgh0p" messageRef="Message_0sqqwvq" />
</bpmn:intermediateCatchEvent>
<bpmn:exclusiveGateway id="Gateway_Approved" name="Approval Response" default="Flow_1tfirpy">
<bpmn:incoming>Flow_1jdfc06</bpmn:incoming>
<bpmn:outgoing>Flow_0jqxt85</bpmn:outgoing>
<bpmn:outgoing>Flow_1tfirpy</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_1jdfc06" sourceRef="GetDecision" targetRef="Gateway_Approved" />
<bpmn:sequenceFlow id="Flow_1ync7ek" sourceRef="Activity_EnablePlan" targetRef="Event_EndEvent1" />
<bpmn:sequenceFlow id="Flow_1t3bhky" sourceRef="SendApprovalRequest" targetRef="GetDecision" />
<bpmn:sequenceFlow id="Flow_1nsjil4" sourceRef="Activity_EnterPlan" targetRef="SendApprovalRequest" />
<bpmn:sequenceFlow id="Flow_0jqxt85" name="Sure" sourceRef="Gateway_Approved" targetRef="Activity_EnablePlan">
<bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">ApprovalResult=="Yes"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0m1dzpq" sourceRef="Activity_ApproveOrDeny" targetRef="SendDecision" />
<bpmn:sequenceFlow id="Flow_1ym5g7r" sourceRef="StartApprovalProcess" targetRef="Activity_ApproveOrDeny" />
<bpmn:sequenceFlow id="Flow_1tfirpy" name="No Way!" sourceRef="Gateway_Approved" targetRef="Activity_EnterPlan" />
<bpmn:userTask id="Activity_ApproveOrDeny" name="Approved?" camunda:formKey="ApprovalProcess">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="approved" label="Do you approve this request?" type="string" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1ym5g7r</bpmn:incoming>
<bpmn:outgoing>Flow_0m1dzpq</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_060cfic" sourceRef="Event_NormalStart" targetRef="Activity_EnterPlan" />
<bpmn:userTask id="Activity_EnterPlan" name="Enter Plan" camunda:formKey="EnterPlan">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="plan_details" label="Enter Plan Details" type="string" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1tfirpy</bpmn:incoming>
<bpmn:incoming>Flow_060cfic</bpmn:incoming>
<bpmn:outgoing>Flow_1nsjil4</bpmn:outgoing>
</bpmn:userTask>
<bpmn:sequenceFlow id="Flow_0abuvsx" sourceRef="SendDecision" targetRef="Event_EndEvent2" />
<bpmn:intermediateThrowEvent id="SendDecision" name="Send Decision">
<bpmn:incoming>Flow_0m1dzpq</bpmn:incoming>
<bpmn:outgoing>Flow_0abuvsx</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_1un6meh" messageRef="Message_0sqqwvq" camunda:expression="approved" camunda:resultVariable="ApprovalResult" />
</bpmn:intermediateThrowEvent>
<bpmn:endEvent id="Event_EndEvent2">
<bpmn:incoming>Flow_0abuvsx</bpmn:incoming>
</bpmn:endEvent>
<bpmn:startEvent id="StartApprovalProcess" name="Start Approval Process">
<bpmn:outgoing>Flow_1ym5g7r</bpmn:outgoing>
<bpmn:messageEventDefinition id="MessageEventDefinition_0q86vff" messageRef="Message_1rkbi27" />
</bpmn:startEvent>
<bpmn:userTask id="Activity_EnablePlan" name="Enable Plan" camunda:formKey="Final Form">
<bpmn:extensionElements>
<camunda:formData>
<camunda:formField id="Done" label="Done!" type="string" />
</camunda:formData>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0jqxt85</bpmn:incoming>
<bpmn:outgoing>Flow_1ync7ek</bpmn:outgoing>
</bpmn:userTask>
<bpmn:endEvent id="Event_EndEvent1">
<bpmn:incoming>Flow_1ync7ek</bpmn:incoming>
<bpmn:terminateEventDefinition id="TerminateEventDefinition_1xkk9g2" />
</bpmn:endEvent>
</bpmn:process>
<bpmn:message id="Message_0sqqwvq" name="Approval" />
<bpmn:message id="Message_1rkbi27" name="ApprovalRequest" />
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_0n93bdm">
<bpmndi:BPMNShape id="Participant_1s3h4jc_di" bpmnElement="Participant_1s3h4jc" isHorizontal="true">
<dc:Bounds x="129" y="79" width="761" height="401" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_0m6phgl_di" bpmnElement="Lane_0m6phgl" isHorizontal="true">
<dc:Bounds x="159" y="204" width="731" height="276" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Lane_0stxlz6_di" bpmnElement="Lane_0stxlz6" isHorizontal="true">
<dc:Bounds x="159" y="79" width="731" height="125" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_0abuvsx_di" bpmnElement="Flow_0abuvsx">
<di:waypoint x="528" y="150" />
<di:waypoint x="572" y="150" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_060cfic_di" bpmnElement="Flow_060cfic">
<di:waypoint x="258" y="330" />
<di:waypoint x="280" y="330" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1tfirpy_di" bpmnElement="Flow_1tfirpy">
<di:waypoint x="620" y="355" />
<di:waypoint x="620" y="450" />
<di:waypoint x="330" y="450" />
<di:waypoint x="330" y="370" />
<bpmndi:BPMNLabel>
<dc:Bounds x="455" y="432" width="42" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ym5g7r_di" bpmnElement="Flow_1ym5g7r">
<di:waypoint x="278" y="150" />
<di:waypoint x="340" y="150" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0m1dzpq_di" bpmnElement="Flow_0m1dzpq">
<di:waypoint x="440" y="150" />
<di:waypoint x="492" y="150" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0jqxt85_di" bpmnElement="Flow_0jqxt85">
<di:waypoint x="645" y="330" />
<di:waypoint x="690" y="330" />
<bpmndi:BPMNLabel>
<dc:Bounds x="656" y="312" width="24" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1nsjil4_di" bpmnElement="Flow_1nsjil4">
<di:waypoint x="380" y="330" />
<di:waypoint x="422" y="330" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1t3bhky_di" bpmnElement="Flow_1t3bhky">
<di:waypoint x="458" y="330" />
<di:waypoint x="512" y="330" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ync7ek_di" bpmnElement="Flow_1ync7ek">
<di:waypoint x="790" y="330" />
<di:waypoint x="832" y="330" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1jdfc06_di" bpmnElement="Flow_1jdfc06">
<di:waypoint x="548" y="330" />
<di:waypoint x="595" y="330" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="Event_1kih4yf_di" bpmnElement="Event_NormalStart">
<dc:Bounds x="222" y="312" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0dqz4n8_di" bpmnElement="SendApprovalRequest">
<dc:Bounds x="422" y="312" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="404" y="355" width="73" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1cb7mmu_di" bpmnElement="GetDecision">
<dc:Bounds x="512" y="312" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="499" y="356" width="63" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_0hlo27j_di" bpmnElement="Gateway_Approved" isMarkerVisible="true">
<dc:Bounds x="595" y="305" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="595" y="275" width="50" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0bbi5vw_di" bpmnElement="Activity_ApproveOrDeny">
<dc:Bounds x="340" y="110" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1kg6an6_di" bpmnElement="Activity_EnterPlan">
<dc:Bounds x="280" y="290" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0jotxd7_di" bpmnElement="SendDecision">
<dc:Bounds x="492" y="132" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="476" y="175" width="71" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_16fdfur_di" bpmnElement="Event_EndEvent2">
<dc:Bounds x="572" y="132" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_11yv3q9_di" bpmnElement="StartApprovalProcess">
<dc:Bounds x="242" y="132" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="228" y="175" width="70" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_13sr7ty_di" bpmnElement="Activity_EnablePlan">
<dc:Bounds x="690" y="290" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0sezh04_di" bpmnElement="Event_EndEvent1">
<dc:Bounds x="832" y="312" width="36" height="36" />
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>