2022-10-14 19:14:10 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2022-10-14 19:20:14 +00:00
|
|
|
<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">
|
2022-10-14 19:14:10 +00:00
|
|
|
<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">
|
2022-10-14 19:20:14 +00:00
|
|
|
<bpmn:extensionElements>
|
|
|
|
<spiffworkflow:properties>
|
2022-10-14 19:23:04 +00:00
|
|
|
<spiffworkflow:property name="formJsonSchemaFilename" value="simple-JSONSchema.json" />
|
|
|
|
<spiffworkflow:property name="formUiSchemaFilename" value="simple-UISchema.json" />
|
2022-10-14 19:20:14 +00:00
|
|
|
</spiffworkflow:properties>
|
|
|
|
</bpmn:extensionElements>
|
2022-10-14 19:14:10 +00:00
|
|
|
<bpmn:incoming>Flow_15c4wm3</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1195zgn</bpmn:outgoing>
|
|
|
|
</bpmn:userTask>
|
|
|
|
<bpmn:endEvent id="Event_0c62aiv">
|
2022-10-14 23:32:13 +00:00
|
|
|
<bpmn:incoming>Flow_1g9el64</bpmn:incoming>
|
2022-10-14 19:14:10 +00:00
|
|
|
</bpmn:endEvent>
|
2022-10-15 20:31:10 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_1195zgn" sourceRef="Activity_0v7nz5r" targetRef="Activity_0twfaq6" />
|
2022-10-14 23:32:13 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_1g9el64" sourceRef="Activity_0s0ak1j" targetRef="Event_0c62aiv" />
|
2022-10-15 01:54:04 +00:00
|
|
|
<bpmn:manualTask id="Activity_0s0ak1j" name="Call Chuck">
|
2022-10-14 23:56:28 +00:00
|
|
|
<bpmn:extensionElements>
|
2022-10-15 01:24:58 +00:00
|
|
|
<spiffworkflow:instructionsForEndUser>**First Name:** {{ firstName }}.
|
|
|
|
**Last Name:** {{ lastName }}.
|
2022-10-15 03:41:11 +00:00
|
|
|
**Telephone:** {{ telephone_all }} .
|
2022-10-15 01:43:54 +00:00
|
|
|
.
|
2022-10-15 01:38:58 +00:00
|
|
|
|
|
|
|
</spiffworkflow:instructionsForEndUser>
|
2022-10-14 23:56:28 +00:00
|
|
|
</bpmn:extensionElements>
|
2022-10-15 20:33:38 +00:00
|
|
|
<bpmn:incoming>Flow_0kdjagb</bpmn:incoming>
|
2022-10-14 23:32:13 +00:00
|
|
|
<bpmn:outgoing>Flow_1g9el64</bpmn:outgoing>
|
|
|
|
</bpmn:manualTask>
|
2022-10-15 03:41:11 +00:00
|
|
|
<bpmn:scriptTask id="Activity_0twfaq6" name="Format Telephone Number" scriptFormat="python">
|
2022-10-15 20:31:10 +00:00
|
|
|
<bpmn:incoming>Flow_1195zgn</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1vfw75z</bpmn:outgoing>
|
2022-10-15 03:41:11 +00:00
|
|
|
<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
|
2022-10-15 04:50:48 +00:00
|
|
|
telephone_all = country_code + " " + area_code + " " + phone_number_all</bpmn:script>
|
2022-10-15 03:35:29 +00:00
|
|
|
</bpmn:scriptTask>
|
2022-10-15 04:50:48 +00:00
|
|
|
<bpmn:businessRuleTask id="Activity_0sualuq" name="Analyze Phone Number">
|
2022-10-15 05:29:39 +00:00
|
|
|
<bpmn:extensionElements>
|
|
|
|
<spiffworkflow:calledDecisionId>Analyze_Phone_Number</spiffworkflow:calledDecisionId>
|
|
|
|
</bpmn:extensionElements>
|
2022-10-15 20:31:10 +00:00
|
|
|
<bpmn:incoming>Flow_1vfw75z</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_0z9399c</bpmn:outgoing>
|
2022-10-15 04:50:48 +00:00
|
|
|
</bpmn:businessRuleTask>
|
2022-10-15 20:31:10 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_1vfw75z" sourceRef="Activity_0twfaq6" targetRef="Activity_0sualuq" />
|
2022-10-15 20:31:53 +00:00
|
|
|
<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:exclusiveGateway>
|
2022-10-15 20:33:38 +00:00
|
|
|
<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>
|
2022-10-14 19:14:10 +00:00
|
|
|
</bpmn:process>
|
|
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Proccess_rlm9uj3">
|
2022-10-15 05:29:39 +00:00
|
|
|
<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>
|
2022-10-15 20:31:10 +00:00
|
|
|
<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>
|
2022-10-15 04:50:48 +00:00
|
|
|
<bpmndi:BPMNShape id="Event_0c62aiv_di" bpmnElement="Event_0c62aiv">
|
2022-10-15 20:31:10 +00:00
|
|
|
<dc:Bounds x="972" y="159" width="36" height="36" />
|
2022-10-15 04:50:48 +00:00
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
<bpmndi:BPMNShape id="Activity_1235hph_di" bpmnElement="Activity_0s0ak1j">
|
2022-10-15 20:31:10 +00:00
|
|
|
<dc:Bounds x="800" y="137" width="100" height="80" />
|
2022-10-15 04:50:48 +00:00
|
|
|
<bpmndi:BPMNLabel />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-10-15 20:31:53 +00:00
|
|
|
<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>
|
2022-10-15 20:33:38 +00:00
|
|
|
<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>
|
2022-10-14 19:14:10 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_15c4wm3_di" bpmnElement="Flow_15c4wm3">
|
2022-10-15 04:50:48 +00:00
|
|
|
<di:waypoint x="-22" y="177" />
|
|
|
|
<di:waypoint x="60" y="177" />
|
2022-10-14 19:14:10 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1195zgn_di" bpmnElement="Flow_1195zgn">
|
2022-10-15 04:50:48 +00:00
|
|
|
<di:waypoint x="160" y="177" />
|
2022-10-15 20:31:10 +00:00
|
|
|
<di:waypoint x="210" y="177" />
|
2022-10-14 23:32:13 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1g9el64_di" bpmnElement="Flow_1g9el64">
|
2022-10-15 20:31:10 +00:00
|
|
|
<di:waypoint x="900" y="177" />
|
|
|
|
<di:waypoint x="972" y="177" />
|
2022-10-14 19:14:10 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
2022-10-15 20:31:10 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_1vfw75z_di" bpmnElement="Flow_1vfw75z">
|
|
|
|
<di:waypoint x="310" y="177" />
|
|
|
|
<di:waypoint x="360" y="177" />
|
2022-10-15 03:35:29 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
2022-10-15 20:31:10 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_0z9399c_di" bpmnElement="Flow_0z9399c">
|
|
|
|
<di:waypoint x="460" y="177" />
|
2022-10-15 20:31:53 +00:00
|
|
|
<di:waypoint x="535" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_0z3tg6l_di" bpmnElement="Flow_0z3tg6l">
|
|
|
|
<di:waypoint x="585" y="177" />
|
2022-10-15 20:33:38 +00:00
|
|
|
<di:waypoint x="665" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_0kdjagb_di" bpmnElement="Flow_0kdjagb">
|
|
|
|
<di:waypoint x="715" y="177" />
|
2022-10-15 20:31:10 +00:00
|
|
|
<di:waypoint x="800" y="177" />
|
2022-10-15 04:50:48 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
2022-10-15 20:33:38 +00:00
|
|
|
<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>
|
2022-10-14 19:14:10 +00:00
|
|
|
</bpmndi:BPMNPlane>
|
|
|
|
</bpmndi:BPMNDiagram>
|
|
|
|
</bpmn:definitions>
|