sample-process-models/misc/service-tests/xero/xero-service-task-test.bpmn

82 lines
4.6 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:spiffworkflow="http://spiffworkflow.org/bpmn/schema/1.0/core" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_96f6665" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.0.0-dev">
<bpmn:process id="Proccess_6e855vt" isExecutable="true">
<bpmn:startEvent id="StartEvent_1">
<bpmn:outgoing>Flow_1lrs9sm</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_1lrs9sm" sourceRef="StartEvent_1" targetRef="Activity_0b0v4ze" />
<bpmn:serviceTask id="Activity_0b0v4ze" name="Add Xero Invoice">
<bpmn:extensionElements>
<spiffworkflow:serviceTaskOperator id="xero/CreateInvoice" resultVariable="resp_XeroInvoice">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="access_token" type="any" value="&#34;secret:xero/OAuth&#34;" />
<spiffworkflow:parameter id="amount" type="str" value="1000" />
<spiffworkflow:parameter id="contact_email" type="str" value="&#34;harmeet@status.im&#34;" />
<spiffworkflow:parameter id="contact_name" type="str" value="&#34;Harmeet Singh&#34;" />
<spiffworkflow:parameter id="description" type="str" value="&#34;Bamboo Service Task Test&#34;" />
</spiffworkflow:parameters>
</spiffworkflow:serviceTaskOperator>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1lrs9sm</bpmn:incoming>
<bpmn:outgoing>Flow_1xov8zn</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:endEvent id="Event_1oekazn">
<bpmn:incoming>Flow_0dhr0z6</bpmn:incoming>
</bpmn:endEvent>
<bpmn:sequenceFlow id="Flow_1xov8zn" sourceRef="Activity_0b0v4ze" targetRef="Activity_1ftqk6a" />
<bpmn:sequenceFlow id="Flow_0jqts3n" sourceRef="Activity_1ftqk6a" targetRef="Activity_1xmac92" />
<bpmn:serviceTask id="Activity_1ftqk6a" name="Get Xero Currencies">
<bpmn:extensionElements>
<spiffworkflow:serviceTaskOperator id="xero/GetCurrencies" resultVariable="resp_XeroCurrencies">
<spiffworkflow:parameters>
<spiffworkflow:parameter id="access_token" type="any" value="&#34;secret:xero/OAuth&#34;" />
</spiffworkflow:parameters>
</spiffworkflow:serviceTaskOperator>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1xov8zn</bpmn:incoming>
<bpmn:outgoing>Flow_0jqts3n</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_0dhr0z6" sourceRef="Activity_1xmac92" targetRef="Event_1oekazn" />
<bpmn:scriptTask id="Activity_1xmac92" name="Build Enumeration">
<bpmn:incoming>Flow_0jqts3n</bpmn:incoming>
<bpmn:outgoing>Flow_0dhr0z6</bpmn:outgoing>
<bpmn:script>a=1</bpmn:script>
</bpmn:scriptTask>
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Proccess_6e855vt">
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
<dc:Bounds x="122" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_01fflkg_di" bpmnElement="Activity_0b0v4ze">
<dc:Bounds x="230" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1gt7pd1_di" bpmnElement="Activity_1ftqk6a">
<dc:Bounds x="400" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1a4fixf_di" bpmnElement="Activity_1xmac92">
<dc:Bounds x="580" y="137" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_1oekazn_di" bpmnElement="Event_1oekazn">
<dc:Bounds x="752" y="159" width="36" height="36" />
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="Flow_1lrs9sm_di" bpmnElement="Flow_1lrs9sm">
<di:waypoint x="158" y="177" />
<di:waypoint x="230" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1xov8zn_di" bpmnElement="Flow_1xov8zn">
<di:waypoint x="330" y="177" />
<di:waypoint x="400" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0jqts3n_di" bpmnElement="Flow_0jqts3n">
<di:waypoint x="500" y="177" />
<di:waypoint x="580" y="177" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0dhr0z6_di" bpmnElement="Flow_0dhr0z6">
<di:waypoint x="680" y="177" />
<di:waypoint x="752" y="177" />
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>