blob: 58795056d4c0c742b13f505f15cc09d52356cff7 [file] [log] [blame]
Isaac Manuel Rajff681452020-03-04 20:08:03 +05301<?xml version="1.0" encoding="UTF-8"?>
hetengjiao177987a2020-09-18 10:08:26 +08002<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 Rajff681452020-03-04 20:08:03 +05303 <bpmn:process id="DoAllocateNSSI" name="DoAllocateNSSI" isExecutable="true">
hetengjiao177987a2020-09-18 10:08:26 +08004 <bpmn:startEvent id="StartEvent_0zs8ezi" name="Start">
5 <bpmn:outgoing>SequenceFlow_07xkshs</bpmn:outgoing>
Isaac Manuel Rajff681452020-03-04 20:08:03 +05306 </bpmn:startEvent>
hetengjiao177987a2020-09-18 10:08:26 +08007 <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 Rajff681452020-03-04 20:08:03 +053010 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
11def dcnssi = new DoAllocateNSSI()
12dcnssi.preProcessRequest(execution)</bpmn:script>
13 </bpmn:scriptTask>
hetengjiao177987a2020-09-18 10:08:26 +080014 <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 Rajff681452020-03-04 20:08:03 +053018 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
19def dcnssi = new DoAllocateNSSI()
hetengjiao177987a2020-09-18 10:08:26 +080020dcnssi.sendCreateRequestNSSMF(execution)</bpmn:script>
Isaac Manuel Rajff681452020-03-04 20:08:03 +053021 </bpmn:scriptTask>
hetengjiao177987a2020-09-18 10:08:26 +080022 <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 Rajff681452020-03-04 20:08:03 +053028 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
29def dcnssi = new DoAllocateNSSI()
hetengjiao177987a2020-09-18 10:08:26 +080030dcnssi.queryNSSIStatus(execution)</bpmn:script>
Isaac Manuel Rajff681452020-03-04 20:08:03 +053031 </bpmn:scriptTask>
hetengjiao177987a2020-09-18 10:08:26 +080032 <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 Rajff681452020-03-04 20:08:03 +053035 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
36def dcnssi = new DoAllocateNSSI()
37dcnssi.prepareUpdateOrchestrationTask(execution)</bpmn:script>
38 </bpmn:scriptTask>
hetengjiao177987a2020-09-18 10:08:26 +080039 <bpmn:callActivity id="CallActivity_0knipxf" name="Call HandleOrchestrationTask" calledElement="HandleOrchestrationTask">
Isaac Manuel Rajff681452020-03-04 20:08:03 +053040 <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>
hetengjiao177987a2020-09-18 10:08:26 +080051 <bpmn:incoming>SequenceFlow_1ozi7ed</bpmn:incoming>
52 <bpmn:outgoing>SequenceFlow_0hgv9c5</bpmn:outgoing>
Isaac Manuel Rajff681452020-03-04 20:08:03 +053053 </bpmn:callActivity>
hetengjiao177987a2020-09-18 10:08:26 +080054 <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 Rajff681452020-03-04 20:08:03 +053060 </bpmn:exclusiveGateway>
hetengjiao177987a2020-09-18 10:08:26 +080061 <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.*
66def dcnssi = new DoAllocateNSSI()
67dcnssi.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 Rajff681452020-03-04 20:08:03 +053073 </bpmn:sequenceFlow>
hetengjiao177987a2020-09-18 10:08:26 +080074 <bpmn:endEvent id="IntermediateThrowEvent_10xe1qh">
75 <bpmn:incoming>SequenceFlow_170frn3</bpmn:incoming>
76 </bpmn:endEvent>
Isaac Manuel Rajff681452020-03-04 20:08:03 +053077 </bpmn:process>
78 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
hetengjiao3e4d7032020-09-25 16:17:33 +080079 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoAllocateNSSI">
hetengjiao177987a2020-09-18 10:08:26 +080080 <bpmndi:BPMNShape id="StartEvent_0zs8ezi_di" bpmnElement="StartEvent_0zs8ezi">
81 <dc:Bounds x="147" y="112" width="36" height="36" />
Isaac Manuel Rajff681452020-03-04 20:08:03 +053082 <bpmndi:BPMNLabel>
hetengjiao177987a2020-09-18 10:08:26 +080083 <dc:Bounds x="152" y="153" width="25" height="14" />
Isaac Manuel Rajff681452020-03-04 20:08:03 +053084 </bpmndi:BPMNLabel>
85 </bpmndi:BPMNShape>
hetengjiao177987a2020-09-18 10:08:26 +080086 <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 Rajff681452020-03-04 20:08:03 +053092 </bpmndi:BPMNEdge>
hetengjiao177987a2020-09-18 10:08:26 +080093 <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 Rajff681452020-03-04 20:08:03 +053099 </bpmndi:BPMNEdge>
hetengjiao177987a2020-09-18 10:08:26 +0800100 <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 Rajff681452020-03-04 20:08:03 +0530106 </bpmndi:BPMNShape>
hetengjiao177987a2020-09-18 10:08:26 +0800107 <bpmndi:BPMNShape id="ScriptTask_0ki1c4k_di" bpmnElement="ScriptTask_0ki1c4k">
108 <dc:Bounds x="840" y="90" width="100" height="80" />
Isaac Manuel Rajff681452020-03-04 20:08:03 +0530109 </bpmndi:BPMNShape>
hetengjiao177987a2020-09-18 10:08:26 +0800110 <bpmndi:BPMNShape id="CallActivity_0knipxf_di" bpmnElement="CallActivity_0knipxf">
111 <dc:Bounds x="1040" y="90" width="100" height="80" />
Isaac Manuel Rajff681452020-03-04 20:08:03 +0530112 </bpmndi:BPMNShape>
hetengjiao177987a2020-09-18 10:08:26 +0800113 <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 Rajff681452020-03-04 20:08:03 +0530123 <bpmndi:BPMNLabel>
hetengjiao177987a2020-09-18 10:08:26 +0800124 <dc:Bounds x="1243" y="81" width="54" height="14" />
Isaac Manuel Rajff681452020-03-04 20:08:03 +0530125 </bpmndi:BPMNLabel>
126 </bpmndi:BPMNShape>
hetengjiao177987a2020-09-18 10:08:26 +0800127 <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 Rajff681452020-03-04 20:08:03 +0530133 </bpmndi:BPMNShape>
hetengjiao177987a2020-09-18 10:08:26 +0800134 <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 Rajff681452020-03-04 20:08:03 +0530137 <bpmndi:BPMNLabel>
hetengjiao177987a2020-09-18 10:08:26 +0800138 <dc:Bounds x="1251" y="195" width="23" height="14" />
Isaac Manuel Rajff681452020-03-04 20:08:03 +0530139 </bpmndi:BPMNLabel>
140 </bpmndi:BPMNEdge>
hetengjiao177987a2020-09-18 10:08:26 +0800141 <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 Rajff681452020-03-04 20:08:03 +0530149 <bpmndi:BPMNLabel>
hetengjiao177987a2020-09-18 10:08:26 +0800150 <dc:Bounds x="1325" y="112" width="17" height="14" />
Isaac Manuel Rajff681452020-03-04 20:08:03 +0530151 </bpmndi:BPMNLabel>
152 </bpmndi:BPMNEdge>
hetengjiao177987a2020-09-18 10:08:26 +0800153 <bpmndi:BPMNShape id="EndEvent_1q1vntz_di" bpmnElement="IntermediateThrowEvent_10xe1qh">
154 <dc:Bounds x="1372" y="112" width="36" height="36" />
Isaac Manuel Rajff681452020-03-04 20:08:03 +0530155 </bpmndi:BPMNShape>
Isaac Manuel Rajff681452020-03-04 20:08:03 +0530156 </bpmndi:BPMNPlane>
157 </bpmndi:BPMNDiagram>
hetengjiao3e4d7032020-09-25 16:17:33 +0800158</bpmn:definitions>