2023-01-09 15:55:18 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2023-01-09 16:09:57 +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-09 15:55:18 +00:00
|
|
|
<bpmn:process id="Process_43njy6v" isExecutable="true">
|
|
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
|
|
<bpmn:outgoing>Flow_0bm0u9u</bpmn:outgoing>
|
|
|
|
</bpmn:startEvent>
|
|
|
|
<bpmn:sequenceFlow id="Flow_0bm0u9u" sourceRef="StartEvent_1" targetRef="Activity_1vw7icm" />
|
|
|
|
<bpmn:sequenceFlow id="Flow_1ece1bb" sourceRef="Activity_1vw7icm" targetRef="Activity_1g29jx1" />
|
|
|
|
<bpmn:endEvent id="Event_0hpwh5a">
|
|
|
|
<bpmn:incoming>Flow_1kb14u2</bpmn:incoming>
|
|
|
|
</bpmn:endEvent>
|
|
|
|
<bpmn:sequenceFlow id="Flow_1kb14u2" sourceRef="Activity_1g29jx1" targetRef="Event_0hpwh5a" />
|
2023-01-09 15:55:51 +00:00
|
|
|
<bpmn:scriptTask id="Activity_1g29jx1" name="Check response keys">
|
|
|
|
<bpmn:incoming>Flow_1ece1bb</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1kb14u2</bpmn:outgoing>
|
2023-01-09 19:07:16 +00:00
|
|
|
<bpmn:script># check expected keys are present, will raise an exception if not
|
|
|
|
xe_convert_from["from"]
|
|
|
|
xe_convert_from["amount"]
|
|
|
|
xe_convert_from["to"]["quotecurrency"]
|
|
|
|
xe_convert_from["to"]["mid"]</bpmn:script>
|
2023-01-09 15:55:51 +00:00
|
|
|
</bpmn:scriptTask>
|
2023-01-09 19:08:00 +00:00
|
|
|
<bpmn:callActivity id="Activity_1vw7icm" name="Call Xe Convert From" calledElement="Xe_ConvertFrom">
|
2023-01-09 16:09:57 +00:00
|
|
|
<bpmn:extensionElements>
|
|
|
|
<spiffworkflow:preScript>xe_convert_from_currency = "AUD"
|
|
|
|
xe_convert_to_currency = "USD"
|
|
|
|
xe_amount = 1234.56
|
|
|
|
xe_decimal_places = 2</spiffworkflow:preScript>
|
|
|
|
</bpmn:extensionElements>
|
2023-01-09 15:55:51 +00:00
|
|
|
<bpmn:incoming>Flow_0bm0u9u</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1ece1bb</bpmn:outgoing>
|
|
|
|
</bpmn:callActivity>
|
2023-01-09 15:55:18 +00:00
|
|
|
</bpmn:process>
|
|
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_43njy6v">
|
|
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
|
|
<dc:Bounds x="179" y="159" width="36" height="36" />
|
|
|
|
</bpmndi:BPMNShape>
|
2023-01-09 15:55:51 +00:00
|
|
|
<bpmndi:BPMNShape id="Event_0hpwh5a_di" bpmnElement="Event_0hpwh5a">
|
|
|
|
<dc:Bounds x="592" y="159" width="36" height="36" />
|
2023-01-09 15:55:18 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2023-01-09 15:55:51 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_0bo7f8n_di" bpmnElement="Activity_1g29jx1">
|
2023-01-09 15:55:18 +00:00
|
|
|
<dc:Bounds x="430" y="137" width="100" height="80" />
|
2023-01-09 15:55:51 +00:00
|
|
|
<bpmndi:BPMNLabel />
|
2023-01-09 15:55:18 +00:00
|
|
|
</bpmndi:BPMNShape>
|
2023-01-09 15:55:51 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_17ukk6t_di" bpmnElement="Activity_1vw7icm">
|
|
|
|
<dc:Bounds x="270" y="137" width="100" height="80" />
|
|
|
|
<bpmndi:BPMNLabel />
|
2023-01-09 15:55:18 +00:00
|
|
|
</bpmndi:BPMNShape>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_0bm0u9u_di" bpmnElement="Flow_0bm0u9u">
|
|
|
|
<di:waypoint x="215" y="177" />
|
|
|
|
<di:waypoint x="270" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1ece1bb_di" bpmnElement="Flow_1ece1bb">
|
|
|
|
<di:waypoint x="370" y="177" />
|
|
|
|
<di:waypoint x="430" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1kb14u2_di" bpmnElement="Flow_1kb14u2">
|
|
|
|
<di:waypoint x="530" y="177" />
|
|
|
|
<di:waypoint x="592" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
</bpmndi:BPMNPlane>
|
|
|
|
</bpmndi:BPMNDiagram>
|
|
|
|
</bpmn:definitions>
|