Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [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:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.4.1"> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 3 | <bpmn:process id="DoAllocateNSSI" name="DoAllocateNSSI" isExecutable="true"> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 4 | <bpmn:startEvent id="StartEvent_0zs8ezi" name="Start"> |
| 5 | <bpmn:outgoing>SequenceFlow_07xkshs</bpmn:outgoing> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 6 | </bpmn:startEvent> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 7 | <bpmn:scriptTask id="ScriptTask_0n2z0z7" name="Preprocess Request" scriptFormat="groovy"> |
| 8 | <bpmn:incoming>SequenceFlow_07xkshs</bpmn:incoming> |
| 9 | <bpmn:outgoing>SequenceFlow_0h6mn7j</bpmn:outgoing> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 10 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 11 | def dcnssi = new DoAllocateNSSI() |
| 12 | dcnssi.preProcessRequest(execution)</bpmn:script> |
| 13 | </bpmn:scriptTask> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 14 | <bpmn:sequenceFlow id="SequenceFlow_07xkshs" sourceRef="StartEvent_0zs8ezi" targetRef="ScriptTask_0n2z0z7" /> |
| 15 | <bpmn:scriptTask id="ScriptTask_15a7mua" name="send request to NSSMF adapter" scriptFormat="groovy"> |
| 16 | <bpmn:incoming>SequenceFlow_0h6mn7j</bpmn:incoming> |
| 17 | <bpmn:outgoing>SequenceFlow_1wclf50</bpmn:outgoing> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 18 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 19 | def dcnssi = new DoAllocateNSSI() |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 20 | dcnssi.sendCreateRequestNSSMF(execution)</bpmn:script> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 21 | </bpmn:scriptTask> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 22 | <bpmn:sequenceFlow id="SequenceFlow_1wclf50" sourceRef="ScriptTask_15a7mua" targetRef="Task_1ym947s" /> |
| 23 | <bpmn:sequenceFlow id="SequenceFlow_0h6mn7j" sourceRef="ScriptTask_0n2z0z7" targetRef="ScriptTask_15a7mua" /> |
| 24 | <bpmn:scriptTask id="Task_1ym947s" name="Query NSSI progress from adapter" scriptFormat="groovy"> |
| 25 | <bpmn:incoming>SequenceFlow_0gpgxw4</bpmn:incoming> |
| 26 | <bpmn:incoming>SequenceFlow_1wclf50</bpmn:incoming> |
| 27 | <bpmn:outgoing>SequenceFlow_0p9gd2n</bpmn:outgoing> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 28 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 29 | def dcnssi = new DoAllocateNSSI() |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 30 | dcnssi.queryNSSIStatus(execution)</bpmn:script> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 31 | </bpmn:scriptTask> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 32 | <bpmn:scriptTask id="ScriptTask_0ki1c4k" name="Prepare Update Orchestration Task" scriptFormat="groovy"> |
| 33 | <bpmn:incoming>SequenceFlow_0p9gd2n</bpmn:incoming> |
| 34 | <bpmn:outgoing>SequenceFlow_1ozi7ed</bpmn:outgoing> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 35 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 36 | def dcnssi = new DoAllocateNSSI() |
| 37 | dcnssi.prepareUpdateOrchestrationTask(execution)</bpmn:script> |
| 38 | </bpmn:scriptTask> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 39 | <bpmn:callActivity id="CallActivity_0knipxf" name="Call HandleOrchestrationTask" calledElement="HandleOrchestrationTask"> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 40 | <bpmn:extensionElements> |
| 41 | <camunda:out source="statusCode" target="CSSOT_dbResponseCode" /> |
| 42 | <camunda:out source="response" target="CSSOT_dbResponse" /> |
| 43 | <camunda:in source="CSSOT_taskId" target="taskId" /> |
| 44 | <camunda:in source="msoRequestId" target="requestId" /> |
| 45 | <camunda:in source="CSSOT_name" target="taskName" /> |
| 46 | <camunda:in source="CSSOT_status" target="taskStatus" /> |
| 47 | <camunda:in source="CSSOT_isManual" target="isManual" /> |
| 48 | <camunda:in source="CSSOT_paramJson" target="paramJson" /> |
| 49 | <camunda:in source="CSSOT_requestMethod" target="method" /> |
| 50 | </bpmn:extensionElements> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 51 | <bpmn:incoming>SequenceFlow_1ozi7ed</bpmn:incoming> |
| 52 | <bpmn:outgoing>SequenceFlow_0hgv9c5</bpmn:outgoing> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 53 | </bpmn:callActivity> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 54 | <bpmn:sequenceFlow id="SequenceFlow_1ozi7ed" sourceRef="ScriptTask_0ki1c4k" targetRef="CallActivity_0knipxf" /> |
| 55 | <bpmn:sequenceFlow id="SequenceFlow_0p9gd2n" sourceRef="Task_1ym947s" targetRef="ScriptTask_0ki1c4k" /> |
| 56 | <bpmn:exclusiveGateway id="ExclusiveGateway_11gv703" name="Completed" default="SequenceFlow_0y5jr25"> |
| 57 | <bpmn:incoming>SequenceFlow_0hgv9c5</bpmn:incoming> |
| 58 | <bpmn:outgoing>SequenceFlow_0y5jr25</bpmn:outgoing> |
| 59 | <bpmn:outgoing>SequenceFlow_170frn3</bpmn:outgoing> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 60 | </bpmn:exclusiveGateway> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 61 | <bpmn:sequenceFlow id="SequenceFlow_0hgv9c5" sourceRef="CallActivity_0knipxf" targetRef="ExclusiveGateway_11gv703" /> |
| 62 | <bpmn:scriptTask id="ScriptTask_1s7bt3s" name="Time delay" scriptFormat="groovy"> |
| 63 | <bpmn:incoming>SequenceFlow_0y5jr25</bpmn:incoming> |
| 64 | <bpmn:outgoing>SequenceFlow_0gpgxw4</bpmn:outgoing> |
| 65 | <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.* |
| 66 | def dcnssi = new DoAllocateNSSI() |
| 67 | dcnssi.timeDelay(execution)</bpmn:script> |
| 68 | </bpmn:scriptTask> |
| 69 | <bpmn:sequenceFlow id="SequenceFlow_0y5jr25" name="false" sourceRef="ExclusiveGateway_11gv703" targetRef="ScriptTask_1s7bt3s" /> |
| 70 | <bpmn:sequenceFlow id="SequenceFlow_0gpgxw4" sourceRef="ScriptTask_1s7bt3s" targetRef="Task_1ym947s" /> |
| 71 | <bpmn:sequenceFlow id="SequenceFlow_170frn3" name="yes" sourceRef="ExclusiveGateway_11gv703" targetRef="IntermediateThrowEvent_10xe1qh"> |
| 72 | <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("jobFinished" ) == true)}</bpmn:conditionExpression> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 73 | </bpmn:sequenceFlow> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 74 | <bpmn:endEvent id="IntermediateThrowEvent_10xe1qh"> |
| 75 | <bpmn:incoming>SequenceFlow_170frn3</bpmn:incoming> |
| 76 | </bpmn:endEvent> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 77 | </bpmn:process> |
| 78 | <bpmndi:BPMNDiagram id="BPMNDiagram_1"> |
hetengjiao | 3e4d703 | 2020-09-25 16:17:33 +0800 | [diff] [blame] | 79 | <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoAllocateNSSI"> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 80 | <bpmndi:BPMNShape id="StartEvent_0zs8ezi_di" bpmnElement="StartEvent_0zs8ezi"> |
| 81 | <dc:Bounds x="147" y="112" width="36" height="36" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 82 | <bpmndi:BPMNLabel> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 83 | <dc:Bounds x="152" y="153" width="25" height="14" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 84 | </bpmndi:BPMNLabel> |
| 85 | </bpmndi:BPMNShape> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 86 | <bpmndi:BPMNShape id="ScriptTask_0n2z0z7_di" bpmnElement="ScriptTask_0n2z0z7"> |
| 87 | <dc:Bounds x="270" y="90" width="100" height="80" /> |
| 88 | </bpmndi:BPMNShape> |
| 89 | <bpmndi:BPMNEdge id="SequenceFlow_07xkshs_di" bpmnElement="SequenceFlow_07xkshs"> |
| 90 | <di:waypoint x="183" y="130" /> |
| 91 | <di:waypoint x="270" y="130" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 92 | </bpmndi:BPMNEdge> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 93 | <bpmndi:BPMNShape id="ScriptTask_15a7mua_di" bpmnElement="ScriptTask_15a7mua"> |
| 94 | <dc:Bounds x="460" y="90" width="100" height="80" /> |
| 95 | </bpmndi:BPMNShape> |
| 96 | <bpmndi:BPMNEdge id="SequenceFlow_1wclf50_di" bpmnElement="SequenceFlow_1wclf50"> |
| 97 | <di:waypoint x="560" y="130" /> |
| 98 | <di:waypoint x="670" y="130" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 99 | </bpmndi:BPMNEdge> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 100 | <bpmndi:BPMNEdge id="SequenceFlow_0h6mn7j_di" bpmnElement="SequenceFlow_0h6mn7j"> |
| 101 | <di:waypoint x="370" y="130" /> |
| 102 | <di:waypoint x="460" y="130" /> |
| 103 | </bpmndi:BPMNEdge> |
| 104 | <bpmndi:BPMNShape id="ScriptTask_0bt5d96_di" bpmnElement="Task_1ym947s"> |
| 105 | <dc:Bounds x="670" y="90" width="100" height="80" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 106 | </bpmndi:BPMNShape> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 107 | <bpmndi:BPMNShape id="ScriptTask_0ki1c4k_di" bpmnElement="ScriptTask_0ki1c4k"> |
| 108 | <dc:Bounds x="840" y="90" width="100" height="80" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 109 | </bpmndi:BPMNShape> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 110 | <bpmndi:BPMNShape id="CallActivity_0knipxf_di" bpmnElement="CallActivity_0knipxf"> |
| 111 | <dc:Bounds x="1040" y="90" width="100" height="80" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 112 | </bpmndi:BPMNShape> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 113 | <bpmndi:BPMNEdge id="SequenceFlow_1ozi7ed_di" bpmnElement="SequenceFlow_1ozi7ed"> |
| 114 | <di:waypoint x="940" y="130" /> |
| 115 | <di:waypoint x="1040" y="130" /> |
| 116 | </bpmndi:BPMNEdge> |
| 117 | <bpmndi:BPMNEdge id="SequenceFlow_0p9gd2n_di" bpmnElement="SequenceFlow_0p9gd2n"> |
| 118 | <di:waypoint x="770" y="130" /> |
| 119 | <di:waypoint x="840" y="130" /> |
| 120 | </bpmndi:BPMNEdge> |
| 121 | <bpmndi:BPMNShape id="ExclusiveGateway_11gv703_di" bpmnElement="ExclusiveGateway_11gv703" isMarkerVisible="true"> |
| 122 | <dc:Bounds x="1245" y="105" width="50" height="50" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 123 | <bpmndi:BPMNLabel> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 124 | <dc:Bounds x="1243" y="81" width="54" height="14" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 125 | </bpmndi:BPMNLabel> |
| 126 | </bpmndi:BPMNShape> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 127 | <bpmndi:BPMNEdge id="SequenceFlow_0hgv9c5_di" bpmnElement="SequenceFlow_0hgv9c5"> |
| 128 | <di:waypoint x="1140" y="130" /> |
| 129 | <di:waypoint x="1245" y="130" /> |
| 130 | </bpmndi:BPMNEdge> |
| 131 | <bpmndi:BPMNShape id="ScriptTask_1s7bt3s_di" bpmnElement="ScriptTask_1s7bt3s"> |
| 132 | <dc:Bounds x="1220" y="230" width="100" height="80" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 133 | </bpmndi:BPMNShape> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 134 | <bpmndi:BPMNEdge id="SequenceFlow_0y5jr25_di" bpmnElement="SequenceFlow_0y5jr25"> |
| 135 | <di:waypoint x="1270" y="155" /> |
| 136 | <di:waypoint x="1270" y="230" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 137 | <bpmndi:BPMNLabel> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 138 | <dc:Bounds x="1251" y="195" width="23" height="14" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 139 | </bpmndi:BPMNLabel> |
| 140 | </bpmndi:BPMNEdge> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 141 | <bpmndi:BPMNEdge id="SequenceFlow_0gpgxw4_di" bpmnElement="SequenceFlow_0gpgxw4"> |
| 142 | <di:waypoint x="1220" y="270" /> |
| 143 | <di:waypoint x="720" y="270" /> |
| 144 | <di:waypoint x="720" y="170" /> |
| 145 | </bpmndi:BPMNEdge> |
| 146 | <bpmndi:BPMNEdge id="SequenceFlow_170frn3_di" bpmnElement="SequenceFlow_170frn3"> |
| 147 | <di:waypoint x="1295" y="130" /> |
| 148 | <di:waypoint x="1372" y="130" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 149 | <bpmndi:BPMNLabel> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 150 | <dc:Bounds x="1325" y="112" width="17" height="14" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 151 | </bpmndi:BPMNLabel> |
| 152 | </bpmndi:BPMNEdge> |
hetengjiao | 177987a | 2020-09-18 10:08:26 +0800 | [diff] [blame] | 153 | <bpmndi:BPMNShape id="EndEvent_1q1vntz_di" bpmnElement="IntermediateThrowEvent_10xe1qh"> |
| 154 | <dc:Bounds x="1372" y="112" width="36" height="36" /> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 155 | </bpmndi:BPMNShape> |
Isaac Manuel Raj | ff68145 | 2020-03-04 20:08:03 +0530 | [diff] [blame] | 156 | </bpmndi:BPMNPlane> |
| 157 | </bpmndi:BPMNDiagram> |
hetengjiao | 3e4d703 | 2020-09-25 16:17:33 +0800 | [diff] [blame] | 158 | </bpmn:definitions> |