blob: 8cafea75f563fe2e959b4fc7a056340d91f7e12c [file] [log] [blame]
deepikasatheesh30c6bac2020-09-08 05:51:24 -07001<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_0le3oyh" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.7.2">
3 <bpmn:process id="QueryJobStatus" name="QueryJobStatus" isExecutable="true">
4 <bpmn:startEvent id="StartEvent_1" name="Start">
5 <bpmn:outgoing>Flow_16nxw2f</bpmn:outgoing>
6 </bpmn:startEvent>
7 <bpmn:scriptTask id="Activity_0cd23fy" name="Preprocess Request" scriptFormat="groovy">
8 <bpmn:incoming>Flow_16nxw2f</bpmn:incoming>
9 <bpmn:outgoing>Flow_0qhl0m8</bpmn:outgoing>
10 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
11def qjs= new QueryJobStatus()
12qjs.preProcessRequest(execution)</bpmn:script>
13 </bpmn:scriptTask>
14 <bpmn:serviceTask id="Activity_1aivult" name="Query Job Status">
15 <bpmn:extensionElements>
16 <camunda:connector>
17 <camunda:inputOutput>
18 <camunda:inputParameter name="url">${NSSMF_AdapterEndpoint}</camunda:inputParameter>
19 <camunda:inputParameter name="headers">
20 <camunda:map>
21 <camunda:entry key="content-type">application/json</camunda:entry>
22 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
23 </camunda:map>
24 </camunda:inputParameter>
25 <camunda:inputParameter name="payload">${NSSMF_AdapterRequest}</camunda:inputParameter>
26 <camunda:inputParameter name="method">POST</camunda:inputParameter>
27 <camunda:outputParameter name="NSSMF_ResponseCode">${statusCode}</camunda:outputParameter>
28 <camunda:outputParameter name="NSSMF_Response">${response}</camunda:outputParameter>
29 </camunda:inputOutput>
30 <camunda:connectorId>http-connector</camunda:connectorId>
31 </camunda:connector>
32 </bpmn:extensionElements>
33 <bpmn:incoming>Flow_0qhl0m8</bpmn:incoming>
deepikasatheesh7c5c5bd2021-02-09 11:33:27 +000034 <bpmn:incoming>Flow_0akup2t</bpmn:incoming>
deepikasatheesh30c6bac2020-09-08 05:51:24 -070035 <bpmn:outgoing>Flow_18di8yy</bpmn:outgoing>
36 </bpmn:serviceTask>
37 <bpmn:sequenceFlow id="Flow_16nxw2f" sourceRef="StartEvent_1" targetRef="Activity_0cd23fy" />
38 <bpmn:sequenceFlow id="Flow_0qhl0m8" sourceRef="Activity_0cd23fy" targetRef="Activity_1aivult" />
39 <bpmn:scriptTask id="Activity_16hyg49" name="Check Job Status" scriptFormat="groovy">
40 <bpmn:incoming>Flow_18di8yy</bpmn:incoming>
41 <bpmn:outgoing>Flow_0ct1kfw</bpmn:outgoing>
42 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
43def qjs= new QueryJobStatus()
44qjs.checkJobStatus(execution)</bpmn:script>
45 </bpmn:scriptTask>
46 <bpmn:exclusiveGateway id="Gateway_1ruy0j9" name="Is Completed?">
47 <bpmn:incoming>Flow_0ct1kfw</bpmn:incoming>
48 <bpmn:outgoing>Flow_1x9fug6</bpmn:outgoing>
49 <bpmn:outgoing>Flow_1qqqckj</bpmn:outgoing>
50 </bpmn:exclusiveGateway>
51 <bpmn:sequenceFlow id="Flow_18di8yy" sourceRef="Activity_1aivult" targetRef="Activity_16hyg49" />
52 <bpmn:sequenceFlow id="Flow_0ct1kfw" sourceRef="Activity_16hyg49" targetRef="Gateway_1ruy0j9" />
53 <bpmn:scriptTask id="Activity_0rtwx97" name="Update JobStatus details" scriptFormat="groovy">
54 <bpmn:incoming>Flow_1x9fug6</bpmn:incoming>
55 <bpmn:outgoing>Flow_0qqltc9</bpmn:outgoing>
56 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
57def qjs= new QueryJobStatus()
58qjs.updateJobStatusDetails(execution)</bpmn:script>
59 </bpmn:scriptTask>
60 <bpmn:sequenceFlow id="Flow_1x9fug6" name="yes" sourceRef="Gateway_1ruy0j9" targetRef="Activity_0rtwx97">
61 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("JobStatusCompleted") == "TRUE"}</bpmn:conditionExpression>
62 </bpmn:sequenceFlow>
63 <bpmn:endEvent id="Event_0p00z2s" name="End">
64 <bpmn:incoming>Flow_0qqltc9</bpmn:incoming>
65 </bpmn:endEvent>
66 <bpmn:sequenceFlow id="Flow_0qqltc9" sourceRef="Activity_0rtwx97" targetRef="Event_0p00z2s" />
deepikasatheesh7c5c5bd2021-02-09 11:33:27 +000067 <bpmn:sequenceFlow id="Flow_1qqqckj" name="No" sourceRef="Gateway_1ruy0j9" targetRef="Event_0dp6trf">
deepikasatheesh30c6bac2020-09-08 05:51:24 -070068 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("JobStatusCompleted") == "FALSE"}</bpmn:conditionExpression>
69 </bpmn:sequenceFlow>
deepikasatheesh7c5c5bd2021-02-09 11:33:27 +000070 <bpmn:intermediateCatchEvent id="Event_0dp6trf" name="TimeDelay">
71 <bpmn:incoming>Flow_1qqqckj</bpmn:incoming>
72 <bpmn:outgoing>Flow_0akup2t</bpmn:outgoing>
73 <bpmn:timerEventDefinition id="TimerEventDefinition_0ncw0aa">
74 <bpmn:timeDuration xsi:type="bpmn:tFormalExpression">PT10S</bpmn:timeDuration>
75 </bpmn:timerEventDefinition>
76 </bpmn:intermediateCatchEvent>
77 <bpmn:sequenceFlow id="Flow_0akup2t" sourceRef="Event_0dp6trf" targetRef="Activity_1aivult" />
deepikasatheesh30c6bac2020-09-08 05:51:24 -070078 </bpmn:process>
79 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
80 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="QueryJobStatus">
81 <bpmndi:BPMNEdge id="Flow_1qqqckj_di" bpmnElement="Flow_1qqqckj">
82 <di:waypoint x="880" y="152" />
deepikasatheesh7c5c5bd2021-02-09 11:33:27 +000083 <di:waypoint x="880" y="222" />
deepikasatheesh30c6bac2020-09-08 05:51:24 -070084 <bpmndi:BPMNLabel>
85 <dc:Bounds x="892" y="163" width="15" height="14" />
86 </bpmndi:BPMNLabel>
87 </bpmndi:BPMNEdge>
88 <bpmndi:BPMNEdge id="Flow_0qqltc9_di" bpmnElement="Flow_0qqltc9">
89 <di:waypoint x="1100" y="127" />
90 <di:waypoint x="1152" y="127" />
91 </bpmndi:BPMNEdge>
92 <bpmndi:BPMNEdge id="Flow_1x9fug6_di" bpmnElement="Flow_1x9fug6">
93 <di:waypoint x="905" y="127" />
94 <di:waypoint x="1000" y="127" />
95 <bpmndi:BPMNLabel>
96 <dc:Bounds x="944" y="109" width="17" height="14" />
97 </bpmndi:BPMNLabel>
98 </bpmndi:BPMNEdge>
99 <bpmndi:BPMNEdge id="Flow_0ct1kfw_di" bpmnElement="Flow_0ct1kfw">
100 <di:waypoint x="780" y="127" />
101 <di:waypoint x="855" y="127" />
102 </bpmndi:BPMNEdge>
103 <bpmndi:BPMNEdge id="Flow_18di8yy_di" bpmnElement="Flow_18di8yy">
104 <di:waypoint x="600" y="127" />
105 <di:waypoint x="680" y="127" />
106 </bpmndi:BPMNEdge>
107 <bpmndi:BPMNEdge id="Flow_0qhl0m8_di" bpmnElement="Flow_0qhl0m8">
108 <di:waypoint x="410" y="127" />
109 <di:waypoint x="500" y="127" />
110 </bpmndi:BPMNEdge>
111 <bpmndi:BPMNEdge id="Flow_16nxw2f_di" bpmnElement="Flow_16nxw2f">
112 <di:waypoint x="215" y="127" />
113 <di:waypoint x="310" y="127" />
114 </bpmndi:BPMNEdge>
deepikasatheesh7c5c5bd2021-02-09 11:33:27 +0000115 <bpmndi:BPMNEdge id="Flow_0akup2t_di" bpmnElement="Flow_0akup2t">
116 <di:waypoint x="862" y="240" />
117 <di:waypoint x="570" y="240" />
118 <di:waypoint x="570" y="167" />
119 </bpmndi:BPMNEdge>
deepikasatheesh30c6bac2020-09-08 05:51:24 -0700120 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
121 <dc:Bounds x="179" y="109" width="36" height="36" />
122 <bpmndi:BPMNLabel>
123 <dc:Bounds x="186" y="152" width="25" height="14" />
124 </bpmndi:BPMNLabel>
125 </bpmndi:BPMNShape>
126 <bpmndi:BPMNShape id="Activity_0cd23fy_di" bpmnElement="Activity_0cd23fy">
127 <dc:Bounds x="310" y="87" width="100" height="80" />
128 </bpmndi:BPMNShape>
129 <bpmndi:BPMNShape id="Activity_1aivult_di" bpmnElement="Activity_1aivult">
130 <dc:Bounds x="500" y="87" width="100" height="80" />
131 </bpmndi:BPMNShape>
132 <bpmndi:BPMNShape id="Activity_16hyg49_di" bpmnElement="Activity_16hyg49">
133 <dc:Bounds x="680" y="87" width="100" height="80" />
134 </bpmndi:BPMNShape>
135 <bpmndi:BPMNShape id="Gateway_1ruy0j9_di" bpmnElement="Gateway_1ruy0j9" isMarkerVisible="true">
136 <dc:Bounds x="855" y="102" width="50" height="50" />
137 <bpmndi:BPMNLabel>
138 <dc:Bounds x="844" y="83" width="72" height="14" />
139 </bpmndi:BPMNLabel>
140 </bpmndi:BPMNShape>
141 <bpmndi:BPMNShape id="Activity_0rtwx97_di" bpmnElement="Activity_0rtwx97">
142 <dc:Bounds x="1000" y="87" width="100" height="80" />
143 </bpmndi:BPMNShape>
144 <bpmndi:BPMNShape id="Event_0p00z2s_di" bpmnElement="Event_0p00z2s">
145 <dc:Bounds x="1152" y="109" width="36" height="36" />
146 <bpmndi:BPMNLabel>
147 <dc:Bounds x="1160" y="152" width="20" height="14" />
148 </bpmndi:BPMNLabel>
149 </bpmndi:BPMNShape>
deepikasatheesh7c5c5bd2021-02-09 11:33:27 +0000150 <bpmndi:BPMNShape id="Event_0wfgoh7_di" bpmnElement="Event_0dp6trf">
151 <dc:Bounds x="862" y="222" width="36" height="36" />
152 <bpmndi:BPMNLabel>
153 <dc:Bounds x="896" y="252" width="53" height="14" />
154 </bpmndi:BPMNLabel>
155 </bpmndi:BPMNShape>
deepikasatheesh30c6bac2020-09-08 05:51:24 -0700156 </bpmndi:BPMNPlane>
157 </bpmndi:BPMNDiagram>
158</bpmn:definitions>
deepikasatheesh7c5c5bd2021-02-09 11:33:27 +0000159