51 lines
3.1 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="Xe_ConvertFrom" name="Xe Convert From" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_1ci8aj7</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1ci8aj7" sourceRef="StartEvent_1" targetRef="Activity_0rwlckz" />
<bpmn:endEvent id="Event_1axua6j">
<bpmn:incoming>Flow_0clh408</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_0clh408" sourceRef="Activity_0rwlckz" targetRef="Event_1axua6j" />
<bpmn:serviceTask id="Activity_0rwlckz" name="Convert From">
<bpmn:extensionElements>
<spiffworkflow:serviceTaskOperator id="http/GetRequest" resultVariable="xe_convert_from">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="basic_auth_password" type="str" value="&#34;secret:XE_API_KEY&#34;" />
<spiffworkflow:parameter id="basic_auth_username" type="str" value="&#34;secret:XE_ACCOUNT_ID&#34;" />
<spiffworkflow:parameter id="headers" type="any" value="{&#34;Accept&#34;: &#34;application/json&#34;}" />
<spiffworkflow:parameter id="params" type="any" value="{&#34;from&#34;: xe_convert_from_currency, &#34;to&#34;: xe_convert_to_currency, &#34;amount&#34;: xe_amount, &#34;decimal_places&#34;: xe_decimal_places}" />
<spiffworkflow:parameter id="url" type="str" value="&#34;https://xecdapi.xe.com/v1/convert_from&#34;" />
</spiffworkflow:parameters>
</spiffworkflow:serviceTaskOperator>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1ci8aj7</bpmn:incoming>
<bpmn:outgoing>Flow_0clh408</bpmn:outgoing>
</bpmn:serviceTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Xe_ConvertFrom">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="179" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1axua6j_di" bpmnElement="Event_1axua6j">
<dc:Bounds x="432" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1xpo7q4_di" bpmnElement="Activity_0rwlckz">
<dc:Bounds x="270" y="137" width="100" height="80" />
<bpmndi:BPMNLabel />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1ci8aj7_di" bpmnElement="Flow_1ci8aj7">
<di:waypoint x="215" y="177" />
<di:waypoint x="270" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0clh408_di" bpmnElement="Flow_0clh408">
<di:waypoint x="370" y="177" />
<di:waypoint x="432" y="177" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>