mirror of
https://github.com/sartography/sample-process-models.git
synced 2025-02-24 05:38:06 +00:00
196 lines
9.6 KiB
XML
196 lines
9.6 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:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
|
|
<bpmn:process id="Proccess_rlm9uj3" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_15c4wm3</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_15c4wm3" sourceRef="StartEvent_1" targetRef="Activity_0v7nz5r" />
|
|
<bpmn:userTask id="Activity_0v7nz5r" name="Get Simple Information">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:properties>
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="simple-JSONSchema.json" />
|
|
<spiffworkflow:property name="formUiSchemaFilename" value="simple-UISchema.json" />
|
|
</spiffworkflow:properties>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_15c4wm3</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1195zgn</bpmn:outgoing>
|
|
</bpmn:userTask>
|
|
<bpmn:endEvent id="Event_0c62aiv">
|
|
<bpmn:incoming>Flow_1g9el64</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_1195zgn" sourceRef="Activity_0v7nz5r" targetRef="Activity_0twfaq6" />
|
|
<bpmn:sequenceFlow id="Flow_1g9el64" sourceRef="Activity_0s0ak1j" targetRef="Event_0c62aiv" />
|
|
<bpmn:manualTask id="Activity_0s0ak1j" name="Call Chuck">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:instructionsForEndUser>**First Name:** {{ firstName }}.
|
|
**Last Name:** {{ lastName }}.
|
|
**Telephone:** {{ telephone_all }} .
|
|
.
|
|
|
|
</spiffworkflow:instructionsForEndUser>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0kdjagb</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1g9el64</bpmn:outgoing>
|
|
</bpmn:manualTask>
|
|
<bpmn:scriptTask id="Activity_0twfaq6" name="Format Telephone Number" scriptFormat="python">
|
|
<bpmn:incoming>Flow_1195zgn</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1vfw75z</bpmn:outgoing>
|
|
<bpmn:script># Get lenth of phone number entered
|
|
tel_len = len(telephone)
|
|
|
|
# Determine if the US country code was entered or not
|
|
if tel_len == 11:
|
|
country_code = telephone[0]
|
|
area_code_strt = 1
|
|
else:
|
|
country_code = "1"
|
|
area_code_strt = 0
|
|
|
|
# Set where phone number starts
|
|
phone_strt = area_code_strt + 3
|
|
|
|
# Get area code
|
|
area_code = "(" + telephone[area_code_strt:area_code_strt+3] + ")"
|
|
|
|
# Get phone number
|
|
phone_before_hyphen = telephone[phone_strt:phone_strt+3]
|
|
phone_after_hyphen = telephone[phone_strt+3:]
|
|
phone_number_all = phone_before_hyphen + "-" + phone_after_hyphen
|
|
telephone_all = country_code + " " + area_code + " " + phone_number_all</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
<bpmn:businessRuleTask id="Activity_0sualuq" name="Analyze Phone Number">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:calledDecisionId>Analyze_Phone_Number</spiffworkflow:calledDecisionId>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_1vfw75z</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0z9399c</bpmn:outgoing>
|
|
</bpmn:businessRuleTask>
|
|
<bpmn:sequenceFlow id="Flow_1vfw75z" sourceRef="Activity_0twfaq6" targetRef="Activity_0sualuq" />
|
|
<bpmn:sequenceFlow id="Flow_0z9399c" sourceRef="Activity_0sualuq" targetRef="Gateway_1nez60d" />
|
|
<bpmn:exclusiveGateway id="Gateway_1nez60d" name="The Real Chuck Norris?">
|
|
<bpmn:incoming>Flow_0z9399c</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0z3tg6l</bpmn:outgoing>
|
|
<bpmn:outgoing>Flow_0gbomzh</bpmn:outgoing>
|
|
</bpmn:exclusiveGateway>
|
|
<bpmn:sequenceFlow id="Flow_0z3tg6l" sourceRef="Gateway_1nez60d" targetRef="Gateway_06fiuk8" />
|
|
<bpmn:exclusiveGateway id="Gateway_06fiuk8" name="Which of Chuck's Phone Numbers?">
|
|
<bpmn:incoming>Flow_0z3tg6l</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0kdjagb</bpmn:outgoing>
|
|
<bpmn:outgoing>Flow_0r7plsj</bpmn:outgoing>
|
|
</bpmn:exclusiveGateway>
|
|
<bpmn:sequenceFlow id="Flow_0kdjagb" sourceRef="Gateway_06fiuk8" targetRef="Activity_0s0ak1j" />
|
|
<bpmn:sequenceFlow id="Flow_0r7plsj" sourceRef="Gateway_06fiuk8" targetRef="Activity_1aggwmx" />
|
|
<bpmn:manualTask id="Activity_1aggwmx" name="Call Chuck's Fan Club">
|
|
<bpmn:incoming>Flow_0r7plsj</bpmn:incoming>
|
|
</bpmn:manualTask>
|
|
<bpmn:exclusiveGateway id="Gateway_0winlbl">
|
|
<bpmn:incoming>Flow_0gbomzh</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_07urdvu</bpmn:outgoing>
|
|
<bpmn:outgoing>Flow_0u5kd7m</bpmn:outgoing>
|
|
</bpmn:exclusiveGateway>
|
|
<bpmn:sequenceFlow id="Flow_0gbomzh" sourceRef="Gateway_1nez60d" targetRef="Gateway_0winlbl" />
|
|
<bpmn:task id="Activity_0uxorq8">
|
|
<bpmn:incoming>Flow_07urdvu</bpmn:incoming>
|
|
</bpmn:task>
|
|
<bpmn:sequenceFlow id="Flow_07urdvu" sourceRef="Gateway_0winlbl" targetRef="Activity_0uxorq8" />
|
|
<bpmn:task id="Activity_1ewbhqq">
|
|
<bpmn:incoming>Flow_0u5kd7m</bpmn:incoming>
|
|
</bpmn:task>
|
|
<bpmn:sequenceFlow id="Flow_0u5kd7m" sourceRef="Gateway_0winlbl" targetRef="Activity_1ewbhqq" />
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Proccess_rlm9uj3">
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="-58" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_15rn7j8_di" bpmnElement="Activity_0v7nz5r">
|
|
<dc:Bounds x="60" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0igyd4t_di" bpmnElement="Activity_0sualuq">
|
|
<dc:Bounds x="360" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0qqdrd7_di" bpmnElement="Activity_0twfaq6">
|
|
<dc:Bounds x="210" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1235hph_di" bpmnElement="Activity_0s0ak1j">
|
|
<dc:Bounds x="800" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Gateway_1nez60d_di" bpmnElement="Gateway_1nez60d" isMarkerVisible="true">
|
|
<dc:Bounds x="535" y="152" width="50" height="50" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="523" y="209" width="79" height="27" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Gateway_06fiuk8_di" bpmnElement="Gateway_06fiuk8" isMarkerVisible="true">
|
|
<dc:Bounds x="665" y="152" width="50" height="50" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="653" y="209" width="86" height="27" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0nv529h_di" bpmnElement="Activity_1aggwmx">
|
|
<dc:Bounds x="800" y="250" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Gateway_0winlbl_di" bpmnElement="Gateway_0winlbl" isMarkerVisible="true">
|
|
<dc:Bounds x="665" y="35" width="50" height="50" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_0c62aiv_di" bpmnElement="Event_0c62aiv">
|
|
<dc:Bounds x="1172" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0uxorq8_di" bpmnElement="Activity_0uxorq8">
|
|
<dc:Bounds x="800" y="20" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1ewbhqq_di" bpmnElement="Activity_1ewbhqq">
|
|
<dc:Bounds x="800" y="-90" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_15c4wm3_di" bpmnElement="Flow_15c4wm3">
|
|
<di:waypoint x="-22" y="177" />
|
|
<di:waypoint x="60" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1195zgn_di" bpmnElement="Flow_1195zgn">
|
|
<di:waypoint x="160" y="177" />
|
|
<di:waypoint x="210" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1g9el64_di" bpmnElement="Flow_1g9el64">
|
|
<di:waypoint x="900" y="177" />
|
|
<di:waypoint x="1172" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1vfw75z_di" bpmnElement="Flow_1vfw75z">
|
|
<di:waypoint x="310" y="177" />
|
|
<di:waypoint x="360" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0z9399c_di" bpmnElement="Flow_0z9399c">
|
|
<di:waypoint x="460" y="177" />
|
|
<di:waypoint x="535" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0z3tg6l_di" bpmnElement="Flow_0z3tg6l">
|
|
<di:waypoint x="585" y="177" />
|
|
<di:waypoint x="665" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0kdjagb_di" bpmnElement="Flow_0kdjagb">
|
|
<di:waypoint x="715" y="177" />
|
|
<di:waypoint x="800" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0r7plsj_di" bpmnElement="Flow_0r7plsj">
|
|
<di:waypoint x="690" y="202" />
|
|
<di:waypoint x="690" y="290" />
|
|
<di:waypoint x="800" y="290" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0gbomzh_di" bpmnElement="Flow_0gbomzh">
|
|
<di:waypoint x="560" y="152" />
|
|
<di:waypoint x="560" y="60" />
|
|
<di:waypoint x="665" y="60" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_07urdvu_di" bpmnElement="Flow_07urdvu">
|
|
<di:waypoint x="715" y="60" />
|
|
<di:waypoint x="800" y="60" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0u5kd7m_di" bpmnElement="Flow_0u5kd7m">
|
|
<di:waypoint x="690" y="35" />
|
|
<di:waypoint x="690" y="-50" />
|
|
<di:waypoint x="800" y="-50" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|