zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
deepikasatheesh | a5e1bac | 2020-09-10 03:24:13 -0700 | [diff] [blame] | 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_1p1suc9" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.7.2"> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 3 | <bpmn:process id="DoDeleteSliceServiceV1" name="DoDeleteSliceServiceV1" isExecutable="true"> |
| 4 | <bpmn:startEvent id="StartEvent_1" name="start"> |
| 5 | <bpmn:outgoing>SequenceFlow_0ep5het</bpmn:outgoing> |
| 6 | </bpmn:startEvent> |
| 7 | <bpmn:sequenceFlow id="SequenceFlow_0ep5het" sourceRef="StartEvent_1" targetRef="Task_0etki1p" /> |
| 8 | <bpmn:sequenceFlow id="SequenceFlow_1qkgvvu" sourceRef="Task_1ujnqtj" targetRef="Task_1fqiyb4" /> |
| 9 | <bpmn:sequenceFlow id="SequenceFlow_1rgfzzy" sourceRef="Task_1fqiyb4" targetRef="Task_1u755sr" /> |
| 10 | <bpmn:scriptTask id="Task_1ujnqtj" name="Query Allotted Resource From AAI" scriptFormat="groovy"> |
| 11 | <bpmn:incoming>SequenceFlow_029u1wr</bpmn:incoming> |
| 12 | <bpmn:outgoing>SequenceFlow_1qkgvvu</bpmn:outgoing> |
| 13 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 14 | def ddss= new DoDeleteSliceService() |
| 15 | ddss.getAllottedResFromAAI(execution)</bpmn:script> |
| 16 | </bpmn:scriptTask> |
| 17 | <bpmn:scriptTask id="Task_1fqiyb4" name="Query NSI From AAI" scriptFormat="groovy"> |
| 18 | <bpmn:incoming>SequenceFlow_1qkgvvu</bpmn:incoming> |
| 19 | <bpmn:outgoing>SequenceFlow_1rgfzzy</bpmn:outgoing> |
| 20 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 21 | def ddss= new DoDeleteSliceService() |
| 22 | ddss.getNSIFromAAI(execution)</bpmn:script> |
| 23 | </bpmn:scriptTask> |
| 24 | <bpmn:scriptTask id="Task_1u755sr" name="Query NSSI List From AAI" scriptFormat="groovy"> |
| 25 | <bpmn:incoming>SequenceFlow_1rgfzzy</bpmn:incoming> |
deepikasatheesh | a5e1bac | 2020-09-10 03:24:13 -0700 | [diff] [blame] | 26 | <bpmn:outgoing>SequenceFlow_1aa2ek0</bpmn:outgoing> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 27 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 28 | def ddss= new DoDeleteSliceService() |
| 29 | ddss.getNSSIListFromAAI(execution)</bpmn:script> |
| 30 | </bpmn:scriptTask> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 31 | <bpmn:exclusiveGateway id="ExclusiveGateway_1ogbunu" name="Is all NSSI finished?"> |
| 32 | <bpmn:incoming>SequenceFlow_15z9iio</bpmn:incoming> |
| 33 | <bpmn:outgoing>SequenceFlow_1c4fjbv</bpmn:outgoing> |
| 34 | <bpmn:outgoing>SequenceFlow_0926ghe</bpmn:outgoing> |
| 35 | </bpmn:exclusiveGateway> |
| 36 | <bpmn:endEvent id="EndEvent_0jaitqv" name="End"> |
| 37 | <bpmn:incoming>SequenceFlow_1c4fjbv</bpmn:incoming> |
| 38 | </bpmn:endEvent> |
| 39 | <bpmn:sequenceFlow id="SequenceFlow_1c4fjbv" name="yes" sourceRef="ExclusiveGateway_1ogbunu" targetRef="EndEvent_0jaitqv"> |
| 40 | <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isAllNSSIFinished" ) == true)}</bpmn:conditionExpression> |
| 41 | </bpmn:sequenceFlow> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 42 | <bpmn:sequenceFlow id="SequenceFlow_0c58sw3" sourceRef="Task_1rc7mcw" targetRef="ScriptTask_159855t" /> |
| 43 | <bpmn:sequenceFlow id="SequenceFlow_0926ghe" name="no" sourceRef="ExclusiveGateway_1ogbunu" targetRef="Task_1iomfas"> |
| 44 | <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isAllNSSIFinished" ) == false)}</bpmn:conditionExpression> |
| 45 | </bpmn:sequenceFlow> |
| 46 | <bpmn:scriptTask id="Task_0etki1p" name="PreProcess Incoming Request" scriptFormat="groovy"> |
| 47 | <bpmn:incoming>SequenceFlow_0ep5het</bpmn:incoming> |
| 48 | <bpmn:outgoing>SequenceFlow_0npmman</bpmn:outgoing> |
| 49 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 50 | def ddss= new DoDeleteSliceService() |
| 51 | ddss.preProcessRequest(execution)</bpmn:script> |
| 52 | </bpmn:scriptTask> |
| 53 | <bpmn:sequenceFlow id="SequenceFlow_0npmman" sourceRef="Task_0etki1p" targetRef="Task_13k9usx" /> |
| 54 | <bpmn:scriptTask id="Task_1iomfas" name="Get Current NSSI" scriptFormat="groovy"> |
| 55 | <bpmn:incoming>SequenceFlow_0926ghe</bpmn:incoming> |
deepikasatheesh | a5e1bac | 2020-09-10 03:24:13 -0700 | [diff] [blame] | 56 | <bpmn:incoming>SequenceFlow_1252rbf</bpmn:incoming> |
| 57 | <bpmn:outgoing>SequenceFlow_17tvomo</bpmn:outgoing> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 58 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 59 | def ddss= new DoDeleteSliceService() |
| 60 | ddss.getCurrentNSSI(execution)</bpmn:script> |
| 61 | </bpmn:scriptTask> |
| 62 | <bpmn:scriptTask id="ScriptTask_159855t" name="Parse Next NSSI" scriptFormat="groovy"> |
| 63 | <bpmn:incoming>SequenceFlow_0c58sw3</bpmn:incoming> |
| 64 | <bpmn:outgoing>SequenceFlow_15z9iio</bpmn:outgoing> |
| 65 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 66 | def ddss= new DoDeleteSliceService() |
| 67 | ddss.parseNextNSSI(execution)</bpmn:script> |
| 68 | </bpmn:scriptTask> |
| 69 | <bpmn:sequenceFlow id="SequenceFlow_15z9iio" sourceRef="ScriptTask_159855t" targetRef="ExclusiveGateway_1ogbunu" /> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 70 | <bpmn:sequenceFlow id="SequenceFlow_029u1wr" sourceRef="Task_13k9usx" targetRef="Task_1ujnqtj" /> |
| 71 | <bpmn:scriptTask id="Task_13k9usx" name="Query E2ESlice Serive From AAI" scriptFormat="groovy"> |
| 72 | <bpmn:incoming>SequenceFlow_0npmman</bpmn:incoming> |
| 73 | <bpmn:outgoing>SequenceFlow_029u1wr</bpmn:outgoing> |
| 74 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 75 | def ddss= new DoDeleteSliceService() |
| 76 | ddss.queryE2ESliceSeriveFromAAI(execution)</bpmn:script> |
| 77 | </bpmn:scriptTask> |
| 78 | <bpmn:callActivity id="Task_1rc7mcw" name="Do Deallocate NSSI " calledElement="DoDeallocateNSSIV1"> |
| 79 | <bpmn:extensionElements> |
| 80 | <camunda:in source="currentNSSI" target="currentNSSI" /> |
| 81 | <camunda:in source="msoRequestId" target="msoRequestId" /> |
| 82 | <camunda:in source="serviceModelInfo" target="serviceModelInfo" /> |
| 83 | <camunda:in source="serviceInstanceId" target="serviceInstanceId" /> |
| 84 | <camunda:out source="WorkflowException" target="WorkflowException" /> |
| 85 | </bpmn:extensionElements> |
deepikasatheesh | a5e1bac | 2020-09-10 03:24:13 -0700 | [diff] [blame] | 86 | <bpmn:incoming>SequenceFlow_17tvomo</bpmn:incoming> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 87 | <bpmn:outgoing>SequenceFlow_0c58sw3</bpmn:outgoing> |
| 88 | </bpmn:callActivity> |
deepikasatheesh | a5e1bac | 2020-09-10 03:24:13 -0700 | [diff] [blame] | 89 | <bpmn:scriptTask id="Task_1iuls9p" name="Terminate NSI Query" scriptFormat="groovy"> |
| 90 | <bpmn:incoming>SequenceFlow_1aa2ek0</bpmn:incoming> |
| 91 | <bpmn:outgoing>SequenceFlow_1252rbf</bpmn:outgoing> |
| 92 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 93 | def dss= new DeleteSliceService() |
| 94 | dss.terminateNSIQuery(execution)</bpmn:script> |
| 95 | </bpmn:scriptTask> |
| 96 | <bpmn:sequenceFlow id="SequenceFlow_17tvomo" sourceRef="Task_1iomfas" targetRef="Task_1rc7mcw" /> |
| 97 | <bpmn:sequenceFlow id="SequenceFlow_1aa2ek0" sourceRef="Task_1u755sr" targetRef="Task_1iuls9p" /> |
| 98 | <bpmn:sequenceFlow id="SequenceFlow_1252rbf" sourceRef="Task_1iuls9p" targetRef="Task_1iomfas" /> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 99 | </bpmn:process> |
| 100 | <bpmndi:BPMNDiagram id="BPMNDiagram_1"> |
| 101 | <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoDeleteSliceServiceV1"> |
deepikasatheesh | a5e1bac | 2020-09-10 03:24:13 -0700 | [diff] [blame] | 102 | <bpmndi:BPMNEdge id="Flow_1252rbf_di" bpmnElement="SequenceFlow_1252rbf"> |
| 103 | <di:waypoint x="1150" y="140" /> |
| 104 | <di:waypoint x="1200" y="140" /> |
| 105 | </bpmndi:BPMNEdge> |
| 106 | <bpmndi:BPMNEdge id="Flow_1aa2ek0_di" bpmnElement="SequenceFlow_1aa2ek0"> |
| 107 | <di:waypoint x="1000" y="140" /> |
| 108 | <di:waypoint x="1050" y="140" /> |
| 109 | </bpmndi:BPMNEdge> |
| 110 | <bpmndi:BPMNEdge id="Flow_17tvomo_di" bpmnElement="SequenceFlow_17tvomo"> |
| 111 | <di:waypoint x="1300" y="140" /> |
| 112 | <di:waypoint x="1370" y="140" /> |
| 113 | </bpmndi:BPMNEdge> |
| 114 | <bpmndi:BPMNEdge id="SequenceFlow_029u1wr_di" bpmnElement="SequenceFlow_029u1wr"> |
| 115 | <di:waypoint x="530" y="140" /> |
| 116 | <di:waypoint x="600" y="140" /> |
| 117 | </bpmndi:BPMNEdge> |
| 118 | <bpmndi:BPMNEdge id="SequenceFlow_15z9iio_di" bpmnElement="SequenceFlow_15z9iio"> |
| 119 | <di:waypoint x="1640" y="140" /> |
| 120 | <di:waypoint x="1715" y="140" /> |
| 121 | </bpmndi:BPMNEdge> |
| 122 | <bpmndi:BPMNEdge id="SequenceFlow_0npmman_di" bpmnElement="SequenceFlow_0npmman"> |
| 123 | <di:waypoint x="370" y="140" /> |
| 124 | <di:waypoint x="430" y="140" /> |
| 125 | </bpmndi:BPMNEdge> |
| 126 | <bpmndi:BPMNEdge id="SequenceFlow_0926ghe_di" bpmnElement="SequenceFlow_0926ghe"> |
| 127 | <di:waypoint x="1740" y="165" /> |
| 128 | <di:waypoint x="1740" y="260" /> |
| 129 | <di:waypoint x="1250" y="260" /> |
| 130 | <di:waypoint x="1250" y="180" /> |
| 131 | <bpmndi:BPMNLabel> |
| 132 | <dc:Bounds x="1489" y="242" width="13" height="14" /> |
| 133 | </bpmndi:BPMNLabel> |
| 134 | </bpmndi:BPMNEdge> |
| 135 | <bpmndi:BPMNEdge id="SequenceFlow_0c58sw3_di" bpmnElement="SequenceFlow_0c58sw3"> |
| 136 | <di:waypoint x="1470" y="140" /> |
| 137 | <di:waypoint x="1540" y="140" /> |
| 138 | </bpmndi:BPMNEdge> |
| 139 | <bpmndi:BPMNEdge id="SequenceFlow_1c4fjbv_di" bpmnElement="SequenceFlow_1c4fjbv"> |
| 140 | <di:waypoint x="1765" y="140" /> |
| 141 | <di:waypoint x="1802" y="140" /> |
| 142 | <bpmndi:BPMNLabel> |
| 143 | <dc:Bounds x="1771" y="118" width="17" height="14" /> |
| 144 | </bpmndi:BPMNLabel> |
| 145 | </bpmndi:BPMNEdge> |
| 146 | <bpmndi:BPMNEdge id="SequenceFlow_1rgfzzy_di" bpmnElement="SequenceFlow_1rgfzzy"> |
| 147 | <di:waypoint x="850" y="140" /> |
| 148 | <di:waypoint x="900" y="140" /> |
| 149 | </bpmndi:BPMNEdge> |
| 150 | <bpmndi:BPMNEdge id="SequenceFlow_1qkgvvu_di" bpmnElement="SequenceFlow_1qkgvvu"> |
| 151 | <di:waypoint x="700" y="140" /> |
| 152 | <di:waypoint x="750" y="140" /> |
| 153 | </bpmndi:BPMNEdge> |
| 154 | <bpmndi:BPMNEdge id="SequenceFlow_0ep5het_di" bpmnElement="SequenceFlow_0ep5het"> |
| 155 | <di:waypoint x="188" y="140" /> |
| 156 | <di:waypoint x="270" y="140" /> |
| 157 | </bpmndi:BPMNEdge> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 158 | <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"> |
| 159 | <dc:Bounds x="152" y="122" width="36" height="36" /> |
| 160 | <bpmndi:BPMNLabel> |
| 161 | <dc:Bounds x="159" y="165" width="22" height="14" /> |
| 162 | </bpmndi:BPMNLabel> |
| 163 | </bpmndi:BPMNShape> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 164 | <bpmndi:BPMNShape id="ScriptTask_1bj6tw4_di" bpmnElement="Task_1ujnqtj"> |
| 165 | <dc:Bounds x="600" y="100" width="100" height="80" /> |
| 166 | </bpmndi:BPMNShape> |
| 167 | <bpmndi:BPMNShape id="ScriptTask_0xgmbqj_di" bpmnElement="Task_1fqiyb4"> |
| 168 | <dc:Bounds x="750" y="100" width="100" height="80" /> |
| 169 | </bpmndi:BPMNShape> |
| 170 | <bpmndi:BPMNShape id="ScriptTask_01fp1vt_di" bpmnElement="Task_1u755sr"> |
| 171 | <dc:Bounds x="900" y="100" width="100" height="80" /> |
| 172 | </bpmndi:BPMNShape> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 173 | <bpmndi:BPMNShape id="ExclusiveGateway_1ogbunu_di" bpmnElement="ExclusiveGateway_1ogbunu" isMarkerVisible="true"> |
deepikasatheesh | a5e1bac | 2020-09-10 03:24:13 -0700 | [diff] [blame] | 174 | <dc:Bounds x="1715" y="115" width="50" height="50" /> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 175 | <bpmndi:BPMNLabel> |
deepikasatheesh | a5e1bac | 2020-09-10 03:24:13 -0700 | [diff] [blame] | 176 | <dc:Bounds x="1720" y="85" width="52" height="27" /> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 177 | </bpmndi:BPMNLabel> |
| 178 | </bpmndi:BPMNShape> |
| 179 | <bpmndi:BPMNShape id="EndEvent_0jaitqv_di" bpmnElement="EndEvent_0jaitqv"> |
deepikasatheesh | a5e1bac | 2020-09-10 03:24:13 -0700 | [diff] [blame] | 180 | <dc:Bounds x="1802" y="122" width="36" height="36" /> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 181 | <bpmndi:BPMNLabel> |
deepikasatheesh | a5e1bac | 2020-09-10 03:24:13 -0700 | [diff] [blame] | 182 | <dc:Bounds x="1810" y="168" width="20" height="14" /> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 183 | </bpmndi:BPMNLabel> |
| 184 | </bpmndi:BPMNShape> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 185 | <bpmndi:BPMNShape id="ScriptTask_0icszw6_di" bpmnElement="Task_0etki1p"> |
| 186 | <dc:Bounds x="270" y="100" width="100" height="80" /> |
| 187 | </bpmndi:BPMNShape> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 188 | <bpmndi:BPMNShape id="ScriptTask_1obnwrr_di" bpmnElement="Task_1iomfas"> |
deepikasatheesh | a5e1bac | 2020-09-10 03:24:13 -0700 | [diff] [blame] | 189 | <dc:Bounds x="1200" y="100" width="100" height="80" /> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 190 | </bpmndi:BPMNShape> |
| 191 | <bpmndi:BPMNShape id="ScriptTask_159855t_di" bpmnElement="ScriptTask_159855t"> |
deepikasatheesh | a5e1bac | 2020-09-10 03:24:13 -0700 | [diff] [blame] | 192 | <dc:Bounds x="1540" y="100" width="100" height="80" /> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 193 | </bpmndi:BPMNShape> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 194 | <bpmndi:BPMNShape id="ScriptTask_0f9rjq4_di" bpmnElement="Task_13k9usx"> |
| 195 | <dc:Bounds x="430" y="100" width="100" height="80" /> |
| 196 | </bpmndi:BPMNShape> |
| 197 | <bpmndi:BPMNShape id="CallActivity_18qkiat_di" bpmnElement="Task_1rc7mcw"> |
deepikasatheesh | a5e1bac | 2020-09-10 03:24:13 -0700 | [diff] [blame] | 198 | <dc:Bounds x="1370" y="100" width="100" height="80" /> |
| 199 | </bpmndi:BPMNShape> |
| 200 | <bpmndi:BPMNShape id="Activity_1iuls9p_di" bpmnElement="Task_1iuls9p"> |
| 201 | <dc:Bounds x="1050" y="100" width="100" height="80" /> |
zm330 | 91a721f | 2020-03-03 17:14:58 +0800 | [diff] [blame] | 202 | </bpmndi:BPMNShape> |
| 203 | </bpmndi:BPMNPlane> |
| 204 | </bpmndi:BPMNDiagram> |
| 205 | </bpmn:definitions> |