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 04:50:48 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_1195zgn" sourceRef="Activity_0v7nz5r" targetRef="Activity_0sualuq" />
|
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 03:35:29 +00:00
|
|
|
<bpmn:incoming>Flow_03ueb3r</bpmn:incoming>
|
2022-10-14 23:32:13 +00:00
|
|
|
<bpmn:outgoing>Flow_1g9el64</bpmn:outgoing>
|
|
|
|
</bpmn:manualTask>
|
2022-10-15 03:35:29 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_03ueb3r" sourceRef="Activity_0twfaq6" targetRef="Activity_0s0ak1j" />
|
2022-10-15 03:41:11 +00:00
|
|
|
<bpmn:scriptTask id="Activity_0twfaq6" name="Format Telephone Number" scriptFormat="python">
|
2022-10-15 04:50:48 +00:00
|
|
|
<bpmn:incoming>Flow_083lz4u</bpmn:incoming>
|
2022-10-15 03:35:29 +00:00
|
|
|
<bpmn:outgoing>Flow_03ueb3r</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:sequenceFlow id="Flow_083lz4u" sourceRef="Activity_0sualuq" targetRef="Activity_0twfaq6" />
|
|
|
|
<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 04:50:48 +00:00
|
|
|
<bpmn:incoming>Flow_1195zgn</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_083lz4u</bpmn:outgoing>
|
|
|
|
</bpmn:businessRuleTask>
|
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 04:50:48 +00:00
|
|
|
<bpmndi:BPMNShape id="Event_0c62aiv_di" bpmnElement="Event_0c62aiv">
|
|
|
|
<dc:Bounds x="802" y="159" width="36" height="36" />
|
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
<bpmndi:BPMNShape id="Activity_1235hph_di" bpmnElement="Activity_0s0ak1j">
|
|
|
|
<dc:Bounds x="630" y="137" width="100" height="80" />
|
|
|
|
<bpmndi:BPMNLabel />
|
|
|
|
</bpmndi:BPMNShape>
|
2022-10-15 03:37:25 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_0qqdrd7_di" bpmnElement="Activity_0twfaq6">
|
|
|
|
<dc:Bounds x="440" y="137" width="100" height="80" />
|
2022-10-14 23:32:13 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2022-10-15 04:50:48 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_0igyd4t_di" bpmnElement="Activity_0sualuq">
|
|
|
|
<dc:Bounds x="240" y="137" width="100" height="80" />
|
2022-10-15 03:38:47 +00:00
|
|
|
</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" />
|
|
|
|
<di:waypoint x="240" y="177" />
|
2022-10-14 23:32:13 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1g9el64_di" bpmnElement="Flow_1g9el64">
|
2022-10-15 03:38:47 +00:00
|
|
|
<di:waypoint x="730" y="177" />
|
|
|
|
<di:waypoint x="802" y="177" />
|
2022-10-14 19:14:10 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
2022-10-15 03:35:29 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_03ueb3r_di" bpmnElement="Flow_03ueb3r">
|
|
|
|
<di:waypoint x="540" y="177" />
|
2022-10-15 03:38:47 +00:00
|
|
|
<di:waypoint x="630" y="177" />
|
2022-10-15 03:35:29 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
2022-10-15 04:50:48 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_083lz4u_di" bpmnElement="Flow_083lz4u">
|
|
|
|
<di:waypoint x="340" y="177" />
|
|
|
|
<di:waypoint x="440" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
2022-10-14 19:14:10 +00:00
|
|
|
</bpmndi:BPMNPlane>
|
|
|
|
</bpmndi:BPMNDiagram>
|
|
|
|
</bpmn:definitions>
|