2023-01-11 15:50:47 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2023-01-11 17:25:26 +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">
|
2023-01-11 15:50:47 +00:00
|
|
|
<bpmn:process id="Get_External_Data" name="Get External Data" isExecutable="true">
|
2023-01-11 15:51:45 +00:00
|
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
|
|
<bpmn:outgoing>Flow_18tepzx</bpmn:outgoing>
|
|
|
|
</bpmn:startEvent>
|
|
|
|
<bpmn:endEvent id="Event_136ralp">
|
2023-01-11 17:30:13 +00:00
|
|
|
<bpmn:incoming>Flow_0fi046r</bpmn:incoming>
|
2023-01-11 15:51:45 +00:00
|
|
|
</bpmn:endEvent>
|
|
|
|
<bpmn:sequenceFlow id="Flow_18tepzx" sourceRef="StartEvent_1" targetRef="Activity_1jo6sl9" />
|
2023-01-11 17:25:26 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_1g3vxpd" sourceRef="Activity_1jo6sl9" targetRef="Gateway_0o249zn" />
|
2023-01-11 15:51:45 +00:00
|
|
|
<bpmn:businessRuleTask id="Activity_1jo6sl9" name="Set Which Data">
|
2023-01-11 17:25:26 +00:00
|
|
|
<bpmn:extensionElements>
|
|
|
|
<spiffworkflow:calledDecisionId>Which_External_Data</spiffworkflow:calledDecisionId>
|
|
|
|
</bpmn:extensionElements>
|
2023-01-11 15:51:45 +00:00
|
|
|
<bpmn:incoming>Flow_18tepzx</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1g3vxpd</bpmn:outgoing>
|
|
|
|
</bpmn:businessRuleTask>
|
2023-01-11 17:30:13 +00:00
|
|
|
<bpmn:exclusiveGateway id="Gateway_0o249zn" name="Zero Currencies?" default="Flow_0o9eevo">
|
2023-01-11 17:25:26 +00:00
|
|
|
<bpmn:incoming>Flow_1g3vxpd</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_053x0vr</bpmn:outgoing>
|
2023-01-11 17:30:13 +00:00
|
|
|
<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="Gateway_1q5un0k" />
|
|
|
|
<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" />
|
|
|
|
</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">
|
|
|
|
<bpmn:incoming>Flow_0jcgsio</bpmn:incoming>
|
|
|
|
<bpmn:incoming>Flow_0o9eevo</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_0fi046r</bpmn:outgoing>
|
2023-01-11 17:25:26 +00:00
|
|
|
</bpmn:exclusiveGateway>
|
2023-01-11 17:30:13 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_0fi046r" sourceRef="Gateway_1q5un0k" targetRef="Event_136ralp" />
|
|
|
|
<bpmn:sequenceFlow id="Flow_0o9eevo" name="No" sourceRef="Gateway_0o249zn" targetRef="Gateway_1q5un0k" />
|
2023-01-11 15:50:47 +00:00
|
|
|
</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="179" y="159" width="36" height="36" />
|
|
|
|
</bpmndi:BPMNShape>
|
2023-01-11 17:30:13 +00:00
|
|
|
<bpmndi:BPMNShape id="Event_136ralp_di" bpmnElement="Event_136ralp">
|
|
|
|
<dc:Bounds x="852" y="159" width="36" height="36" />
|
|
|
|
</bpmndi:BPMNShape>
|
2023-01-11 15:51:45 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_0nnd7mr_di" bpmnElement="Activity_1jo6sl9">
|
|
|
|
<dc:Bounds x="290" y="137" width="100" height="80" />
|
|
|
|
</bpmndi:BPMNShape>
|
2023-01-11 17:30:13 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_0teo8c8_di" bpmnElement="Activity_08ufz28">
|
|
|
|
<dc:Bounds x="580" y="137" width="100" height="80" />
|
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
<bpmndi:BPMNShape id="Gateway_1q5un0k_di" bpmnElement="Gateway_1q5un0k" isMarkerVisible="true">
|
|
|
|
<dc:Bounds x="745" y="152" width="50" height="50" />
|
2023-01-11 17:25:26 +00:00
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
<bpmndi:BPMNShape id="Gateway_0o249zn_di" bpmnElement="Gateway_0o249zn" isMarkerVisible="true">
|
2023-01-11 17:30:13 +00:00
|
|
|
<dc:Bounds x="465" y="152" width="50" height="50" />
|
2023-01-11 17:25:26 +00:00
|
|
|
<bpmndi:BPMNLabel>
|
2023-01-11 17:30:13 +00:00
|
|
|
<dc:Bounds x="449" y="209" width="85" height="14" />
|
2023-01-11 17:25:26 +00:00
|
|
|
</bpmndi:BPMNLabel>
|
|
|
|
</bpmndi:BPMNShape>
|
2023-01-11 15:51:45 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_18tepzx_di" bpmnElement="Flow_18tepzx">
|
|
|
|
<di:waypoint x="215" y="177" />
|
|
|
|
<di:waypoint x="290" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1g3vxpd_di" bpmnElement="Flow_1g3vxpd">
|
|
|
|
<di:waypoint x="390" y="177" />
|
2023-01-11 17:30:13 +00:00
|
|
|
<di:waypoint x="465" y="177" />
|
2023-01-11 17:25:26 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_053x0vr_di" bpmnElement="Flow_053x0vr">
|
2023-01-11 17:30:13 +00:00
|
|
|
<di:waypoint x="515" y="177" />
|
|
|
|
<di:waypoint x="580" y="177" />
|
|
|
|
<bpmndi:BPMNLabel>
|
|
|
|
<dc:Bounds x="539" y="159" width="18" height="14" />
|
|
|
|
</bpmndi:BPMNLabel>
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_0jcgsio_di" bpmnElement="Flow_0jcgsio">
|
|
|
|
<di:waypoint x="680" y="177" />
|
|
|
|
<di:waypoint x="745" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_0fi046r_di" bpmnElement="Flow_0fi046r">
|
|
|
|
<di:waypoint x="795" y="177" />
|
2023-01-11 17:25:26 +00:00
|
|
|
<di:waypoint x="852" y="177" />
|
2023-01-11 15:51:45 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
2023-01-11 17:30:13 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_0o9eevo_di" bpmnElement="Flow_0o9eevo">
|
|
|
|
<di:waypoint x="490" y="152" />
|
|
|
|
<di:waypoint x="490" y="90" />
|
|
|
|
<di:waypoint x="770" y="90" />
|
|
|
|
<di:waypoint x="770" y="152" />
|
|
|
|
<bpmndi:BPMNLabel>
|
|
|
|
<dc:Bounds x="623" y="72" width="15" height="14" />
|
|
|
|
</bpmndi:BPMNLabel>
|
|
|
|
</bpmndi:BPMNEdge>
|
2023-01-11 15:50:47 +00:00
|
|
|
</bpmndi:BPMNPlane>
|
|
|
|
</bpmndi:BPMNDiagram>
|
|
|
|
</bpmn:definitions>
|