276 lines
14 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_1czgyj5</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1195zgn" sourceRef="Activity_0v7nz5r" targetRef="Activity_0twfaq6" />
<bpmn:manualTask id="Activity_0s0ak1j" name="Call The Real Chuck Norris">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>## Call The Real Chuck Norris
**First Name:** {{ firstName }}
**Last Name:** {{ lastName }}
**Telephone:** {{ telephone_all }}
.
</spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0kdjagb</bpmn:incoming>
<bpmn:outgoing>Flow_12yxktn</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
delete_variables(country_code)
delete_variables(area_code)
delete_variables(phone_number_all)
delete_variables(phone_strt)
delete_variables(area_code_strt)
delete_variables(phone_before_hyphen)
delete_variables(phone_after_hyphen)</bpmn:script>
</bpmn:scriptTask>
<bpmn:businessRuleTask id="Activity_0sualuq" name="Analyze Phone Number">
<bpmn:extensionElements>
<spiffworkflow:calledDecisionId>Analyze_Telephone_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?" default="Flow_0gbomzh">
<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" name="Yes" sourceRef="Gateway_1nez60d" targetRef="Gateway_06fiuk8">
<bpmn:conditionExpression>isRealChuckNorris</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:exclusiveGateway id="Gateway_06fiuk8" name="Which of The Real Chuck&#39;s Phone Numbers?" default="Flow_0r7plsj">
<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:conditionExpression>whichNumber == "Chuck's Personal Number"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0r7plsj" sourceRef="Gateway_06fiuk8" targetRef="Activity_1aggwmx" />
<bpmn:manualTask id="Activity_1aggwmx" name="Call Chuck&#39;s Fan Club">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>##. Call Chuck's Fan Club
**First Name:** {{ firstName }}
**Last Name:** {{ lastName }}
**Telephone:** {{ telephone_all }} </spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0r7plsj</bpmn:incoming>
<bpmn:outgoing>Flow_1yshk2s</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:exclusiveGateway id="Gateway_0winlbl" name="Which Other Chuck?" default="Flow_0u5kd7m">
<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" name="No" sourceRef="Gateway_1nez60d" targetRef="Gateway_0winlbl" />
<bpmn:sequenceFlow id="Flow_07urdvu" sourceRef="Gateway_0winlbl" targetRef="Activity_0uxorq8">
<bpmn:conditionExpression>whichNumber == "Some Other Chuck Norris"</bpmn:conditionExpression>
</bpmn:sequenceFlow>
<bpmn:sequenceFlow id="Flow_0u5kd7m" sourceRef="Gateway_0winlbl" targetRef="Activity_1ewbhqq" />
<bpmn:exclusiveGateway id="Gateway_1em7510">
<bpmn:incoming>Flow_0q4rvgc</bpmn:incoming>
<bpmn:incoming>Flow_0gr5f0w</bpmn:incoming>
<bpmn:incoming>Flow_12yxktn</bpmn:incoming>
<bpmn:incoming>Flow_1yshk2s</bpmn:incoming>
<bpmn:outgoing>Flow_1czgyj5</bpmn:outgoing>
</bpmn:exclusiveGateway>
<bpmn:sequenceFlow id="Flow_0q4rvgc" sourceRef="Activity_1ewbhqq" targetRef="Gateway_1em7510" />
<bpmn:sequenceFlow id="Flow_0gr5f0w" sourceRef="Activity_0uxorq8" targetRef="Gateway_1em7510" />
<bpmn:sequenceFlow id="Flow_12yxktn" sourceRef="Activity_0s0ak1j" targetRef="Gateway_1em7510" />
<bpmn:sequenceFlow id="Flow_1yshk2s" sourceRef="Activity_1aggwmx" targetRef="Gateway_1em7510" />
<bpmn:sequenceFlow id="Flow_1czgyj5" sourceRef="Gateway_1em7510" targetRef="Event_0c62aiv" />
<bpmn:manualTask id="Activity_1ewbhqq" name="Call Some Other Chuck">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>## Call Some Other Chuck
**First Name:** {{ firstName }}
**Last Name:** {{ lastName }}
**Telephone:** {{ telephone_all }} </spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0u5kd7m</bpmn:incoming>
<bpmn:outgoing>Flow_0q4rvgc</bpmn:outgoing>
</bpmn:manualTask>
<bpmn:manualTask id="Activity_0uxorq8" name="Call Some Other Check Norris">
<bpmn:extensionElements>
<spiffworkflow:instructionsForEndUser>## Call Some Other Chuck Norris
**First Name:** {{ firstName }}
**Last Name:** {{ lastName }}.
**Telephone:** {{ telephone_all }} </spiffworkflow:instructionsForEndUser>
</bpmn:extensionElements>
<bpmn:incoming>Flow_07urdvu</bpmn:incoming>
<bpmn:outgoing>Flow_0gr5f0w</bpmn:outgoing>
</bpmn:manualTask>
</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="-28" y="199" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_15rn7j8_di" bpmnElement="Activity_0v7nz5r">
<dc:Bounds x="60" y="177" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0c62aiv_di" bpmnElement="Event_0c62aiv">
<dc:Bounds x="1132" y="122" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1235hph_di" bpmnElement="Activity_0s0ak1j">
<dc:Bounds x="800" y="177" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0qqdrd7_di" bpmnElement="Activity_0twfaq6">
<dc:Bounds x="210" y="177" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0igyd4t_di" bpmnElement="Activity_0sualuq">
<dc:Bounds x="360" y="177" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1nez60d_di" bpmnElement="Gateway_1nez60d" isMarkerVisible="true">
<dc:Bounds x="535" y="192" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="523" y="249" width="79" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_06fiuk8_di" bpmnElement="Gateway_06fiuk8" isMarkerVisible="true">
<dc:Bounds x="665" y="192" width="50" height="50" />
<bpmndi:BPMNLabel>
<dc:Bounds x="647" y="150" width="86" height="40" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0nv529h_di" bpmnElement="Activity_1aggwmx">
<dc:Bounds x="800" y="290" 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:BPMNLabel>
<dc:Bounds x="661" y="92" width="62" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Gateway_1em7510_di" bpmnElement="Gateway_1em7510" isMarkerVisible="true">
<dc:Bounds x="995" y="115" width="50" height="50" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_08p2k71_di" bpmnElement="Activity_1ewbhqq">
<dc:Bounds x="800" y="-100" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_063pfne_di" bpmnElement="Activity_0uxorq8">
<dc:Bounds x="800" y="20" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_15c4wm3_di" bpmnElement="Flow_15c4wm3">
<di:waypoint x="8" y="217" />
<di:waypoint x="60" y="217" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1195zgn_di" bpmnElement="Flow_1195zgn">
<di:waypoint x="160" y="217" />
<di:waypoint x="210" y="217" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1vfw75z_di" bpmnElement="Flow_1vfw75z">
<di:waypoint x="310" y="217" />
<di:waypoint x="360" y="217" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0z9399c_di" bpmnElement="Flow_0z9399c">
<di:waypoint x="460" y="217" />
<di:waypoint x="535" y="217" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0z3tg6l_di" bpmnElement="Flow_0z3tg6l">
<di:waypoint x="585" y="217" />
<di:waypoint x="665" y="217" />
<bpmndi:BPMNLabel>
<dc:Bounds x="616" y="199" width="18" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0kdjagb_di" bpmnElement="Flow_0kdjagb">
<di:waypoint x="715" y="217" />
<di:waypoint x="800" y="217" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0r7plsj_di" bpmnElement="Flow_0r7plsj">
<di:waypoint x="690" y="242" />
<di:waypoint x="690" y="330" />
<di:waypoint x="800" y="330" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0gbomzh_di" bpmnElement="Flow_0gbomzh">
<di:waypoint x="560" y="192" />
<di:waypoint x="560" y="60" />
<di:waypoint x="665" y="60" />
<bpmndi:BPMNLabel>
<dc:Bounds x="568" y="103" width="15" height="14" />
</bpmndi:BPMNLabel>
</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="-60" />
<di:waypoint x="800" y="-60" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0q4rvgc_di" bpmnElement="Flow_0q4rvgc">
<di:waypoint x="900" y="-60" />
<di:waypoint x="1020" y="-60" />
<di:waypoint x="1020" y="115" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0gr5f0w_di" bpmnElement="Flow_0gr5f0w">
<di:waypoint x="900" y="60" />
<di:waypoint x="1020" y="60" />
<di:waypoint x="1020" y="115" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_12yxktn_di" bpmnElement="Flow_12yxktn">
<di:waypoint x="900" y="217" />
<di:waypoint x="1020" y="217" />
<di:waypoint x="1020" y="165" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1yshk2s_di" bpmnElement="Flow_1yshk2s">
<di:waypoint x="900" y="330" />
<di:waypoint x="1020" y="330" />
<di:waypoint x="1020" y="165" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1czgyj5_di" bpmnElement="Flow_1czgyj5">
<di:waypoint x="1045" y="140" />
<di:waypoint x="1132" y="140" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>