blob: 09a14be26b8dab927e9180126e78fa1f24a8aaf9 [file] [log] [blame]
Harry Huang5b3f0402020-03-05 16:34:35 +08001<?xml version="1.0" encoding="UTF-8"?>
2<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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1gbzu9i" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.1.2">
3 <bpmn:process id="HandleOrchestrationTask" name="HandleOrchestrationTask" isExecutable="true">
4 <bpmn:startEvent id="StartEvent_1" name="Start">
5 <bpmn:outgoing>SequenceFlow_0lbtmuu</bpmn:outgoing>
6 </bpmn:startEvent>
7 <bpmn:scriptTask id="ScriptTask_0r0a9ga" name="Preprocess Request" scriptFormat="groovy">
8 <bpmn:incoming>SequenceFlow_0lbtmuu</bpmn:incoming>
9 <bpmn:outgoing>SequenceFlow_0uzjpd6</bpmn:outgoing>
10 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
11def hot = new HandleOrchestrationTask()
12hot.preProcessRequest(execution)</bpmn:script>
13 </bpmn:scriptTask>
14 <bpmn:serviceTask id="ServiceTask_1iat8g5" name="Send Orchestration Task Request">
15 <bpmn:extensionElements>
16 <camunda:connector>
17 <camunda:inputOutput>
18 <camunda:inputParameter name="url">${url}</camunda:inputParameter>
19 <camunda:inputParameter name="headers">
20 <camunda:script scriptFormat="groovy">execution.getVariable("headerMap")</camunda:script>
21 </camunda:inputParameter>
22 <camunda:inputParameter name="payload">${payload}</camunda:inputParameter>
23 <camunda:inputParameter name="method">${method}</camunda:inputParameter>
24 <camunda:outputParameter name="statusCode">${statusCode}</camunda:outputParameter>
25 <camunda:outputParameter name="response">${response}</camunda:outputParameter>
26 </camunda:inputOutput>
27 <camunda:connectorId>http-connector</camunda:connectorId>
28 </camunda:connector>
29 </bpmn:extensionElements>
30 <bpmn:incoming>SequenceFlow_0uzjpd6</bpmn:incoming>
31 <bpmn:outgoing>SequenceFlow_06rrzml</bpmn:outgoing>
32 </bpmn:serviceTask>
33 <bpmn:scriptTask id="ScriptTask_119zm52" name="Post Process" scriptFormat="groovy">
34 <bpmn:incoming>SequenceFlow_06rrzml</bpmn:incoming>
35 <bpmn:outgoing>SequenceFlow_1qthzdo</bpmn:outgoing>
36 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
37def hot = new HandleOrchestrationTask()
38hot.postProcess(execution)</bpmn:script>
39 </bpmn:scriptTask>
40 <bpmn:sequenceFlow id="SequenceFlow_0uzjpd6" sourceRef="ScriptTask_0r0a9ga" targetRef="ServiceTask_1iat8g5" />
41 <bpmn:sequenceFlow id="SequenceFlow_06rrzml" sourceRef="ServiceTask_1iat8g5" targetRef="ScriptTask_119zm52" />
42 <bpmn:sequenceFlow id="SequenceFlow_0lbtmuu" sourceRef="StartEvent_1" targetRef="ScriptTask_0r0a9ga" />
43 <bpmn:endEvent id="EndEvent_18t5h42" name="End">
44 <bpmn:incoming>SequenceFlow_1qthzdo</bpmn:incoming>
45 </bpmn:endEvent>
46 <bpmn:sequenceFlow id="SequenceFlow_1qthzdo" sourceRef="ScriptTask_119zm52" targetRef="EndEvent_18t5h42" />
47 </bpmn:process>
48 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
49 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="HandleOrchestrationTask">
50 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
51 <dc:Bounds x="179" y="103" width="36" height="36" />
52 <bpmndi:BPMNLabel>
53 <dc:Bounds x="185" y="146" width="25" height="14" />
54 </bpmndi:BPMNLabel>
55 </bpmndi:BPMNShape>
56 <bpmndi:BPMNShape id="ScriptTask_0r0a9ga_di" bpmnElement="ScriptTask_0r0a9ga">
57 <dc:Bounds x="284" y="81" width="100" height="80" />
58 </bpmndi:BPMNShape>
59 <bpmndi:BPMNShape id="ServiceTask_1iat8g5_di" bpmnElement="ServiceTask_1iat8g5">
60 <dc:Bounds x="466" y="81" width="100" height="80" />
61 </bpmndi:BPMNShape>
62 <bpmndi:BPMNShape id="ScriptTask_119zm52_di" bpmnElement="ScriptTask_119zm52">
63 <dc:Bounds x="644" y="81" width="100" height="80" />
64 </bpmndi:BPMNShape>
65 <bpmndi:BPMNEdge id="SequenceFlow_0uzjpd6_di" bpmnElement="SequenceFlow_0uzjpd6">
66 <di:waypoint x="384" y="121" />
67 <di:waypoint x="466" y="121" />
68 </bpmndi:BPMNEdge>
69 <bpmndi:BPMNEdge id="SequenceFlow_06rrzml_di" bpmnElement="SequenceFlow_06rrzml">
70 <di:waypoint x="566" y="121" />
71 <di:waypoint x="644" y="121" />
72 </bpmndi:BPMNEdge>
73 <bpmndi:BPMNEdge id="SequenceFlow_0lbtmuu_di" bpmnElement="SequenceFlow_0lbtmuu">
74 <di:waypoint x="215" y="121" />
75 <di:waypoint x="284" y="121" />
76 </bpmndi:BPMNEdge>
77 <bpmndi:BPMNShape id="EndEvent_18t5h42_di" bpmnElement="EndEvent_18t5h42">
78 <dc:Bounds x="820" y="103" width="36" height="36" />
79 <bpmndi:BPMNLabel>
80 <dc:Bounds x="828" y="146" width="20" height="14" />
81 </bpmndi:BPMNLabel>
82 </bpmndi:BPMNShape>
83 <bpmndi:BPMNEdge id="SequenceFlow_1qthzdo_di" bpmnElement="SequenceFlow_1qthzdo">
84 <di:waypoint x="744" y="121" />
85 <di:waypoint x="820" y="121" />
86 </bpmndi:BPMNEdge>
87 </bpmndi:BPMNPlane>
88 </bpmndi:BPMNDiagram>
89</bpmn:definitions>
90