81 lines
4.4 KiB
XML
81 lines
4.4 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="Process_9yvdg79" isExecutable="true">
|
|
<bpmn:startEvent id="Event_1jnl31i">
|
|
<bpmn:outgoing>Flow_1i31vf2</bpmn:outgoing>
|
|
</bpmn:startEvent>
|
|
<bpmn:sequenceFlow id="Flow_1i31vf2" sourceRef="Event_1jnl31i" targetRef="Activity_192eh42" />
|
|
<bpmn:sequenceFlow id="Flow_0h27wmt" sourceRef="Activity_192eh42" targetRef="Activity_1pf8q9r" />
|
|
<bpmn:sequenceFlow id="Flow_0kv40ki" sourceRef="Activity_1pf8q9r" targetRef="Activity_08vvsw6" />
|
|
<bpmn:endEvent id="Event_1ylb9z0">
|
|
<bpmn:incoming>Flow_0p6895l</bpmn:incoming>
|
|
</bpmn:endEvent>
|
|
<bpmn:sequenceFlow id="Flow_0p6895l" sourceRef="Activity_08vvsw6" targetRef="Event_1ylb9z0" />
|
|
<bpmn:serviceTask id="Activity_192eh42" name="Get data from api">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:serviceTaskOperator id="http/GetRequest" resultVariable="response">
|
|
<spiffworkflow:parameters>
|
|
<spiffworkflow:parameter id="basic_auth_password" type="str" />
|
|
<spiffworkflow:parameter id="basic_auth_username" type="str" />
|
|
<spiffworkflow:parameter id="headers" type="any" />
|
|
<spiffworkflow:parameter id="params" type="any" />
|
|
<spiffworkflow:parameter id="url" type="str" value=""https://api.giphy.com/v1/gifs/yKxo7c9Q6pZoUzAfPu?api_key=8a0fhtNsII4OlNqJGyFMNvVC1UIhC6Jd&rating=g"" />
|
|
</spiffworkflow:parameters>
|
|
</spiffworkflow:serviceTaskOperator>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_1i31vf2</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0h27wmt</bpmn:outgoing>
|
|
</bpmn:serviceTask>
|
|
<bpmn:scriptTask id="Activity_1pf8q9r" name="Extract what we need">
|
|
<bpmn:incoming>Flow_0h27wmt</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0kv40ki</bpmn:outgoing>
|
|
<bpmn:script>image_url = response.data.images.original.url</bpmn:script>
|
|
</bpmn:scriptTask>
|
|
<bpmn:manualTask id="Activity_08vvsw6" name="Display the results">
|
|
<bpmn:extensionElements>
|
|
<spiffworkflow:instructionsForEndUser># We found an image for you!
|
|
|
|
![image]({{image_url}})</spiffworkflow:instructionsForEndUser>
|
|
</bpmn:extensionElements>
|
|
<bpmn:incoming>Flow_0kv40ki</bpmn:incoming>
|
|
<bpmn:outgoing>Flow_0p6895l</bpmn:outgoing>
|
|
</bpmn:manualTask>
|
|
</bpmn:process>
|
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_9yvdg79">
|
|
<bpmndi:BPMNShape id="Event_1jnl31i_di" bpmnElement="Event_1jnl31i">
|
|
<dc:Bounds x="352" y="-598" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Event_1ylb9z0_di" bpmnElement="Event_1ylb9z0">
|
|
<dc:Bounds x="922" y="-598" width="36" height="36" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0ifolnn_di" bpmnElement="Activity_192eh42">
|
|
<dc:Bounds x="440" y="-620" width="100" height="80" />
|
|
<bpmndi:BPMNLabel />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_0pisvku_di" bpmnElement="Activity_1pf8q9r">
|
|
<dc:Bounds x="600" y="-620" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNShape id="Activity_095m7k7_di" bpmnElement="Activity_08vvsw6">
|
|
<dc:Bounds x="760" y="-620" width="100" height="80" />
|
|
</bpmndi:BPMNShape>
|
|
<bpmndi:BPMNEdge id="Flow_1i31vf2_di" bpmnElement="Flow_1i31vf2">
|
|
<di:waypoint x="388" y="-580" />
|
|
<di:waypoint x="440" y="-580" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0h27wmt_di" bpmnElement="Flow_0h27wmt">
|
|
<di:waypoint x="540" y="-580" />
|
|
<di:waypoint x="600" y="-580" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0kv40ki_di" bpmnElement="Flow_0kv40ki">
|
|
<di:waypoint x="700" y="-580" />
|
|
<di:waypoint x="760" y="-580" />
|
|
</bpmndi:BPMNEdge>
|
|
<bpmndi:BPMNEdge id="Flow_0p6895l_di" bpmnElement="Flow_0p6895l">
|
|
<di:waypoint x="860" y="-580" />
|
|
<di:waypoint x="922" y="-580" />
|
|
</bpmndi:BPMNEdge>
|
|
</bpmndi:BPMNPlane>
|
|
</bpmndi:BPMNDiagram>
|
|
</bpmn:definitions>
|