2023-01-06 15:32:26 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2023-01-06 15:38:05 +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-06 15:32:26 +00:00
|
|
|
<bpmn:process id="Process_m8cr3m1" isExecutable="true">
|
|
|
|
<bpmn:startEvent id="StartEvent_1">
|
|
|
|
<bpmn:outgoing>Flow_1xs7inf</bpmn:outgoing>
|
|
|
|
</bpmn:startEvent>
|
|
|
|
<bpmn:sequenceFlow id="Flow_1xs7inf" sourceRef="StartEvent_1" targetRef="Activity_143xt5w" />
|
|
|
|
<bpmn:endEvent id="Event_0czwigf">
|
2023-01-06 15:42:28 +00:00
|
|
|
<bpmn:incoming>Flow_1czdb2l</bpmn:incoming>
|
2023-01-06 15:32:26 +00:00
|
|
|
</bpmn:endEvent>
|
2023-01-06 15:42:28 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_1uysjt8" sourceRef="Activity_143xt5w" targetRef="Activity_0c0m5el" />
|
2023-01-06 15:35:49 +00:00
|
|
|
<bpmn:callActivity id="Activity_143xt5w" name="Call Simple Price - DAI vs USD,ETH" calledElement="coin_gecko-simple_price">
|
2023-01-06 15:38:05 +00:00
|
|
|
<bpmn:extensionElements>
|
2023-01-06 15:40:30 +00:00
|
|
|
<spiffworkflow:preScript>simple_price_ids="DAI"
|
|
|
|
simple_price_vs_currencies="USD,ETH"</spiffworkflow:preScript>
|
2023-01-06 15:38:05 +00:00
|
|
|
</bpmn:extensionElements>
|
2023-01-06 15:32:26 +00:00
|
|
|
<bpmn:incoming>Flow_1xs7inf</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1uysjt8</bpmn:outgoing>
|
|
|
|
</bpmn:callActivity>
|
2023-01-06 15:42:28 +00:00
|
|
|
<bpmn:sequenceFlow id="Flow_1czdb2l" sourceRef="Activity_0c0m5el" targetRef="Event_0czwigf" />
|
|
|
|
<bpmn:scriptTask id="Activity_0c0m5el" name="Test response has expected keys">
|
|
|
|
<bpmn:incoming>Flow_1uysjt8</bpmn:incoming>
|
|
|
|
<bpmn:outgoing>Flow_1czdb2l</bpmn:outgoing>
|
2023-01-06 15:43:40 +00:00
|
|
|
<bpmn:script># check keys to get an assertion of they are not present
|
|
|
|
coin_gecko_simple_price["dai"]["eth"]
|
2023-01-06 15:44:35 +00:00
|
|
|
coin_gecko_simple_price["dai"]["usd"]</bpmn:script>
|
2023-01-06 15:42:28 +00:00
|
|
|
</bpmn:scriptTask>
|
2023-01-06 15:32:26 +00:00
|
|
|
</bpmn:process>
|
|
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_m8cr3m1">
|
|
|
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
|
|
|
<dc:Bounds x="179" y="159" width="36" height="36" />
|
|
|
|
</bpmndi:BPMNShape>
|
2023-01-06 15:44:16 +00:00
|
|
|
<bpmndi:BPMNShape id="Event_0czwigf_di" bpmnElement="Event_0czwigf">
|
|
|
|
<dc:Bounds x="562" y="159" width="36" height="36" />
|
|
|
|
</bpmndi:BPMNShape>
|
2023-01-06 15:32:26 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_1r4hnsu_di" bpmnElement="Activity_143xt5w">
|
|
|
|
<dc:Bounds x="270" y="137" width="100" height="80" />
|
|
|
|
<bpmndi:BPMNLabel />
|
|
|
|
</bpmndi:BPMNShape>
|
2023-01-06 15:42:28 +00:00
|
|
|
<bpmndi:BPMNShape id="Activity_0gcurkp_di" bpmnElement="Activity_0c0m5el">
|
|
|
|
<dc:Bounds x="410" y="137" width="100" height="80" />
|
|
|
|
</bpmndi:BPMNShape>
|
2023-01-06 15:32:26 +00:00
|
|
|
<bpmndi:BPMNEdge id="Flow_1xs7inf_di" bpmnElement="Flow_1xs7inf">
|
|
|
|
<di:waypoint x="215" y="177" />
|
|
|
|
<di:waypoint x="270" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1uysjt8_di" bpmnElement="Flow_1uysjt8">
|
|
|
|
<di:waypoint x="370" y="177" />
|
2023-01-06 15:42:28 +00:00
|
|
|
<di:waypoint x="410" y="177" />
|
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
<bpmndi:BPMNEdge id="Flow_1czdb2l_di" bpmnElement="Flow_1czdb2l">
|
|
|
|
<di:waypoint x="510" y="177" />
|
|
|
|
<di:waypoint x="562" y="177" />
|
2023-01-06 15:32:26 +00:00
|
|
|
</bpmndi:BPMNEdge>
|
|
|
|
</bpmndi:BPMNPlane>
|
|
|
|
</bpmndi:BPMNDiagram>
|
|
|
|
</bpmn:definitions>
|