mirror of
https://github.com/sartography/sample-process-models.git
synced 2025-02-24 21:58:18 +00:00
298 lines
16 KiB
XML
298 lines
16 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="Get_External_Data" name="Get External Data" isExecutable="true">
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
<bpmn:outgoing>Flow_18tepzx</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:endEvent id="Event_136ralp">
|
|
<bpmn:incoming>Flow_1oquwaz</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_18tepzx" sourceRef="StartEvent_1" targetRef="Activity_1jo6sl9" />
|
|
<bpmn:businessRuleTask id="Activity_1jo6sl9" name="Set Which Data">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:calledDecisionId>Which_External_Data</spiffworkflow:calledDecisionId>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_18tepzx</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1cbv4q4</bpmn:outgoing>
|
|
</bpmn:businessRuleTask>
|
|
<bpmn:exclusiveGateway id="Gateway_0o249zn" name="Zero Currencies?" default="Flow_0o9eevo">
|
|
<bpmn:incoming>Flow_09ph5wv</bpmn:incoming>
|
|
<bpmn:incoming>Flow_0inh2cy</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_053x0vr</bpmn:outgoing>
|
|
<bpmn:outgoing>Flow_0o9eevo</bpmn:outgoing>
|
|
</bpmn:exclusiveGateway>
|
|
<bpmn:sequenceFlow id="Flow_053x0vr" name="Yes" sourceRef="Gateway_0o249zn" targetRef="Activity_08ufz28">
|
|
<bpmn:conditionExpression>is_xero_currencies</bpmn:conditionExpression>
|
|
</bpmn:sequenceFlow>
|
|
<bpmn:sequenceFlow id="Flow_0jcgsio" sourceRef="Activity_08ufz28" targetRef="Activity_0hlao5k" />
|
|
<bpmn:serviceTask id="Activity_08ufz28" name="Get Xero Currencies">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:serviceTaskOperator id="xero/GetCurrencies" resultVariable="resp_XeroCurrencies">
|
|
<spiffworkflow:parameters>
|
|
<spiffworkflow:parameter id="access_token" type="any" value=""secret:xero/OAuth"" />
|
|
</spiffworkflow:parameters>
|
|
</spiffworkflow:serviceTaskOperator>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_053x0vr</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0jcgsio</bpmn:outgoing>
|
|
</bpmn:serviceTask>
|
|
<bpmn:exclusiveGateway id="Gateway_1q5un0k" name="Xero Currency Converter" default="Flow_1dwli00">
|
|
<bpmn:incoming>Flow_0o9eevo</bpmn:incoming>
|
|
<bpmn:incoming>Flow_04yq3ih</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1219gt2</bpmn:outgoing>
|
|
<bpmn:outgoing>Flow_1dwli00</bpmn:outgoing>
|
|
</bpmn:exclusiveGateway>
|
|
<bpmn:sequenceFlow id="Flow_0o9eevo" name="No" sourceRef="Gateway_0o249zn" targetRef="Gateway_1q5un0k" />
|
|
<bpmn:sequenceFlow id="Flow_04yq3ih" sourceRef="Activity_0hlao5k" targetRef="Gateway_1q5un0k" />
|
|
<bpmn:scriptTask id="Activity_0hlao5k" name="Set Currency Enum List">
|
|
<bpmn:incoming>Flow_0jcgsio</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_04yq3ih</bpmn:outgoing>
|
|
<bpmn:dataOutputAssociation id="DataOutputAssociation_0llvj9u">
|
|
<bpmn:targetRef>DataObjectReference_1et46mv</bpmn:targetRef>
|
|
</bpmn:dataOutputAssociation>
|
|
<bpmn:script># Create Currency Enum List
|
|
currency_enum_list = [{"label": f"{x['Description']} ({x['Code']})", "value": x["Code"]} for x in resp_XeroCurrencies["Currencies"]]</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
<bpmn:dataObject id="resp_XeroCurrencies" />
|
|
<bpmn:dataObjectReference id="DataObjectReference_1et46mv" name="Resp Xero Currencies" dataObjectRef="resp_XeroCurrencies" />
|
|
<bpmn:callActivity id="Activity_1iqd7al" name="Call ST: Get Bamboo Dept & Div" calledElement="Bamboo-AllDivisionsAndDepartments">
|
|
<bpmn:incoming>Flow_1ysolp8</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0inh2cy</bpmn:outgoing>
|
|
</bpmn:callActivity>
|
|
<bpmn:exclusiveGateway id="Gateway_0lkar7l" name="Bamboo Employee Info?" default="Flow_0tsv7ot">
|
|
<bpmn:incoming>Flow_1cbv4q4</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0r8yabd</bpmn:outgoing>
|
|
<bpmn:outgoing>Flow_0tsv7ot</bpmn:outgoing>
|
|
</bpmn:exclusiveGateway>
|
|
<bpmn:sequenceFlow id="Flow_0r8yabd" name="Yes" sourceRef="Gateway_0lkar7l" targetRef="Activity_0dvuqv4">
|
|
<bpmn:conditionExpression>is_bamboo_employee</bpmn:conditionExpression>
|
|
</bpmn:sequenceFlow>
|
|
<bpmn:exclusiveGateway id="Gateway_0hizx28">
|
|
<bpmn:incoming>Flow_1nybcdw</bpmn:incoming>
|
|
<bpmn:incoming>Flow_1dwli00</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1oquwaz</bpmn:outgoing>
|
|
</bpmn:exclusiveGateway>
|
|
<bpmn:sequenceFlow id="Flow_1oquwaz" sourceRef="Gateway_0hizx28" targetRef="Event_136ralp" />
|
|
<bpmn:sequenceFlow id="Flow_0tsv7ot" name="No" sourceRef="Gateway_0lkar7l" targetRef="Gateway_158rw2p" />
|
|
<bpmn:exclusiveGateway id="Gateway_158rw2p" name="Department and/or Division?" default="Flow_09ph5wv">
|
|
<bpmn:incoming>Flow_0xii3bc</bpmn:incoming>
|
|
<bpmn:incoming>Flow_0tsv7ot</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0itahfd</bpmn:outgoing>
|
|
<bpmn:outgoing>Flow_09ph5wv</bpmn:outgoing>
|
|
</bpmn:exclusiveGateway>
|
|
<bpmn:sequenceFlow id="Flow_0itahfd" name="Yes" sourceRef="Gateway_158rw2p" targetRef="Activity_0r8d0an">
|
|
<bpmn:conditionExpression>is_bamboo_dept_div</bpmn:conditionExpression>
|
|
</bpmn:sequenceFlow>
|
|
<bpmn:sequenceFlow id="Flow_09ph5wv" name="No" sourceRef="Gateway_158rw2p" targetRef="Gateway_0o249zn" />
|
|
<bpmn:sequenceFlow id="Flow_1ha0xdh" sourceRef="Activity_0dvuqv4" targetRef="Activity_01btf3w" />
|
|
<bpmn:businessRuleTask id="Activity_0dvuqv4" name="Which Bamboo Employee Info">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:calledDecisionId>Which_Bamboo_Employee_Data</spiffworkflow:calledDecisionId>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0r8yabd</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1ha0xdh</bpmn:outgoing>
|
|
</bpmn:businessRuleTask>
|
|
<bpmn:sequenceFlow id="Flow_1ysolp8" sourceRef="Activity_0r8d0an" targetRef="Activity_1iqd7al" />
|
|
<bpmn:businessRuleTask id="Activity_0r8d0an" name="Which Bamboo Department & Division Data">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:calledDecisionId>Which_Bamboo_Department_Division_Data</spiffworkflow:calledDecisionId>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0itahfd</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1ysolp8</bpmn:outgoing>
|
|
</bpmn:businessRuleTask>
|
|
<bpmn:sequenceFlow id="Flow_0xii3bc" sourceRef="Activity_01btf3w" targetRef="Gateway_158rw2p" />
|
|
<bpmn:callActivity id="Activity_01btf3w" name="Call ST: Get Bamboo Employee Info" calledElement="Bamboo_GetEmployee">
|
|
<bpmn:incoming>Flow_1ha0xdh</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0xii3bc</bpmn:outgoing>
|
|
</bpmn:callActivity>
|
|
<bpmn:sequenceFlow id="Flow_0inh2cy" sourceRef="Activity_1iqd7al" targetRef="Gateway_0o249zn" />
|
|
<bpmn:sequenceFlow id="Flow_1219gt2" name="Yes" sourceRef="Gateway_1q5un0k" targetRef="Activity_1eryq4s">
|
|
<bpmn:conditionExpression>is_xero_currency_converter</bpmn:conditionExpression>
|
|
</bpmn:sequenceFlow>
|
|
<bpmn:sequenceFlow id="Flow_1cbv4q4" sourceRef="Activity_1jo6sl9" targetRef="Gateway_0lkar7l" />
|
|
<bpmn:sequenceFlow id="Flow_1nybcdw" sourceRef="Activity_1eryq4s" targetRef="Gateway_0hizx28" />
|
|
<bpmn:callActivity id="Activity_1eryq4s" name="Call ST: Xero Convert From" calledElement="Xe_ConvertFrom">
|
|
<bpmn:incoming>Flow_1219gt2</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_1nybcdw</bpmn:outgoing>
|
|
</bpmn:callActivity>
|
|
<bpmn:sequenceFlow id="Flow_1dwli00" name="No" sourceRef="Gateway_1q5un0k" targetRef="Gateway_0hizx28" />
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Get_External_Data">
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
<dc:Bounds x="132" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_136ralp_di" bpmnElement="Event_136ralp">
|
|
<dc:Bounds x="2292" y="159" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0nnd7mr_di" bpmnElement="Activity_1jo6sl9">
|
|
<dc:Bounds x="250" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Gateway_0o249zn_di" bpmnElement="Gateway_0o249zn" isMarkerVisible="true">
|
|
<dc:Bounds x="1365" y="152" width="50" height="50" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="1287" y="193" width="85" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0teo8c8_di" bpmnElement="Activity_08ufz28">
|
|
<dc:Bounds x="1490" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Gateway_1q5un0k_di" bpmnElement="Gateway_1q5un0k" isMarkerVisible="true">
|
|
<dc:Bounds x="1835" y="152" width="50" height="50" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="1774" y="196" width="71" height="27" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_035s802_di" bpmnElement="Activity_0hlao5k">
|
|
<dc:Bounds x="1660" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="DataObjectReference_1et46mv_di" bpmnElement="DataObjectReference_1et46mv">
|
|
<dc:Bounds x="1692" y="285" width="36" height="50" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="1683" y="342" width="54" height="27" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0dhmpkt_di" bpmnElement="Activity_1iqd7al">
|
|
<dc:Bounds x="1180" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Gateway_0lkar7l_di" bpmnElement="Gateway_0lkar7l" isMarkerVisible="true">
|
|
<dc:Bounds x="435" y="152" width="50" height="50" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="424" y="209" width="77" height="27" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Gateway_0hizx28_di" bpmnElement="Gateway_0hizx28" isMarkerVisible="true">
|
|
<dc:Bounds x="2165" y="152" width="50" height="50" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Gateway_158rw2p_di" bpmnElement="Gateway_158rw2p" isMarkerVisible="true">
|
|
<dc:Bounds x="895" y="152" width="50" height="50" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="830" y="196" width="79" height="27" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0992vgv_di" bpmnElement="Activity_0dvuqv4">
|
|
<dc:Bounds x="560" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1totzjc_di" bpmnElement="Activity_0r8d0an">
|
|
<dc:Bounds x="1010" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1nzodaf_di" bpmnElement="Activity_01btf3w">
|
|
<dc:Bounds x="720" y="137" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_1frvjl1_di" bpmnElement="Activity_1eryq4s">
|
|
<dc:Bounds x="1970" y="137" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_18tepzx_di" bpmnElement="Flow_18tepzx">
|
|
<di:waypoint x="168" y="177" />
|
|
<di:waypoint x="250" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_053x0vr_di" bpmnElement="Flow_053x0vr">
|
|
<di:waypoint x="1415" y="177" />
|
|
<di:waypoint x="1490" y="177" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="1431" y="159" width="18" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0jcgsio_di" bpmnElement="Flow_0jcgsio">
|
|
<di:waypoint x="1590" y="177" />
|
|
<di:waypoint x="1660" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0o9eevo_di" bpmnElement="Flow_0o9eevo">
|
|
<di:waypoint x="1390" y="152" />
|
|
<di:waypoint x="1390" y="90" />
|
|
<di:waypoint x="1860" y="90" />
|
|
<di:waypoint x="1860" y="152" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="1613" y="72" width="15" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_04yq3ih_di" bpmnElement="Flow_04yq3ih">
|
|
<di:waypoint x="1760" y="177" />
|
|
<di:waypoint x="1835" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="DataOutputAssociation_0llvj9u_di" bpmnElement="DataOutputAssociation_0llvj9u">
|
|
<di:waypoint x="1711" y="217" />
|
|
<di:waypoint x="1712" y="285" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0r8yabd_di" bpmnElement="Flow_0r8yabd">
|
|
<di:waypoint x="485" y="177" />
|
|
<di:waypoint x="560" y="177" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="495" y="159" width="18" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1oquwaz_di" bpmnElement="Flow_1oquwaz">
|
|
<di:waypoint x="2215" y="177" />
|
|
<di:waypoint x="2292" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0tsv7ot_di" bpmnElement="Flow_0tsv7ot">
|
|
<di:waypoint x="460" y="152" />
|
|
<di:waypoint x="460" y="60" />
|
|
<di:waypoint x="920" y="60" />
|
|
<di:waypoint x="920" y="152" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="682" y="42" width="15" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0itahfd_di" bpmnElement="Flow_0itahfd">
|
|
<di:waypoint x="945" y="177" />
|
|
<di:waypoint x="1010" y="177" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="955" y="159" width="18" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_09ph5wv_di" bpmnElement="Flow_09ph5wv">
|
|
<di:waypoint x="920" y="202" />
|
|
<di:waypoint x="920" y="280" />
|
|
<di:waypoint x="1390" y="280" />
|
|
<di:waypoint x="1390" y="202" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="1142" y="262" width="15" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1ha0xdh_di" bpmnElement="Flow_1ha0xdh">
|
|
<di:waypoint x="660" y="177" />
|
|
<di:waypoint x="720" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1ysolp8_di" bpmnElement="Flow_1ysolp8">
|
|
<di:waypoint x="1110" y="177" />
|
|
<di:waypoint x="1180" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0xii3bc_di" bpmnElement="Flow_0xii3bc">
|
|
<di:waypoint x="820" y="177" />
|
|
<di:waypoint x="895" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0inh2cy_di" bpmnElement="Flow_0inh2cy">
|
|
<di:waypoint x="1280" y="177" />
|
|
<di:waypoint x="1365" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1219gt2_di" bpmnElement="Flow_1219gt2">
|
|
<di:waypoint x="1885" y="177" />
|
|
<di:waypoint x="1970" y="177" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="1919" y="159" width="18" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1cbv4q4_di" bpmnElement="Flow_1cbv4q4">
|
|
<di:waypoint x="350" y="177" />
|
|
<di:waypoint x="435" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1nybcdw_di" bpmnElement="Flow_1nybcdw">
|
|
<di:waypoint x="2070" y="177" />
|
|
<di:waypoint x="2165" y="177" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_1dwli00_di" bpmnElement="Flow_1dwli00">
|
|
<di:waypoint x="1860" y="202" />
|
|
<di:waypoint x="1860" y="280" />
|
|
<di:waypoint x="2190" y="280" />
|
|
<di:waypoint x="2190" y="202" />
|
|
<bpmndi:BPMNLabel>
|
|
<dc:Bounds x="2018" y="262" width="15" height="14" />
|
|
</bpmndi:BPMNLabel>
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|