zm330 | 91a721f | 2020-03-03 17:14:58 +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_1p1suc9" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.4.1"> |
| 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> |
| 26 | <bpmn:outgoing>SequenceFlow_05si1me</bpmn:outgoing> |
| 27 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 28 | def ddss= new DoDeleteSliceService() |
| 29 | ddss.getNSSIListFromAAI(execution)</bpmn:script> |
| 30 | </bpmn:scriptTask> |
| 31 | <bpmn:sequenceFlow id="SequenceFlow_05si1me" sourceRef="Task_1u755sr" targetRef="Task_1iomfas" /> |
| 32 | <bpmn:exclusiveGateway id="ExclusiveGateway_1ogbunu" name="Is all NSSI finished?"> |
| 33 | <bpmn:incoming>SequenceFlow_15z9iio</bpmn:incoming> |
| 34 | <bpmn:outgoing>SequenceFlow_1c4fjbv</bpmn:outgoing> |
| 35 | <bpmn:outgoing>SequenceFlow_0926ghe</bpmn:outgoing> |
| 36 | </bpmn:exclusiveGateway> |
| 37 | <bpmn:endEvent id="EndEvent_0jaitqv" name="End"> |
| 38 | <bpmn:incoming>SequenceFlow_1c4fjbv</bpmn:incoming> |
| 39 | </bpmn:endEvent> |
| 40 | <bpmn:sequenceFlow id="SequenceFlow_1c4fjbv" name="yes" sourceRef="ExclusiveGateway_1ogbunu" targetRef="EndEvent_0jaitqv"> |
| 41 | <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isAllNSSIFinished" ) == true)}</bpmn:conditionExpression> |
| 42 | </bpmn:sequenceFlow> |
| 43 | <bpmn:sequenceFlow id="SequenceFlow_01o2qpv" sourceRef="Task_1iomfas" targetRef="Task_1qqljvu" /> |
| 44 | <bpmn:sequenceFlow id="SequenceFlow_0c58sw3" sourceRef="Task_1rc7mcw" targetRef="ScriptTask_159855t" /> |
| 45 | <bpmn:sequenceFlow id="SequenceFlow_0926ghe" name="no" sourceRef="ExclusiveGateway_1ogbunu" targetRef="Task_1iomfas"> |
| 46 | <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("isAllNSSIFinished" ) == false)}</bpmn:conditionExpression> |
| 47 | </bpmn:sequenceFlow> |
| 48 | <bpmn:scriptTask id="Task_0etki1p" name="PreProcess Incoming Request" scriptFormat="groovy"> |
| 49 | <bpmn:incoming>SequenceFlow_0ep5het</bpmn:incoming> |
| 50 | <bpmn:outgoing>SequenceFlow_0npmman</bpmn:outgoing> |
| 51 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 52 | def ddss= new DoDeleteSliceService() |
| 53 | ddss.preProcessRequest(execution)</bpmn:script> |
| 54 | </bpmn:scriptTask> |
| 55 | <bpmn:sequenceFlow id="SequenceFlow_0npmman" sourceRef="Task_0etki1p" targetRef="Task_13k9usx" /> |
| 56 | <bpmn:scriptTask id="Task_1iomfas" name="Get Current NSSI" scriptFormat="groovy"> |
| 57 | <bpmn:incoming>SequenceFlow_0926ghe</bpmn:incoming> |
| 58 | <bpmn:incoming>SequenceFlow_05si1me</bpmn:incoming> |
| 59 | <bpmn:outgoing>SequenceFlow_01o2qpv</bpmn:outgoing> |
| 60 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 61 | def ddss= new DoDeleteSliceService() |
| 62 | ddss.getCurrentNSSI(execution)</bpmn:script> |
| 63 | </bpmn:scriptTask> |
| 64 | <bpmn:scriptTask id="ScriptTask_159855t" name="Parse Next NSSI" scriptFormat="groovy"> |
| 65 | <bpmn:incoming>SequenceFlow_0c58sw3</bpmn:incoming> |
| 66 | <bpmn:outgoing>SequenceFlow_15z9iio</bpmn:outgoing> |
| 67 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 68 | def ddss= new DoDeleteSliceService() |
| 69 | ddss.parseNextNSSI(execution)</bpmn:script> |
| 70 | </bpmn:scriptTask> |
| 71 | <bpmn:sequenceFlow id="SequenceFlow_15z9iio" sourceRef="ScriptTask_159855t" targetRef="ExclusiveGateway_1ogbunu" /> |
| 72 | <bpmn:sequenceFlow id="SequenceFlow_0q83qg3" sourceRef="Task_1qqljvu" targetRef="Task_1rc7mcw" /> |
| 73 | <bpmn:scriptTask id="Task_1qqljvu" name="Query Slice Profile From AAI" scriptFormat="groovy"> |
| 74 | <bpmn:incoming>SequenceFlow_01o2qpv</bpmn:incoming> |
| 75 | <bpmn:outgoing>SequenceFlow_0q83qg3</bpmn:outgoing> |
| 76 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 77 | def ddss= new DoDeleteSliceService() |
| 78 | ddss.querySliceProfileFromAAI(execution)</bpmn:script> |
| 79 | </bpmn:scriptTask> |
| 80 | <bpmn:sequenceFlow id="SequenceFlow_029u1wr" sourceRef="Task_13k9usx" targetRef="Task_1ujnqtj" /> |
| 81 | <bpmn:scriptTask id="Task_13k9usx" name="Query E2ESlice Serive From AAI" scriptFormat="groovy"> |
| 82 | <bpmn:incoming>SequenceFlow_0npmman</bpmn:incoming> |
| 83 | <bpmn:outgoing>SequenceFlow_029u1wr</bpmn:outgoing> |
| 84 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 85 | def ddss= new DoDeleteSliceService() |
| 86 | ddss.queryE2ESliceSeriveFromAAI(execution)</bpmn:script> |
| 87 | </bpmn:scriptTask> |
| 88 | <bpmn:callActivity id="Task_1rc7mcw" name="Do Deallocate NSSI " calledElement="DoDeallocateNSSIV1"> |
| 89 | <bpmn:extensionElements> |
| 90 | <camunda:in source="currentNSSI" target="currentNSSI" /> |
| 91 | <camunda:in source="msoRequestId" target="msoRequestId" /> |
| 92 | <camunda:in source="serviceModelInfo" target="serviceModelInfo" /> |
| 93 | <camunda:in source="serviceInstanceId" target="serviceInstanceId" /> |
| 94 | <camunda:out source="WorkflowException" target="WorkflowException" /> |
| 95 | </bpmn:extensionElements> |
| 96 | <bpmn:incoming>SequenceFlow_0q83qg3</bpmn:incoming> |
| 97 | <bpmn:outgoing>SequenceFlow_0c58sw3</bpmn:outgoing> |
| 98 | </bpmn:callActivity> |
| 99 | </bpmn:process> |
| 100 | <bpmndi:BPMNDiagram id="BPMNDiagram_1"> |
| 101 | <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoDeleteSliceServiceV1"> |
| 102 | <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"> |
| 103 | <dc:Bounds x="152" y="122" width="36" height="36" /> |
| 104 | <bpmndi:BPMNLabel> |
| 105 | <dc:Bounds x="159" y="165" width="22" height="14" /> |
| 106 | </bpmndi:BPMNLabel> |
| 107 | </bpmndi:BPMNShape> |
| 108 | <bpmndi:BPMNEdge id="SequenceFlow_0ep5het_di" bpmnElement="SequenceFlow_0ep5het"> |
| 109 | <di:waypoint x="188" y="140" /> |
| 110 | <di:waypoint x="270" y="140" /> |
| 111 | </bpmndi:BPMNEdge> |
| 112 | <bpmndi:BPMNEdge id="SequenceFlow_1qkgvvu_di" bpmnElement="SequenceFlow_1qkgvvu"> |
| 113 | <di:waypoint x="700" y="140" /> |
| 114 | <di:waypoint x="750" y="140" /> |
| 115 | </bpmndi:BPMNEdge> |
| 116 | <bpmndi:BPMNEdge id="SequenceFlow_1rgfzzy_di" bpmnElement="SequenceFlow_1rgfzzy"> |
| 117 | <di:waypoint x="850" y="140" /> |
| 118 | <di:waypoint x="900" y="140" /> |
| 119 | </bpmndi:BPMNEdge> |
| 120 | <bpmndi:BPMNShape id="ScriptTask_1bj6tw4_di" bpmnElement="Task_1ujnqtj"> |
| 121 | <dc:Bounds x="600" y="100" width="100" height="80" /> |
| 122 | </bpmndi:BPMNShape> |
| 123 | <bpmndi:BPMNShape id="ScriptTask_0xgmbqj_di" bpmnElement="Task_1fqiyb4"> |
| 124 | <dc:Bounds x="750" y="100" width="100" height="80" /> |
| 125 | </bpmndi:BPMNShape> |
| 126 | <bpmndi:BPMNShape id="ScriptTask_01fp1vt_di" bpmnElement="Task_1u755sr"> |
| 127 | <dc:Bounds x="900" y="100" width="100" height="80" /> |
| 128 | </bpmndi:BPMNShape> |
| 129 | <bpmndi:BPMNEdge id="SequenceFlow_05si1me_di" bpmnElement="SequenceFlow_05si1me"> |
| 130 | <di:waypoint x="1000" y="140" /> |
| 131 | <di:waypoint x="1040" y="140" /> |
| 132 | </bpmndi:BPMNEdge> |
| 133 | <bpmndi:BPMNShape id="ExclusiveGateway_1ogbunu_di" bpmnElement="ExclusiveGateway_1ogbunu" isMarkerVisible="true"> |
| 134 | <dc:Bounds x="1555" y="115" width="50" height="50" /> |
| 135 | <bpmndi:BPMNLabel> |
| 136 | <dc:Bounds x="1560" y="85" width="52" height="27" /> |
| 137 | </bpmndi:BPMNLabel> |
| 138 | </bpmndi:BPMNShape> |
| 139 | <bpmndi:BPMNShape id="EndEvent_0jaitqv_di" bpmnElement="EndEvent_0jaitqv"> |
| 140 | <dc:Bounds x="1692" y="122" width="36" height="36" /> |
| 141 | <bpmndi:BPMNLabel> |
| 142 | <dc:Bounds x="1700" y="168" width="20" height="14" /> |
| 143 | </bpmndi:BPMNLabel> |
| 144 | </bpmndi:BPMNShape> |
| 145 | <bpmndi:BPMNEdge id="SequenceFlow_1c4fjbv_di" bpmnElement="SequenceFlow_1c4fjbv"> |
| 146 | <di:waypoint x="1605" y="140" /> |
| 147 | <di:waypoint x="1692" y="140" /> |
| 148 | <bpmndi:BPMNLabel> |
| 149 | <dc:Bounds x="1630" y="118" width="17" height="14" /> |
| 150 | </bpmndi:BPMNLabel> |
| 151 | </bpmndi:BPMNEdge> |
| 152 | <bpmndi:BPMNEdge id="SequenceFlow_01o2qpv_di" bpmnElement="SequenceFlow_01o2qpv"> |
| 153 | <di:waypoint x="1140" y="140" /> |
| 154 | <di:waypoint x="1170" y="140" /> |
| 155 | </bpmndi:BPMNEdge> |
| 156 | <bpmndi:BPMNEdge id="SequenceFlow_0c58sw3_di" bpmnElement="SequenceFlow_0c58sw3"> |
| 157 | <di:waypoint x="1400" y="140" /> |
| 158 | <di:waypoint x="1420" y="140" /> |
| 159 | </bpmndi:BPMNEdge> |
| 160 | <bpmndi:BPMNEdge id="SequenceFlow_0926ghe_di" bpmnElement="SequenceFlow_0926ghe"> |
| 161 | <di:waypoint x="1580" y="165" /> |
| 162 | <di:waypoint x="1580" y="260" /> |
| 163 | <di:waypoint x="1090" y="260" /> |
| 164 | <di:waypoint x="1090" y="180" /> |
| 165 | <bpmndi:BPMNLabel> |
| 166 | <dc:Bounds x="1329" y="242" width="13" height="14" /> |
| 167 | </bpmndi:BPMNLabel> |
| 168 | </bpmndi:BPMNEdge> |
| 169 | <bpmndi:BPMNShape id="ScriptTask_0icszw6_di" bpmnElement="Task_0etki1p"> |
| 170 | <dc:Bounds x="270" y="100" width="100" height="80" /> |
| 171 | </bpmndi:BPMNShape> |
| 172 | <bpmndi:BPMNEdge id="SequenceFlow_0npmman_di" bpmnElement="SequenceFlow_0npmman"> |
| 173 | <di:waypoint x="370" y="140" /> |
| 174 | <di:waypoint x="430" y="140" /> |
| 175 | </bpmndi:BPMNEdge> |
| 176 | <bpmndi:BPMNShape id="ScriptTask_1obnwrr_di" bpmnElement="Task_1iomfas"> |
| 177 | <dc:Bounds x="1040" y="100" width="100" height="80" /> |
| 178 | </bpmndi:BPMNShape> |
| 179 | <bpmndi:BPMNShape id="ScriptTask_159855t_di" bpmnElement="ScriptTask_159855t"> |
| 180 | <dc:Bounds x="1420" y="100" width="100" height="80" /> |
| 181 | </bpmndi:BPMNShape> |
| 182 | <bpmndi:BPMNEdge id="SequenceFlow_15z9iio_di" bpmnElement="SequenceFlow_15z9iio"> |
| 183 | <di:waypoint x="1520" y="140" /> |
| 184 | <di:waypoint x="1555" y="140" /> |
| 185 | </bpmndi:BPMNEdge> |
| 186 | <bpmndi:BPMNEdge id="SequenceFlow_0q83qg3_di" bpmnElement="SequenceFlow_0q83qg3"> |
| 187 | <di:waypoint x="1270" y="140" /> |
| 188 | <di:waypoint x="1300" y="140" /> |
| 189 | </bpmndi:BPMNEdge> |
| 190 | <bpmndi:BPMNShape id="ScriptTask_0y9ppnc_di" bpmnElement="Task_1qqljvu"> |
| 191 | <dc:Bounds x="1170" y="100" width="100" height="80" /> |
| 192 | </bpmndi:BPMNShape> |
| 193 | <bpmndi:BPMNEdge id="SequenceFlow_029u1wr_di" bpmnElement="SequenceFlow_029u1wr"> |
| 194 | <di:waypoint x="530" y="140" /> |
| 195 | <di:waypoint x="600" y="140" /> |
| 196 | </bpmndi:BPMNEdge> |
| 197 | <bpmndi:BPMNShape id="ScriptTask_0f9rjq4_di" bpmnElement="Task_13k9usx"> |
| 198 | <dc:Bounds x="430" y="100" width="100" height="80" /> |
| 199 | </bpmndi:BPMNShape> |
| 200 | <bpmndi:BPMNShape id="CallActivity_18qkiat_di" bpmnElement="Task_1rc7mcw"> |
| 201 | <dc:Bounds x="1300" y="100" width="100" height="80" /> |
| 202 | </bpmndi:BPMNShape> |
| 203 | </bpmndi:BPMNPlane> |
| 204 | </bpmndi:BPMNDiagram> |
| 205 | </bpmn:definitions> |