zm330 | 2771d9c | 2020-02-26 18:37:32 +0800 | [diff] [blame^] | 1 | <?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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_0884541" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.4.1"> |
| 3 | <bpmn:process id="DoDeallocateNSSIV1" name="DoDeallocateNSSIV1" isExecutable="true"> |
| 4 | <bpmn:startEvent id="StartEvent_1" name="start"> |
| 5 | <bpmn:outgoing>SequenceFlow_05jfhy6</bpmn:outgoing> |
| 6 | </bpmn:startEvent> |
| 7 | <bpmn:sequenceFlow id="SequenceFlow_05jfhy6" sourceRef="StartEvent_1" targetRef="Task_1vste9s" /> |
| 8 | <bpmn:scriptTask id="Task_1m8upus" name="Prepare Decompose Service" scriptFormat="groovy"> |
| 9 | <bpmn:incoming>SequenceFlow_0eug5nv</bpmn:incoming> |
| 10 | <bpmn:outgoing>SequenceFlow_0wlyy5i</bpmn:outgoing> |
| 11 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 12 | def dnssi= new DoDeallocateNSSI() |
| 13 | dnssi.prepareDecomposeService(execution)</bpmn:script> |
| 14 | </bpmn:scriptTask> |
| 15 | <bpmn:sequenceFlow id="SequenceFlow_0wlyy5i" sourceRef="Task_1m8upus" targetRef="Task_1giechg" /> |
| 16 | <bpmn:callActivity id="Task_1giechg" name="Call Decompose Service" calledElement="DecomposeService"> |
| 17 | <bpmn:extensionElements> |
| 18 | <camunda:in source="msoRequestId" target="msoRequestId" /> |
| 19 | <camunda:in source="serviceInstanceId" target="serviceInstanceId" /> |
| 20 | <camunda:in source="serviceModelInfo" target="serviceModelInfo" /> |
| 21 | <camunda:out source="serviceDecomposition" target="serviceDecomposition" /> |
| 22 | <camunda:out source="serviceDecompositionString" target="serviceDecompositionString" /> |
| 23 | </bpmn:extensionElements> |
| 24 | <bpmn:incoming>SequenceFlow_0wlyy5i</bpmn:incoming> |
| 25 | <bpmn:outgoing>SequenceFlow_1e451y9</bpmn:outgoing> |
| 26 | </bpmn:callActivity> |
| 27 | <bpmn:sequenceFlow id="SequenceFlow_1e451y9" sourceRef="Task_1giechg" targetRef="Task_15ut397" /> |
| 28 | <bpmn:scriptTask id="Task_15ut397" name="processDecomposition" scriptFormat="groovy"> |
| 29 | <bpmn:incoming>SequenceFlow_1e451y9</bpmn:incoming> |
| 30 | <bpmn:outgoing>SequenceFlow_1e7o57n</bpmn:outgoing> |
| 31 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 32 | def dnssi= new DoDeallocateNSSI() |
| 33 | dnssi.processDecomposition(execution)</bpmn:script> |
| 34 | </bpmn:scriptTask> |
| 35 | <bpmn:sequenceFlow id="SequenceFlow_1e7o57n" sourceRef="Task_15ut397" targetRef="Task_0vi4ijv" /> |
| 36 | <bpmn:scriptTask id="Task_0vi4ijv" name="Send deallocate request to NSSMF" scriptFormat="groovy"> |
| 37 | <bpmn:incoming>SequenceFlow_1e7o57n</bpmn:incoming> |
| 38 | <bpmn:outgoing>SequenceFlow_03b0822</bpmn:outgoing> |
| 39 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 40 | def dnssi= new DoDeallocateNSSI() |
| 41 | dnssi.sendRequestToNSSMF(execution)</bpmn:script> |
| 42 | </bpmn:scriptTask> |
| 43 | <bpmn:sequenceFlow id="SequenceFlow_03b0822" sourceRef="Task_0vi4ijv" targetRef="Task_0kl6lcq" /> |
| 44 | <bpmn:scriptTask id="Task_0kl6lcq" name="Query Job Status" scriptFormat="groovy"> |
| 45 | <bpmn:incoming>SequenceFlow_03b0822</bpmn:incoming> |
| 46 | <bpmn:incoming>SequenceFlow_1anlirk</bpmn:incoming> |
| 47 | <bpmn:outgoing>SequenceFlow_1jj0p5q</bpmn:outgoing> |
| 48 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 49 | def dnssi= new DoDeallocateNSSI() |
| 50 | dnssi.getJobStatus(execution)</bpmn:script> |
| 51 | </bpmn:scriptTask> |
| 52 | <bpmn:sequenceFlow id="SequenceFlow_1jj0p5q" sourceRef="Task_0kl6lcq" targetRef="ExclusiveGateway_0nhfsui" /> |
| 53 | <bpmn:exclusiveGateway id="ExclusiveGateway_0nhfsui" name="Is deallocate finish?" default="SequenceFlow_0sfh52b"> |
| 54 | <bpmn:incoming>SequenceFlow_1jj0p5q</bpmn:incoming> |
| 55 | <bpmn:outgoing>SequenceFlow_0xq380j</bpmn:outgoing> |
| 56 | <bpmn:outgoing>SequenceFlow_0sfh52b</bpmn:outgoing> |
| 57 | </bpmn:exclusiveGateway> |
| 58 | <bpmn:scriptTask id="Task_13vaezk" name="Delete Slice Profile From AAI" scriptFormat="groovy"> |
| 59 | <bpmn:incoming>SequenceFlow_0xq380j</bpmn:incoming> |
| 60 | <bpmn:outgoing>SequenceFlow_1ii5002</bpmn:outgoing> |
| 61 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 62 | def dnssi= new DoDeallocateNSSI() |
| 63 | dnssi.delSliceProfileFromAAI(execution)</bpmn:script> |
| 64 | </bpmn:scriptTask> |
| 65 | <bpmn:endEvent id="EndEvent_1f579t4" name="end"> |
| 66 | <bpmn:incoming>SequenceFlow_1ii5002</bpmn:incoming> |
| 67 | </bpmn:endEvent> |
| 68 | <bpmn:sequenceFlow id="SequenceFlow_1ii5002" sourceRef="Task_13vaezk" targetRef="EndEvent_1f579t4" /> |
| 69 | <bpmn:sequenceFlow id="SequenceFlow_0xq380j" name="yes" sourceRef="ExclusiveGateway_0nhfsui" targetRef="Task_13vaezk"> |
| 70 | <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isNSSIDeAllocated" ) == true)}</bpmn:conditionExpression> |
| 71 | </bpmn:sequenceFlow> |
| 72 | <bpmn:sequenceFlow id="SequenceFlow_0eug5nv" sourceRef="Task_1vste9s" targetRef="Task_1m8upus" /> |
| 73 | <bpmn:scriptTask id="Task_1vste9s" name="PreProcess Incoming Request" scriptFormat="groovy"> |
| 74 | <bpmn:incoming>SequenceFlow_05jfhy6</bpmn:incoming> |
| 75 | <bpmn:outgoing>SequenceFlow_0eug5nv</bpmn:outgoing> |
| 76 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 77 | def dnssi= new DoDeallocateNSSI() |
| 78 | dnssi.preProcessRequest(execution)</bpmn:script> |
| 79 | </bpmn:scriptTask> |
| 80 | <bpmn:sequenceFlow id="SequenceFlow_1anlirk" sourceRef="Task_0fxuz4i" targetRef="Task_0kl6lcq" /> |
| 81 | <bpmn:scriptTask id="Task_0fxuz4i" name="TimeDelay" scriptFormat="groovy"> |
| 82 | <bpmn:incoming>SequenceFlow_1ugva41</bpmn:incoming> |
| 83 | <bpmn:incoming>SequenceFlow_1u66wjs</bpmn:incoming> |
| 84 | <bpmn:outgoing>SequenceFlow_1anlirk</bpmn:outgoing> |
| 85 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 86 | def dnssi= new DoDeallocateNSSI() |
| 87 | dnssi.timeDelay(execution)</bpmn:script> |
| 88 | </bpmn:scriptTask> |
| 89 | <bpmn:serviceTask id="Task_0amt4hu" name="Update Service Operation Status"> |
| 90 | <bpmn:extensionElements> |
| 91 | <camunda:connector> |
| 92 | <camunda:inputOutput> |
| 93 | <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter> |
| 94 | <camunda:inputParameter name="headers"> |
| 95 | <camunda:map> |
| 96 | <camunda:entry key="content-type">application/soap+xml</camunda:entry> |
| 97 | <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry> |
| 98 | </camunda:map> |
| 99 | </camunda:inputParameter> |
| 100 | <camunda:inputParameter name="payload">${updateOperationStatus}</camunda:inputParameter> |
| 101 | <camunda:inputParameter name="method">POST</camunda:inputParameter> |
| 102 | <camunda:outputParameter name="DeNSSI_dbResponseCode">${statusCode}</camunda:outputParameter> |
| 103 | <camunda:outputParameter name="DeNSSI_dbResponse">${response}</camunda:outputParameter> |
| 104 | </camunda:inputOutput> |
| 105 | <camunda:connectorId>http-connector</camunda:connectorId> |
| 106 | </camunda:connector> |
| 107 | </bpmn:extensionElements> |
| 108 | <bpmn:incoming>SequenceFlow_04vg0c2</bpmn:incoming> |
| 109 | <bpmn:outgoing>SequenceFlow_1ugva41</bpmn:outgoing> |
| 110 | </bpmn:serviceTask> |
| 111 | <bpmn:exclusiveGateway id="ExclusiveGateway_0y0w592" name="IsNeedUpdateDB?" default="SequenceFlow_1u66wjs"> |
| 112 | <bpmn:incoming>SequenceFlow_0sfh52b</bpmn:incoming> |
| 113 | <bpmn:outgoing>SequenceFlow_0r95j9m</bpmn:outgoing> |
| 114 | <bpmn:outgoing>SequenceFlow_1u66wjs</bpmn:outgoing> |
| 115 | </bpmn:exclusiveGateway> |
| 116 | <bpmn:sequenceFlow id="SequenceFlow_0sfh52b" sourceRef="ExclusiveGateway_0nhfsui" targetRef="ExclusiveGateway_0y0w592" /> |
| 117 | <bpmn:sequenceFlow id="SequenceFlow_0r95j9m" sourceRef="ExclusiveGateway_0y0w592" targetRef="Task_1renmzf"> |
| 118 | <bpmn:documentation>#{(execution.getVariable("isNeedUpdateDB" ) == true)}</bpmn:documentation> |
| 119 | <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isNeedUpdateDB" ) == true)}</bpmn:conditionExpression> |
| 120 | </bpmn:sequenceFlow> |
| 121 | <bpmn:sequenceFlow id="SequenceFlow_04vg0c2" sourceRef="Task_1renmzf" targetRef="Task_0amt4hu" /> |
| 122 | <bpmn:sequenceFlow id="SequenceFlow_1ugva41" sourceRef="Task_0amt4hu" targetRef="Task_0fxuz4i" /> |
| 123 | <bpmn:sequenceFlow id="SequenceFlow_1u66wjs" sourceRef="ExclusiveGateway_0y0w592" targetRef="Task_0fxuz4i" /> |
| 124 | <bpmn:scriptTask id="Task_1renmzf" name="Prepare Update Operation Status" scriptFormat="groovy"> |
| 125 | <bpmn:incoming>SequenceFlow_0r95j9m</bpmn:incoming> |
| 126 | <bpmn:outgoing>SequenceFlow_04vg0c2</bpmn:outgoing> |
| 127 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 128 | def dnssi= new DoDeallocateNSSI() |
| 129 | dnssi.handleJobStatus(execution)</bpmn:script> |
| 130 | </bpmn:scriptTask> |
| 131 | </bpmn:process> |
| 132 | <bpmndi:BPMNDiagram id="BPMNDiagram_1"> |
| 133 | <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoDeallocateNSSIV1"> |
| 134 | <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"> |
| 135 | <dc:Bounds x="192" y="112" width="36" height="36" /> |
| 136 | <bpmndi:BPMNLabel> |
| 137 | <dc:Bounds x="199" y="155" width="22" height="14" /> |
| 138 | </bpmndi:BPMNLabel> |
| 139 | </bpmndi:BPMNShape> |
| 140 | <bpmndi:BPMNEdge id="SequenceFlow_05jfhy6_di" bpmnElement="SequenceFlow_05jfhy6"> |
| 141 | <di:waypoint x="228" y="130" /> |
| 142 | <di:waypoint x="310" y="130" /> |
| 143 | </bpmndi:BPMNEdge> |
| 144 | <bpmndi:BPMNShape id="ScriptTask_159g5ey_di" bpmnElement="Task_1m8upus"> |
| 145 | <dc:Bounds x="490" y="90" width="100" height="80" /> |
| 146 | </bpmndi:BPMNShape> |
| 147 | <bpmndi:BPMNEdge id="SequenceFlow_0wlyy5i_di" bpmnElement="SequenceFlow_0wlyy5i"> |
| 148 | <di:waypoint x="590" y="130" /> |
| 149 | <di:waypoint x="660" y="130" /> |
| 150 | </bpmndi:BPMNEdge> |
| 151 | <bpmndi:BPMNShape id="CallActivity_1ep4ama_di" bpmnElement="Task_1giechg"> |
| 152 | <dc:Bounds x="660" y="90" width="100" height="80" /> |
| 153 | </bpmndi:BPMNShape> |
| 154 | <bpmndi:BPMNEdge id="SequenceFlow_1e451y9_di" bpmnElement="SequenceFlow_1e451y9"> |
| 155 | <di:waypoint x="760" y="130" /> |
| 156 | <di:waypoint x="820" y="130" /> |
| 157 | </bpmndi:BPMNEdge> |
| 158 | <bpmndi:BPMNShape id="ScriptTask_1yt5s46_di" bpmnElement="Task_15ut397"> |
| 159 | <dc:Bounds x="820" y="90" width="100" height="80" /> |
| 160 | </bpmndi:BPMNShape> |
| 161 | <bpmndi:BPMNEdge id="SequenceFlow_1e7o57n_di" bpmnElement="SequenceFlow_1e7o57n"> |
| 162 | <di:waypoint x="920" y="130" /> |
| 163 | <di:waypoint x="970" y="130" /> |
| 164 | </bpmndi:BPMNEdge> |
| 165 | <bpmndi:BPMNShape id="ScriptTask_16dxpvz_di" bpmnElement="Task_0vi4ijv"> |
| 166 | <dc:Bounds x="970" y="90" width="100" height="80" /> |
| 167 | </bpmndi:BPMNShape> |
| 168 | <bpmndi:BPMNEdge id="SequenceFlow_03b0822_di" bpmnElement="SequenceFlow_03b0822"> |
| 169 | <di:waypoint x="1070" y="130" /> |
| 170 | <di:waypoint x="1120" y="130" /> |
| 171 | </bpmndi:BPMNEdge> |
| 172 | <bpmndi:BPMNShape id="ScriptTask_0arl3j9_di" bpmnElement="Task_0kl6lcq"> |
| 173 | <dc:Bounds x="1120" y="90" width="100" height="80" /> |
| 174 | </bpmndi:BPMNShape> |
| 175 | <bpmndi:BPMNEdge id="SequenceFlow_1jj0p5q_di" bpmnElement="SequenceFlow_1jj0p5q"> |
| 176 | <di:waypoint x="1220" y="130" /> |
| 177 | <di:waypoint x="1505" y="130" /> |
| 178 | </bpmndi:BPMNEdge> |
| 179 | <bpmndi:BPMNShape id="ExclusiveGateway_0nhfsui_di" bpmnElement="ExclusiveGateway_0nhfsui" isMarkerVisible="true"> |
| 180 | <dc:Bounds x="1505" y="105" width="50" height="50" /> |
| 181 | <bpmndi:BPMNLabel> |
| 182 | <dc:Bounds x="1501" y="75" width="63" height="27" /> |
| 183 | </bpmndi:BPMNLabel> |
| 184 | </bpmndi:BPMNShape> |
| 185 | <bpmndi:BPMNShape id="ScriptTask_1rfdrw3_di" bpmnElement="Task_13vaezk"> |
| 186 | <dc:Bounds x="1690" y="90" width="100" height="80" /> |
| 187 | </bpmndi:BPMNShape> |
| 188 | <bpmndi:BPMNShape id="EndEvent_1f579t4_di" bpmnElement="EndEvent_1f579t4"> |
| 189 | <dc:Bounds x="1862" y="112" width="36" height="36" /> |
| 190 | <bpmndi:BPMNLabel> |
| 191 | <dc:Bounds x="1871" y="155" width="19" height="14" /> |
| 192 | </bpmndi:BPMNLabel> |
| 193 | </bpmndi:BPMNShape> |
| 194 | <bpmndi:BPMNEdge id="SequenceFlow_1ii5002_di" bpmnElement="SequenceFlow_1ii5002"> |
| 195 | <di:waypoint x="1790" y="130" /> |
| 196 | <di:waypoint x="1862" y="130" /> |
| 197 | </bpmndi:BPMNEdge> |
| 198 | <bpmndi:BPMNEdge id="SequenceFlow_0xq380j_di" bpmnElement="SequenceFlow_0xq380j"> |
| 199 | <di:waypoint x="1555" y="130" /> |
| 200 | <di:waypoint x="1690" y="130" /> |
| 201 | <bpmndi:BPMNLabel> |
| 202 | <dc:Bounds x="1614" y="112" width="17" height="14" /> |
| 203 | </bpmndi:BPMNLabel> |
| 204 | </bpmndi:BPMNEdge> |
| 205 | <bpmndi:BPMNEdge id="SequenceFlow_0eug5nv_di" bpmnElement="SequenceFlow_0eug5nv"> |
| 206 | <di:waypoint x="410" y="130" /> |
| 207 | <di:waypoint x="490" y="130" /> |
| 208 | </bpmndi:BPMNEdge> |
| 209 | <bpmndi:BPMNShape id="ScriptTask_1dytya8_di" bpmnElement="Task_1vste9s"> |
| 210 | <dc:Bounds x="310" y="90" width="100" height="80" /> |
| 211 | </bpmndi:BPMNShape> |
| 212 | <bpmndi:BPMNEdge id="SequenceFlow_1anlirk_di" bpmnElement="SequenceFlow_1anlirk"> |
| 213 | <di:waypoint x="1170" y="190" /> |
| 214 | <di:waypoint x="1170" y="170" /> |
| 215 | </bpmndi:BPMNEdge> |
| 216 | <bpmndi:BPMNShape id="ScriptTask_0a4zalz_di" bpmnElement="Task_0fxuz4i"> |
| 217 | <dc:Bounds x="1120" y="190" width="100" height="80" /> |
| 218 | </bpmndi:BPMNShape> |
| 219 | <bpmndi:BPMNShape id="ServiceTask_0vegqix_di" bpmnElement="Task_0amt4hu"> |
| 220 | <dc:Bounds x="1280" y="300" width="100" height="80" /> |
| 221 | </bpmndi:BPMNShape> |
| 222 | <bpmndi:BPMNShape id="ExclusiveGateway_0y0w592_di" bpmnElement="ExclusiveGateway_0y0w592" isMarkerVisible="true"> |
| 223 | <dc:Bounds x="1505" y="205" width="50" height="50" /> |
| 224 | <bpmndi:BPMNLabel> |
| 225 | <dc:Bounds x="1567" y="216" width="86" height="27" /> |
| 226 | </bpmndi:BPMNLabel> |
| 227 | </bpmndi:BPMNShape> |
| 228 | <bpmndi:BPMNEdge id="SequenceFlow_0sfh52b_di" bpmnElement="SequenceFlow_0sfh52b"> |
| 229 | <di:waypoint x="1530" y="155" /> |
| 230 | <di:waypoint x="1530" y="205" /> |
| 231 | </bpmndi:BPMNEdge> |
| 232 | <bpmndi:BPMNEdge id="SequenceFlow_0r95j9m_di" bpmnElement="SequenceFlow_0r95j9m"> |
| 233 | <di:waypoint x="1530" y="255" /> |
| 234 | <di:waypoint x="1530" y="300" /> |
| 235 | </bpmndi:BPMNEdge> |
| 236 | <bpmndi:BPMNEdge id="SequenceFlow_04vg0c2_di" bpmnElement="SequenceFlow_04vg0c2"> |
| 237 | <di:waypoint x="1480" y="340" /> |
| 238 | <di:waypoint x="1380" y="340" /> |
| 239 | </bpmndi:BPMNEdge> |
| 240 | <bpmndi:BPMNEdge id="SequenceFlow_1ugva41_di" bpmnElement="SequenceFlow_1ugva41"> |
| 241 | <di:waypoint x="1280" y="340" /> |
| 242 | <di:waypoint x="1170" y="340" /> |
| 243 | <di:waypoint x="1170" y="270" /> |
| 244 | </bpmndi:BPMNEdge> |
| 245 | <bpmndi:BPMNEdge id="SequenceFlow_1u66wjs_di" bpmnElement="SequenceFlow_1u66wjs"> |
| 246 | <di:waypoint x="1505" y="230" /> |
| 247 | <di:waypoint x="1220" y="230" /> |
| 248 | </bpmndi:BPMNEdge> |
| 249 | <bpmndi:BPMNShape id="ScriptTask_10pw6ot_di" bpmnElement="Task_1renmzf"> |
| 250 | <dc:Bounds x="1480" y="300" width="100" height="80" /> |
| 251 | </bpmndi:BPMNShape> |
| 252 | </bpmndi:BPMNPlane> |
| 253 | </bpmndi:BPMNDiagram> |
| 254 | </bpmn:definitions> |