blob: 279dd2a4ad46a8ebcdbd9d8d909a863ce667367d [file] [log] [blame]
hetengjiaodfee1bc2020-02-26 17:22:45 +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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_0lf96js" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.4.1">
3 <bpmn:process id="CheckServiceProcessStatus" name="CheckServiceProcessStatus" isExecutable="true">
4 <bpmn:startEvent id="StartEvent_1" name="start check processing status">
5 <bpmn:outgoing>SequenceFlow_1g4lx01</bpmn:outgoing>
6 </bpmn:startEvent>
7 <bpmn:scriptTask id="ScriptTask_1mlave2" name="Prepare service Check Process status Req&#10;" scriptFormat="groovy">
8 <bpmn:incoming>SequenceFlow_0e29y0f</bpmn:incoming>
9 <bpmn:incoming>SequenceFlow_1n5nl53</bpmn:incoming>
10 <bpmn:outgoing>SequenceFlow_0r1x26k</bpmn:outgoing>
11 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
12def csi= new CheckServiceProcessStatus()
13csi.preCheckServiceStatusReq(execution)</bpmn:script>
14 </bpmn:scriptTask>
15 <bpmn:serviceTask id="ServiceTask_0w5fmqn" name="get service Operation Status&#10;">
16 <bpmn:extensionElements>
17 <camunda:connector>
18 <camunda:inputOutput>
19 <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter>
20 <camunda:inputParameter name="headers">
21 <camunda:map>
22 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
23 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
24 </camunda:map>
25 </camunda:inputParameter>
26 <camunda:inputParameter name="payload">${getOperationStatus}</camunda:inputParameter>
27 <camunda:inputParameter name="method">POST</camunda:inputParameter>
28 <camunda:outputParameter name="dbResponseCode">${statusCode}</camunda:outputParameter>
29 <camunda:outputParameter name="dbResponse">${response}</camunda:outputParameter>
30 </camunda:inputOutput>
31 <camunda:connectorId>http-connector</camunda:connectorId>
32 </camunda:connector>
33 </bpmn:extensionElements>
34 <bpmn:incoming>SequenceFlow_0r1x26k</bpmn:incoming>
35 <bpmn:outgoing>SequenceFlow_009p8v1</bpmn:outgoing>
36 </bpmn:serviceTask>
37 <bpmn:scriptTask id="ScriptTask_0z37e29" name="handler service status Response&#10;" scriptFormat="groovy">
38 <bpmn:incoming>SequenceFlow_009p8v1</bpmn:incoming>
39 <bpmn:outgoing>SequenceFlow_0yws8fh</bpmn:outgoing>
40 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
41def csi= new CheckServiceProcessStatus()
42csi.handlerServiceStatusResp(execution)</bpmn:script>
43 </bpmn:scriptTask>
44 <bpmn:exclusiveGateway id="ExclusiveGateway_0gk7p3l" name="Is service process finished?&#10;" default="SequenceFlow_01o92x6">
45 <bpmn:incoming>SequenceFlow_0yws8fh</bpmn:incoming>
46 <bpmn:outgoing>SequenceFlow_18jgpa8</bpmn:outgoing>
47 <bpmn:outgoing>SequenceFlow_01o92x6</bpmn:outgoing>
48 </bpmn:exclusiveGateway>
49 <bpmn:scriptTask id="ScriptTask_1ao91w3" name="Time Delay" scriptFormat="groovy">
50 <bpmn:incoming>SequenceFlow_1pxnqsp</bpmn:incoming>
51 <bpmn:incoming>SequenceFlow_1ktr440</bpmn:incoming>
52 <bpmn:outgoing>SequenceFlow_0e29y0f</bpmn:outgoing>
53 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
54def csi= new CheckServiceProcessStatus()
55csi.timeWaitDelay(execution)</bpmn:script>
56 </bpmn:scriptTask>
57 <bpmn:sequenceFlow id="SequenceFlow_0e29y0f" sourceRef="ScriptTask_1ao91w3" targetRef="ScriptTask_1mlave2" />
58 <bpmn:sequenceFlow id="SequenceFlow_0r1x26k" sourceRef="ScriptTask_1mlave2" targetRef="ServiceTask_0w5fmqn" />
59 <bpmn:sequenceFlow id="SequenceFlow_009p8v1" sourceRef="ServiceTask_0w5fmqn" targetRef="ScriptTask_0z37e29" />
60 <bpmn:sequenceFlow id="SequenceFlow_0yws8fh" sourceRef="ScriptTask_0z37e29" targetRef="ExclusiveGateway_0gk7p3l" />
61 <bpmn:sequenceFlow id="SequenceFlow_18jgpa8" name="yes" sourceRef="ExclusiveGateway_0gk7p3l" targetRef="EndEvent_0a3w3xw">
62 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isAllFinished") == "true") || (execution.getVariable("isTimeOut") == "YES")}</bpmn:conditionExpression>
63 </bpmn:sequenceFlow>
64 <bpmn:endEvent id="EndEvent_0a3w3xw">
65 <bpmn:incoming>SequenceFlow_18jgpa8</bpmn:incoming>
66 </bpmn:endEvent>
67 <bpmn:sequenceFlow id="SequenceFlow_1g4lx01" sourceRef="StartEvent_1" targetRef="Task_1djj44q" />
68 <bpmn:sequenceFlow id="SequenceFlow_1n5nl53" sourceRef="Task_1djj44q" targetRef="ScriptTask_1mlave2" />
69 <bpmn:scriptTask id="Task_1djj44q" name="Prepare request" scriptFormat="groovy">
70 <bpmn:incoming>SequenceFlow_1g4lx01</bpmn:incoming>
71 <bpmn:outgoing>SequenceFlow_1n5nl53</bpmn:outgoing>
72 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
73def csi= new CheckServiceProcessStatus()
74csi.preProcessRequest(execution)</bpmn:script>
75 </bpmn:scriptTask>
76 <bpmn:scriptTask id="ScriptTask_0oic8cv" name="prepare Update Service Operation progress" scriptFormat="groovy">
77 <bpmn:incoming>SequenceFlow_0591ght</bpmn:incoming>
78 <bpmn:outgoing>SequenceFlow_1q8dls4</bpmn:outgoing>
79 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
80def csi= new CheckServiceProcessStatus()
81csi.preUpdateOperationProgress(execution)</bpmn:script>
82 </bpmn:scriptTask>
83 <bpmn:sequenceFlow id="SequenceFlow_1q8dls4" sourceRef="ScriptTask_0oic8cv" targetRef="ServiceTask_1b60rre" />
84 <bpmn:serviceTask id="ServiceTask_1b60rre" name="Update Service Operation Status">
85 <bpmn:extensionElements>
86 <camunda:connector>
87 <camunda:inputOutput>
88 <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter>
89 <camunda:inputParameter name="headers">
90 <camunda:map>
91 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
92 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
93 </camunda:map>
94 </camunda:inputParameter>
95 <camunda:inputParameter name="payload">${updateOperationStatus}</camunda:inputParameter>
96 <camunda:inputParameter name="method">POST</camunda:inputParameter>
97 <camunda:outputParameter name="CSMF_dbResponseCode">${statusCode}</camunda:outputParameter>
98 <camunda:outputParameter name="CSMF_dbResponse">${response}</camunda:outputParameter>
99 </camunda:inputOutput>
100 <camunda:connectorId>http-connector</camunda:connectorId>
101 </camunda:connector>
102 </bpmn:extensionElements>
103 <bpmn:incoming>SequenceFlow_1q8dls4</bpmn:incoming>
104 <bpmn:outgoing>SequenceFlow_1pxnqsp</bpmn:outgoing>
105 </bpmn:serviceTask>
106 <bpmn:sequenceFlow id="SequenceFlow_1pxnqsp" sourceRef="ServiceTask_1b60rre" targetRef="ScriptTask_1ao91w3" />
107 <bpmn:sequenceFlow id="SequenceFlow_01o92x6" sourceRef="ExclusiveGateway_0gk7p3l" targetRef="ExclusiveGateway_1pdfjh4" />
108 <bpmn:exclusiveGateway id="ExclusiveGateway_1pdfjh4" name="isNeedUpdateDB?&#10;" default="SequenceFlow_1ktr440">
109 <bpmn:incoming>SequenceFlow_01o92x6</bpmn:incoming>
110 <bpmn:outgoing>SequenceFlow_0591ght</bpmn:outgoing>
111 <bpmn:outgoing>SequenceFlow_1ktr440</bpmn:outgoing>
112 </bpmn:exclusiveGateway>
113 <bpmn:sequenceFlow id="SequenceFlow_0591ght" name="yes" sourceRef="ExclusiveGateway_1pdfjh4" targetRef="ScriptTask_0oic8cv">
114 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isNeedUpdateDB" ) == true)}</bpmn:conditionExpression>
115 </bpmn:sequenceFlow>
116 <bpmn:sequenceFlow id="SequenceFlow_1ktr440" name="no" sourceRef="ExclusiveGateway_1pdfjh4" targetRef="ScriptTask_1ao91w3" />
117 </bpmn:process>
118 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
119 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CheckServiceProcessStatus">
120 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
121 <dc:Bounds x="179" y="159" width="36" height="36" />
122 <bpmndi:BPMNLabel>
123 <dc:Bounds x="156" y="202" width="87" height="27" />
124 </bpmndi:BPMNLabel>
125 </bpmndi:BPMNShape>
126 <bpmndi:BPMNShape id="ScriptTask_1mlave2_di" bpmnElement="ScriptTask_1mlave2">
127 <dc:Bounds x="460" y="137" width="100" height="80" />
128 </bpmndi:BPMNShape>
129 <bpmndi:BPMNShape id="ServiceTask_0w5fmqn_di" bpmnElement="ServiceTask_0w5fmqn">
130 <dc:Bounds x="610" y="137" width="100" height="80" />
131 </bpmndi:BPMNShape>
132 <bpmndi:BPMNShape id="ScriptTask_0z37e29_di" bpmnElement="ScriptTask_0z37e29">
133 <dc:Bounds x="770" y="137" width="100" height="80" />
134 </bpmndi:BPMNShape>
135 <bpmndi:BPMNShape id="ExclusiveGateway_0gk7p3l_di" bpmnElement="ExclusiveGateway_0gk7p3l" isMarkerVisible="true">
136 <dc:Bounds x="955" y="152" width="50" height="50" />
137 <bpmndi:BPMNLabel>
138 <dc:Bounds x="944" y="122" width="89" height="40" />
139 </bpmndi:BPMNLabel>
140 </bpmndi:BPMNShape>
141 <bpmndi:BPMNShape id="ScriptTask_1ao91w3_di" bpmnElement="ScriptTask_1ao91w3">
142 <dc:Bounds x="460" y="290" width="100" height="80" />
143 </bpmndi:BPMNShape>
144 <bpmndi:BPMNEdge id="SequenceFlow_0e29y0f_di" bpmnElement="SequenceFlow_0e29y0f">
145 <di:waypoint x="510" y="290" />
146 <di:waypoint x="510" y="217" />
147 </bpmndi:BPMNEdge>
148 <bpmndi:BPMNEdge id="SequenceFlow_0r1x26k_di" bpmnElement="SequenceFlow_0r1x26k">
149 <di:waypoint x="560" y="177" />
150 <di:waypoint x="610" y="177" />
151 </bpmndi:BPMNEdge>
152 <bpmndi:BPMNEdge id="SequenceFlow_009p8v1_di" bpmnElement="SequenceFlow_009p8v1">
153 <di:waypoint x="710" y="177" />
154 <di:waypoint x="770" y="177" />
155 </bpmndi:BPMNEdge>
156 <bpmndi:BPMNEdge id="SequenceFlow_0yws8fh_di" bpmnElement="SequenceFlow_0yws8fh">
157 <di:waypoint x="870" y="177" />
158 <di:waypoint x="955" y="177" />
159 </bpmndi:BPMNEdge>
160 <bpmndi:BPMNEdge id="SequenceFlow_18jgpa8_di" bpmnElement="SequenceFlow_18jgpa8">
161 <di:waypoint x="1005" y="177" />
162 <di:waypoint x="1132" y="177" />
163 <bpmndi:BPMNLabel>
164 <dc:Bounds x="1024" y="159" width="17" height="14" />
165 </bpmndi:BPMNLabel>
166 </bpmndi:BPMNEdge>
167 <bpmndi:BPMNShape id="EndEvent_0a3w3xw_di" bpmnElement="EndEvent_0a3w3xw">
168 <dc:Bounds x="1132" y="159" width="36" height="36" />
169 </bpmndi:BPMNShape>
170 <bpmndi:BPMNEdge id="SequenceFlow_1g4lx01_di" bpmnElement="SequenceFlow_1g4lx01">
171 <di:waypoint x="215" y="177" />
172 <di:waypoint x="270" y="177" />
173 </bpmndi:BPMNEdge>
174 <bpmndi:BPMNEdge id="SequenceFlow_1n5nl53_di" bpmnElement="SequenceFlow_1n5nl53">
175 <di:waypoint x="370" y="177" />
176 <di:waypoint x="460" y="177" />
177 </bpmndi:BPMNEdge>
178 <bpmndi:BPMNShape id="ScriptTask_1di7x3h_di" bpmnElement="Task_1djj44q">
179 <dc:Bounds x="270" y="137" width="100" height="80" />
180 </bpmndi:BPMNShape>
181 <bpmndi:BPMNShape id="ScriptTask_0oic8cv_di" bpmnElement="ScriptTask_0oic8cv">
182 <dc:Bounds x="930" y="430" width="100" height="80" />
183 </bpmndi:BPMNShape>
184 <bpmndi:BPMNEdge id="SequenceFlow_1q8dls4_di" bpmnElement="SequenceFlow_1q8dls4">
185 <di:waypoint x="930" y="470" />
186 <di:waypoint x="780" y="470" />
187 </bpmndi:BPMNEdge>
188 <bpmndi:BPMNShape id="ServiceTask_1b60rre_di" bpmnElement="ServiceTask_1b60rre">
189 <dc:Bounds x="680" y="430" width="100" height="80" />
190 </bpmndi:BPMNShape>
191 <bpmndi:BPMNEdge id="SequenceFlow_1pxnqsp_di" bpmnElement="SequenceFlow_1pxnqsp">
192 <di:waypoint x="680" y="470" />
193 <di:waypoint x="510" y="470" />
194 <di:waypoint x="510" y="370" />
195 </bpmndi:BPMNEdge>
196 <bpmndi:BPMNEdge id="SequenceFlow_01o92x6_di" bpmnElement="SequenceFlow_01o92x6">
197 <di:waypoint x="980" y="202" />
198 <di:waypoint x="980" y="305" />
199 <bpmndi:BPMNLabel>
200 <dc:Bounds x="964" y="243" width="13" height="14" />
201 </bpmndi:BPMNLabel>
202 </bpmndi:BPMNEdge>
203 <bpmndi:BPMNShape id="ExclusiveGateway_1pdfjh4_di" bpmnElement="ExclusiveGateway_1pdfjh4" isMarkerVisible="true">
204 <dc:Bounds x="955" y="305" width="50" height="50" />
205 <bpmndi:BPMNLabel>
206 <dc:Bounds x="1007" y="310" width="86" height="40" />
207 </bpmndi:BPMNLabel>
208 </bpmndi:BPMNShape>
209 <bpmndi:BPMNEdge id="SequenceFlow_0591ght_di" bpmnElement="SequenceFlow_0591ght">
210 <di:waypoint x="980" y="355" />
211 <di:waypoint x="980" y="430" />
212 <bpmndi:BPMNLabel>
213 <dc:Bounds x="987" y="390" width="17" height="14" />
214 </bpmndi:BPMNLabel>
215 </bpmndi:BPMNEdge>
216 <bpmndi:BPMNEdge id="SequenceFlow_1ktr440_di" bpmnElement="SequenceFlow_1ktr440">
217 <di:waypoint x="955" y="330" />
218 <di:waypoint x="560" y="330" />
219 <bpmndi:BPMNLabel>
220 <dc:Bounds x="751" y="312" width="13" height="14" />
221 </bpmndi:BPMNLabel>
222 </bpmndi:BPMNEdge>
223 </bpmndi:BPMNPlane>
224 </bpmndi:BPMNDiagram>
225</bpmn:definitions>