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:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1wio50w" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.1.1">
3 <bpmn:process id="DoActivateTransportNSSI" name="DoActivateTransportNSSI" isExecutable="true">
4 <bpmn:startEvent id="StartEvent_1nbljfd" name="Create Activate/Deactivate TN NSSMF Work Flow">
5 <bpmn:outgoing>SequenceFlow_03s744c</bpmn:outgoing>
7 <bpmn:subProcess id="SubProcess_1yv9i68" name="Sub-process for FalloutHandler and Rollback" triggeredByEvent="true">
8 <bpmn:startEvent id="StartEvent_1omdx56">
9 <bpmn:outgoing>SequenceFlow_1w67v6s</bpmn:outgoing>
10 <bpmn:errorEventDefinition id="ErrorEventDefinition_06xcioh" />
12 <bpmn:endEvent id="EndEvent_1jx3026">
13 <bpmn:incoming>SequenceFlow_08mlzwz</bpmn:incoming>
15 <bpmn:scriptTask id="ScriptTask_1swzdpw" name="Handle Unexpected Error" scriptFormat="groovy">
16 <bpmn:incoming>SequenceFlow_1w67v6s</bpmn:incoming>
17 <bpmn:outgoing>SequenceFlow_08mlzwz</bpmn:outgoing>
18 <bpmn:script>import org.onap.so.bpmn.common.scripts.*
19 ExceptionUtil ex = new ExceptionUtil()
20 ex.processJavaException(execution)</bpmn:script>
22 <bpmn:sequenceFlow id="SequenceFlow_1w67v6s" sourceRef="StartEvent_1omdx56" targetRef="ScriptTask_1swzdpw" />
23 <bpmn:sequenceFlow id="SequenceFlow_08mlzwz" sourceRef="ScriptTask_1swzdpw" targetRef="EndEvent_1jx3026" />
25 <bpmn:endEvent id="EndEvent_05h01gx" name="End">
26 <bpmn:incoming>Flow_1032bi1</bpmn:incoming>
28 <bpmn:scriptTask id="ScriptTask_1ssh2l9" name="Prepare Update Resource Oper Status((finish)" scriptFormat="groovy">
29 <bpmn:incoming>SequenceFlow_0kixzdj</bpmn:incoming>
30 <bpmn:outgoing>SequenceFlow_1qv8qw1</bpmn:outgoing>
31 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
32 def runScript = new DoActivateTnNssi()
33 runScript.prepareUpdateJobStatus(execution,"FINISHED","100","Activate or Deactivate successfully")</bpmn:script>
35 <bpmn:sequenceFlow id="SequenceFlow_03s744c" sourceRef="StartEvent_1nbljfd" targetRef="ScriptTask_1tc44ge" />
36 <bpmn:sequenceFlow id="SequenceFlow_1qv8qw1" sourceRef="ScriptTask_1ssh2l9" targetRef="Activity_0nhxd67" />
37 <bpmn:scriptTask id="ScriptTask_19uxoi8" name="Update AAI Status" scriptFormat="groovy">
38 <bpmn:incoming>SequenceFlow_1jdb2oq</bpmn:incoming>
39 <bpmn:incoming>Flow_0b2uim4</bpmn:incoming>
40 <bpmn:outgoing>SequenceFlow_0kixzdj</bpmn:outgoing>
41 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
42 def actionType = execution.getVariable("actionType")
43 def runScript = new DoActivateTnNssi()
44 def orchStatus = runScript.getOrchStatusBasedOnActionType(actionType)
45 execution.setVariable("orchestrationStatus", orchStatus)
46 runScript.updateAAIOrchStatus(execution)</bpmn:script>
48 <bpmn:sequenceFlow id="SequenceFlow_0kixzdj" sourceRef="ScriptTask_19uxoi8" targetRef="ScriptTask_1ssh2l9" />
49 <bpmn:scriptTask id="Activity_1tw8eyy" name="PreProcess SDNC Activate or Deactivate TN NSSI Request" scriptFormat="groovy">
50 <bpmn:incoming>Flow_0046aj5</bpmn:incoming>
51 <bpmn:outgoing>Flow_0cpctye</bpmn:outgoing>
52 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
53 def runScript = new DoActivateTnNssi()
54 runScript.preprocessSdncActOrDeactTnNssiRequest(execution)</bpmn:script>
56 <bpmn:sequenceFlow id="Flow_0cpctye" sourceRef="Activity_1tw8eyy" targetRef="Activity_0p20esb" />
57 <bpmn:callActivity id="Activity_0p20esb" name="Call SDNC Adapter: Activate/Deactivate TN NSSI" calledElement="sdncAdapter">
58 <bpmn:extensionElements>
59 <camunda:in source="TNNSSMF_SDNCRequest" target="sdncAdapterWorkflowRequest" />
60 <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />
61 <camunda:in source="msoRequestId" target="mso-request-id" />
62 <camunda:in source="sliceServiceInstanceId" target="mso-service-instance-id" />
63 <camunda:out source="WorkflowException" target="WorkflowException" />
64 <camunda:out source="sdncAdapterResponse" target="TNNSSMF_SDNCAdapterResponse" />
65 <camunda:out source="SDNCA_SuccessIndicator" target="SDNCA_SuccessIndicator" />
66 </bpmn:extensionElements>
67 <bpmn:incoming>Flow_0cpctye</bpmn:incoming>
68 <bpmn:outgoing>Flow_0fuabjs</bpmn:outgoing>
70 <bpmn:sequenceFlow id="Flow_0fuabjs" sourceRef="Activity_0p20esb" targetRef="Activity_0phv8e5" />
71 <bpmn:scriptTask id="Activity_0phv8e5" name="Postprocess SDNC Activate/Deactivate TN NSSI Request" scriptFormat="groovy">
72 <bpmn:incoming>Flow_0fuabjs</bpmn:incoming>
73 <bpmn:outgoing>SequenceFlow_1jdb2oq</bpmn:outgoing>
74 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
76 String response = execution.getVariable("TNNSSMF_SDNCAdapterResponse")
78 def runScript = new DoActivateTnNssi()
79 runScript.validateSDNCResponse(execution, response)</bpmn:script>
81 <bpmn:sequenceFlow id="SequenceFlow_1jdb2oq" sourceRef="Activity_0phv8e5" targetRef="ScriptTask_19uxoi8" />
82 <bpmn:scriptTask id="ScriptTask_1tc44ge" name="PreProcess Incoming Request" scriptFormat="groovy">
83 <bpmn:incoming>SequenceFlow_03s744c</bpmn:incoming>
84 <bpmn:outgoing>SequenceFlow_07e12rt</bpmn:outgoing>
85 <bpmn:script>import org.onap.so.bpmn.infrastructure.scripts.*
86 def runScript = new DoActivateTnNssi()
87 runScript.preProcessRequest(execution)</bpmn:script>
89 <bpmn:sequenceFlow id="SequenceFlow_07e12rt" sourceRef="ScriptTask_1tc44ge" targetRef="Gateway_1v41rsb" />
90 <bpmn:serviceTask id="Activity_0nhxd67" name="Update Resource Operation Status">
91 <bpmn:extensionElements>
94 <camunda:inputParameter name="url">${dbAdapterEndpoint}</camunda:inputParameter>
95 <camunda:inputParameter name="headers">
97 <camunda:entry key="content-type">application/soap+xml</camunda:entry>
98 <camunda:entry key="Authorization">Basic YnBlbDpwYXNzd29yZDEk</camunda:entry>
100 </camunda:inputParameter>
101 <camunda:inputParameter name="payload">${updateResourceOperationStatus}</camunda:inputParameter>
102 <camunda:inputParameter name="method">POST</camunda:inputParameter>
103 <camunda:outputParameter name="NSSMF_dbResponseCode">${statusCode}</camunda:outputParameter>
104 <camunda:outputParameter name="NSSMF_dbResponse">${response}</camunda:outputParameter>
105 </camunda:inputOutput>
106 <camunda:connectorId>http-connector</camunda:connectorId>
108 </bpmn:extensionElements>
109 <bpmn:incoming>SequenceFlow_1qv8qw1</bpmn:incoming>
110 <bpmn:outgoing>Flow_1032bi1</bpmn:outgoing>
112 <bpmn:sequenceFlow id="Flow_1032bi1" sourceRef="Activity_0nhxd67" targetRef="EndEvent_05h01gx" />
113 <bpmn:exclusiveGateway id="Gateway_1v41rsb" name="Enable SDNC?">
114 <bpmn:incoming>SequenceFlow_07e12rt</bpmn:incoming>
115 <bpmn:outgoing>Flow_0046aj5</bpmn:outgoing>
116 <bpmn:outgoing>Flow_0b2uim4</bpmn:outgoing>
117 </bpmn:exclusiveGateway>
118 <bpmn:sequenceFlow id="Flow_0046aj5" name="Yes" sourceRef="Gateway_1v41rsb" targetRef="Activity_1tw8eyy">
119 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">#{(execution.getVariable("enableSdnc" ) == true)}</bpmn:conditionExpression>
121 <bpmn:sequenceFlow id="Flow_0b2uim4" name="No" sourceRef="Gateway_1v41rsb" targetRef="ScriptTask_19uxoi8" />
123 <bpmn:message id="Message_0c4b2r5" name="SliceServiceTask" />
124 <bpmn:error id="Error_03akl5v" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
125 <bpmn:error id="Error_0p2naox" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
126 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
127 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DoActivateTransportNSSI">
128 <bpmndi:BPMNEdge id="Flow_1032bi1_di" bpmnElement="Flow_1032bi1">
129 <di:waypoint x="1040" y="380" />
130 <di:waypoint x="1192" y="380" />
132 <bpmndi:BPMNEdge id="SequenceFlow_07e12rt_di" bpmnElement="SequenceFlow_07e12rt">
133 <di:waypoint x="385" y="121" />
134 <di:waypoint x="465" y="121" />
136 <bpmndi:BPMNEdge id="Flow_1jdb2oq_di" bpmnElement="SequenceFlow_1jdb2oq">
137 <di:waypoint x="1210" y="121" />
138 <di:waypoint x="1310" y="121" />
139 <di:waypoint x="1310" y="260" />
140 <di:waypoint x="490" y="260" />
141 <di:waypoint x="490" y="340" />
143 <bpmndi:BPMNEdge id="Flow_0fuabjs_di" bpmnElement="Flow_0fuabjs">
144 <di:waypoint x="990" y="121" />
145 <di:waypoint x="1089" y="121" />
147 <bpmndi:BPMNEdge id="Flow_0cpctye_di" bpmnElement="Flow_0cpctye">
148 <di:waypoint x="730" y="121" />
149 <di:waypoint x="869" y="121" />
151 <bpmndi:BPMNEdge id="SequenceFlow_0kixzdj_di" bpmnElement="SequenceFlow_0kixzdj">
152 <di:waypoint x="540" y="380" />
153 <di:waypoint x="685" y="380" />
155 <bpmndi:BPMNEdge id="SequenceFlow_1qv8qw1_di" bpmnElement="SequenceFlow_1qv8qw1">
156 <di:waypoint x="785" y="380" />
157 <di:waypoint x="940" y="380" />
159 <bpmndi:BPMNEdge id="SequenceFlow_03s744c_di" bpmnElement="SequenceFlow_03s744c">
160 <di:waypoint x="214" y="121" />
161 <di:waypoint x="285" y="121" />
163 <bpmndi:BPMNEdge id="Flow_0046aj5_di" bpmnElement="Flow_0046aj5">
164 <di:waypoint x="515" y="121" />
165 <di:waypoint x="609" y="121" />
167 <dc:Bounds x="553" y="103" width="19" height="14" />
170 <bpmndi:BPMNEdge id="Flow_0b2uim4_di" bpmnElement="Flow_0b2uim4">
171 <di:waypoint x="490" y="146" />
172 <di:waypoint x="490" y="340" />
174 <dc:Bounds x="498" y="166" width="14" height="14" />
177 <bpmndi:BPMNShape id="StartEvent_1nbljfd_di" bpmnElement="StartEvent_1nbljfd">
178 <dc:Bounds x="178" y="103" width="36" height="36" />
180 <dc:Bounds x="163" y="146" width="81" height="53" />
183 <bpmndi:BPMNShape id="EndEvent_05h01gx_di" bpmnElement="EndEvent_05h01gx">
184 <dc:Bounds x="1192" y="362" width="36" height="36" />
186 <dc:Bounds x="1200" y="405" width="20" height="14" />
189 <bpmndi:BPMNShape id="Activity_0nhxd67_di" bpmnElement="Activity_0nhxd67">
190 <dc:Bounds x="940" y="340" width="100" height="80" />
192 <bpmndi:BPMNShape id="ScriptTask_1ssh2l9_di" bpmnElement="ScriptTask_1ssh2l9">
193 <dc:Bounds x="685" y="340" width="100" height="80" />
195 <bpmndi:BPMNShape id="Activity_0phv8e5_di" bpmnElement="Activity_0phv8e5">
196 <dc:Bounds x="1089" y="74" width="121" height="94" />
198 <bpmndi:BPMNShape id="Activity_0p20esb_di" bpmnElement="Activity_0p20esb">
199 <dc:Bounds x="869" y="74" width="121" height="94" />
201 <bpmndi:BPMNShape id="Activity_1tw8eyy_di" bpmnElement="Activity_1tw8eyy">
202 <dc:Bounds x="609" y="74" width="121" height="94" />
204 <bpmndi:BPMNShape id="Gateway_1v41rsb_di" bpmnElement="Gateway_1v41rsb" isMarkerVisible="true">
205 <dc:Bounds x="465" y="96" width="50" height="50" />
207 <dc:Bounds x="453" y="73" width="75" height="14" />
210 <bpmndi:BPMNShape id="ScriptTask_19uxoi8_di" bpmnElement="ScriptTask_19uxoi8">
211 <dc:Bounds x="440" y="340" width="100" height="80" />
213 <bpmndi:BPMNShape id="SubProcess_1yv9i68_di" bpmnElement="SubProcess_1yv9i68" isExpanded="true">
214 <dc:Bounds x="685" y="1080" width="781" height="196" />
216 <bpmndi:BPMNEdge id="SequenceFlow_08mlzwz_di" bpmnElement="SequenceFlow_08mlzwz">
217 <di:waypoint x="1079" y="1184" />
218 <di:waypoint x="1353" y="1184" />
220 <bpmndi:BPMNEdge id="SequenceFlow_1w67v6s_di" bpmnElement="SequenceFlow_1w67v6s">
221 <di:waypoint x="751" y="1184" />
222 <di:waypoint x="979" y="1184" />
224 <bpmndi:BPMNShape id="StartEvent_1omdx56_di" bpmnElement="StartEvent_1omdx56">
225 <dc:Bounds x="715" y="1166" width="36" height="36" />
227 <bpmndi:BPMNShape id="EndEvent_1jx3026_di" bpmnElement="EndEvent_1jx3026">
228 <dc:Bounds x="1353" y="1166" width="36" height="36" />
230 <bpmndi:BPMNShape id="ScriptTask_1swzdpw_di" bpmnElement="ScriptTask_1swzdpw">
231 <dc:Bounds x="979" y="1144" width="100" height="80" />
233 <bpmndi:BPMNShape id="ScriptTask_1tc44ge_di" bpmnElement="ScriptTask_1tc44ge">
234 <dc:Bounds x="285" y="81" width="100" height="80" />
237 </bpmndi:BPMNDiagram>