blob: b2b6c031f9677d212c2039de224b16d35f7299c4 [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>
34 <bpmn:incoming>Flow_1qqqckj</bpmn:incoming>
35 <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" />
67 <bpmn:sequenceFlow id="Flow_1qqqckj" name="No" sourceRef="Gateway_1ruy0j9" targetRef="Activity_1aivult">
68 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{execution.getVariable("JobStatusCompleted") == "FALSE"}</bpmn:conditionExpression>
69 </bpmn:sequenceFlow>
70 </bpmn:process>
71 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
72 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="QueryJobStatus">
73 <bpmndi:BPMNEdge id="Flow_1qqqckj_di" bpmnElement="Flow_1qqqckj">
74 <di:waypoint x="880" y="152" />
75 <di:waypoint x="880" y="280" />
76 <di:waypoint x="550" y="280" />
77 <di:waypoint x="550" y="167" />
78 <bpmndi:BPMNLabel>
79 <dc:Bounds x="892" y="163" width="15" height="14" />
80 </bpmndi:BPMNLabel>
81 </bpmndi:BPMNEdge>
82 <bpmndi:BPMNEdge id="Flow_0qqltc9_di" bpmnElement="Flow_0qqltc9">
83 <di:waypoint x="1100" y="127" />
84 <di:waypoint x="1152" y="127" />
85 </bpmndi:BPMNEdge>
86 <bpmndi:BPMNEdge id="Flow_1x9fug6_di" bpmnElement="Flow_1x9fug6">
87 <di:waypoint x="905" y="127" />
88 <di:waypoint x="1000" y="127" />
89 <bpmndi:BPMNLabel>
90 <dc:Bounds x="944" y="109" width="17" height="14" />
91 </bpmndi:BPMNLabel>
92 </bpmndi:BPMNEdge>
93 <bpmndi:BPMNEdge id="Flow_0ct1kfw_di" bpmnElement="Flow_0ct1kfw">
94 <di:waypoint x="780" y="127" />
95 <di:waypoint x="855" y="127" />
96 </bpmndi:BPMNEdge>
97 <bpmndi:BPMNEdge id="Flow_18di8yy_di" bpmnElement="Flow_18di8yy">
98 <di:waypoint x="600" y="127" />
99 <di:waypoint x="680" y="127" />
100 </bpmndi:BPMNEdge>
101 <bpmndi:BPMNEdge id="Flow_0qhl0m8_di" bpmnElement="Flow_0qhl0m8">
102 <di:waypoint x="410" y="127" />
103 <di:waypoint x="500" y="127" />
104 </bpmndi:BPMNEdge>
105 <bpmndi:BPMNEdge id="Flow_16nxw2f_di" bpmnElement="Flow_16nxw2f">
106 <di:waypoint x="215" y="127" />
107 <di:waypoint x="310" y="127" />
108 </bpmndi:BPMNEdge>
109 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
110 <dc:Bounds x="179" y="109" width="36" height="36" />
111 <bpmndi:BPMNLabel>
112 <dc:Bounds x="186" y="152" width="25" height="14" />
113 </bpmndi:BPMNLabel>
114 </bpmndi:BPMNShape>
115 <bpmndi:BPMNShape id="Activity_0cd23fy_di" bpmnElement="Activity_0cd23fy">
116 <dc:Bounds x="310" y="87" width="100" height="80" />
117 </bpmndi:BPMNShape>
118 <bpmndi:BPMNShape id="Activity_1aivult_di" bpmnElement="Activity_1aivult">
119 <dc:Bounds x="500" y="87" width="100" height="80" />
120 </bpmndi:BPMNShape>
121 <bpmndi:BPMNShape id="Activity_16hyg49_di" bpmnElement="Activity_16hyg49">
122 <dc:Bounds x="680" y="87" width="100" height="80" />
123 </bpmndi:BPMNShape>
124 <bpmndi:BPMNShape id="Gateway_1ruy0j9_di" bpmnElement="Gateway_1ruy0j9" isMarkerVisible="true">
125 <dc:Bounds x="855" y="102" width="50" height="50" />
126 <bpmndi:BPMNLabel>
127 <dc:Bounds x="844" y="83" width="72" height="14" />
128 </bpmndi:BPMNLabel>
129 </bpmndi:BPMNShape>
130 <bpmndi:BPMNShape id="Activity_0rtwx97_di" bpmnElement="Activity_0rtwx97">
131 <dc:Bounds x="1000" y="87" width="100" height="80" />
132 </bpmndi:BPMNShape>
133 <bpmndi:BPMNShape id="Event_0p00z2s_di" bpmnElement="Event_0p00z2s">
134 <dc:Bounds x="1152" y="109" width="36" height="36" />
135 <bpmndi:BPMNLabel>
136 <dc:Bounds x="1160" y="152" width="20" height="14" />
137 </bpmndi:BPMNLabel>
138 </bpmndi:BPMNShape>
139 </bpmndi:BPMNPlane>
140 </bpmndi:BPMNDiagram>
141</bpmn:definitions>