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:di="http://www.omg.org/spec/DD/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" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="3.1.2">
3 <bpmn:process id="ActivateVfModuleBB" name="ActivateVfModuleBB" isExecutable="true">
4 <bpmn:startEvent id="ActivateVfModuleBB_Start">
5 <bpmn:outgoing>SequenceFlow_0ieafii</bpmn:outgoing>
7 <bpmn:sequenceFlow id="SequenceFlow_0ieafii" sourceRef="ActivateVfModuleBB_Start" targetRef="CheckAuditVariable" />
8 <bpmn:endEvent id="ActivateVfModuleBB_End">
9 <bpmn:incoming>SequenceFlow_0xsp0pv</bpmn:incoming>
11 <bpmn:serviceTask id="ActivateVfModule" name=" SDNC Activate (vf module) " camunda:expression="${SDNCActivateTasks.activateVfModule(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
12 <bpmn:incoming>SequenceFlow_1b63lv4</bpmn:incoming>
13 <bpmn:outgoing>SequenceFlow_1a495wm</bpmn:outgoing>
15 <bpmn:serviceTask id="UpdateVfModuleActiveStatus" name=" AAI Update (vf module) " camunda:expression="${AAIUpdateTasks.updateOrchestrationStatusActivateVfModule(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
16 <bpmn:incoming>SequenceFlow_1j4x1ej</bpmn:incoming>
17 <bpmn:outgoing>SequenceFlow_0xsp0pv</bpmn:outgoing>
19 <bpmn:sequenceFlow id="SequenceFlow_0xsp0pv" sourceRef="UpdateVfModuleActiveStatus" targetRef="ActivateVfModuleBB_End" />
20 <bpmn:callActivity id="CallActivity_sdncHandler" name="SDNC Activate (vfModule)" calledElement="SDNCHandler">
21 <bpmn:extensionElements>
22 <camunda:in source="SDNCRequest" target="SDNCRequest" />
23 <camunda:out source="SDNCResponse" target="SDNCResponse" />
24 <camunda:out source="WorkflowException" target="WorkflowException" />
25 <camunda:in source="mso-request-id" target="mso-request-id" />
26 </bpmn:extensionElements>
27 <bpmn:incoming>SequenceFlow_1a495wm</bpmn:incoming>
28 <bpmn:outgoing>SequenceFlow_1j4x1ej</bpmn:outgoing>
30 <bpmn:sequenceFlow id="SequenceFlow_1a495wm" sourceRef="ActivateVfModule" targetRef="CallActivity_sdncHandler" />
31 <bpmn:sequenceFlow id="SequenceFlow_1j4x1ej" sourceRef="CallActivity_sdncHandler" targetRef="UpdateVfModuleActiveStatus" />
32 <bpmn:sequenceFlow id="SequenceFlow_0xndboi" sourceRef="Setup_AAI_Inventory_Audit" targetRef="Audit_AAI_Inventory" />
33 <bpmn:serviceTask id="Setup_AAI_Inventory_Audit" name="Setup Inventory Audit Variable" camunda:expression="${AuditTasks.setupAuditVariable(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
34 <bpmn:incoming>SequenceFlow_0ghzwlo</bpmn:incoming>
35 <bpmn:outgoing>SequenceFlow_0xndboi</bpmn:outgoing>
37 <bpmn:serviceTask id="Audit_AAI_Inventory" name="Validate A&AI Inventory" camunda:type="external" camunda:topic="InventoryAddAudit">
38 <bpmn:incoming>SequenceFlow_0xndboi</bpmn:incoming>
39 <bpmn:outgoing>SequenceFlow_0l8684g</bpmn:outgoing>
41 <bpmn:sequenceFlow id="SequenceFlow_07ybdik" name="No" sourceRef="ExclusiveGateway_1v8bmbu" targetRef="ExclusiveGateway_0sqvzll" />
42 <bpmn:sequenceFlow id="SequenceFlow_0ghzwlo" name="Yes" sourceRef="ExclusiveGateway_1v8bmbu" targetRef="Setup_AAI_Inventory_Audit">
43 <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">${execution.getVariable("auditInventoryNeeded") == true}</bpmn:conditionExpression>
45 <bpmn:serviceTask id="CheckAuditVariable" name="Check Audit Variable" camunda:expression="${AuditTasks.isAuditNeeded(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}">
46 <bpmn:incoming>SequenceFlow_0ieafii</bpmn:incoming>
47 <bpmn:outgoing>SequenceFlow_1xqyur9</bpmn:outgoing>
49 <bpmn:sequenceFlow id="SequenceFlow_1xqyur9" sourceRef="CheckAuditVariable" targetRef="ExclusiveGateway_1v8bmbu" />
50 <bpmn:sequenceFlow id="SequenceFlow_1b63lv4" sourceRef="ExclusiveGateway_0sqvzll" targetRef="ActivateVfModule" />
51 <bpmn:subProcess id="SubProcess_0bpsptg" name="Audit Exception Sub Process" triggeredByEvent="true">
52 <bpmn:startEvent id="catchInventoryException">
53 <bpmn:outgoing>SequenceFlow_19gbhlj</bpmn:outgoing>
54 <bpmn:errorEventDefinition errorRef="Error_1s3kxze" />
56 <bpmn:endEvent id="EndEvent_067jv1n">
57 <bpmn:incoming>SequenceFlow_0l4jzc5</bpmn:incoming>
59 <bpmn:sequenceFlow id="SequenceFlow_19gbhlj" sourceRef="catchInventoryException" targetRef="processAuditException" />
60 <bpmn:sequenceFlow id="SequenceFlow_0l4jzc5" sourceRef="processAuditException" targetRef="EndEvent_067jv1n" />
61 <bpmn:serviceTask id="processAuditException" name="Proccess Error" camunda:expression="${ExceptionBuilder.processAuditException(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")), false)}">
62 <bpmn:incoming>SequenceFlow_19gbhlj</bpmn:incoming>
63 <bpmn:outgoing>SequenceFlow_0l4jzc5</bpmn:outgoing>
66 <bpmn:inclusiveGateway id="ExclusiveGateway_1v8bmbu" name="Audit Enabled?" default="SequenceFlow_07ybdik">
67 <bpmn:incoming>SequenceFlow_1xqyur9</bpmn:incoming>
68 <bpmn:outgoing>SequenceFlow_07ybdik</bpmn:outgoing>
69 <bpmn:outgoing>SequenceFlow_0ghzwlo</bpmn:outgoing>
70 </bpmn:inclusiveGateway>
71 <bpmn:inclusiveGateway id="ExclusiveGateway_0sqvzll">
72 <bpmn:incoming>SequenceFlow_07ybdik</bpmn:incoming>
73 <bpmn:incoming>SequenceFlow_0l8684g</bpmn:incoming>
74 <bpmn:outgoing>SequenceFlow_1b63lv4</bpmn:outgoing>
75 </bpmn:inclusiveGateway>
76 <bpmn:sequenceFlow id="SequenceFlow_0l8684g" sourceRef="Audit_AAI_Inventory" targetRef="ExclusiveGateway_0sqvzll" />
78 <bpmn:error id="Error_0q258vt" errorCode="7000" />
79 <bpmn:error id="Error_0zgccif" name="org.onap.so.adapters.inventory.create.InventoryException" errorCode="org.onap.so.adapters.inventory.create.InventoryException" />
80 <bpmn:error id="Error_1s3kxze" name="Error_3q664s5" errorCode="AAIInventoryFailure" />
81 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
82 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="ActivateVfModuleBB">
83 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="ActivateVfModuleBB_Start">
84 <dc:Bounds x="156" y="180" width="36" height="36" />
86 <dc:Bounds x="58" y="270" width="90" height="12" />
89 <bpmndi:BPMNEdge id="SequenceFlow_0ieafii_di" bpmnElement="SequenceFlow_0ieafii">
90 <di:waypoint x="192" y="198" />
91 <di:waypoint x="272" y="198" />
93 <dc:Bounds x="116" y="231" width="90" height="12" />
96 <bpmndi:BPMNShape id="EndEvent_1v967li_di" bpmnElement="ActivateVfModuleBB_End">
97 <dc:Bounds x="1475" y="181" width="36" height="36" />
99 <dc:Bounds x="1235" y="275" width="90" height="12" />
102 <bpmndi:BPMNShape id="ServiceTask_0hawa84_di" bpmnElement="ActivateVfModule">
103 <dc:Bounds x="1029" y="158" width="100" height="80" />
105 <bpmndi:BPMNShape id="ServiceTask_175e9ul_di" bpmnElement="UpdateVfModuleActiveStatus">
106 <dc:Bounds x="1285" y="158" width="100" height="80" />
108 <bpmndi:BPMNEdge id="SequenceFlow_0xsp0pv_di" bpmnElement="SequenceFlow_0xsp0pv">
109 <di:waypoint x="1385" y="198" />
110 <di:waypoint x="1475" y="199" />
112 <dc:Bounds x="1314" y="231.5" width="90" height="12" />
115 <bpmndi:BPMNShape id="CallActivity_03jkesd_di" bpmnElement="CallActivity_sdncHandler">
116 <dc:Bounds x="1157" y="158" width="100" height="80" />
118 <bpmndi:BPMNEdge id="SequenceFlow_1a495wm_di" bpmnElement="SequenceFlow_1a495wm">
119 <di:waypoint x="1129" y="198" />
120 <di:waypoint x="1157" y="198" />
122 <dc:Bounds x="1027" y="231" width="90" height="12" />
125 <bpmndi:BPMNEdge id="SequenceFlow_1j4x1ej_di" bpmnElement="SequenceFlow_1j4x1ej">
126 <di:waypoint x="1257" y="198" />
127 <di:waypoint x="1285" y="198" />
129 <dc:Bounds x="1155" y="231" width="90" height="12" />
132 <bpmndi:BPMNEdge id="SequenceFlow_0xndboi_di" bpmnElement="SequenceFlow_0xndboi">
133 <di:waypoint x="589" y="121" />
134 <di:waypoint x="680" y="121" />
136 <dc:Bounds x="457" y="153.5" width="90" height="13" />
139 <bpmndi:BPMNShape id="ServiceTask_0krf1ur_di" bpmnElement="Setup_AAI_Inventory_Audit">
140 <dc:Bounds x="489" y="81" width="100" height="80" />
142 <bpmndi:BPMNShape id="ServiceTask_08rxjeb_di" bpmnElement="Audit_AAI_Inventory">
143 <dc:Bounds x="680" y="81" width="100" height="80" />
145 <bpmndi:BPMNEdge id="SequenceFlow_07ybdik_di" bpmnElement="SequenceFlow_07ybdik">
146 <di:waypoint x="426" y="223" />
147 <di:waypoint x="426" y="261" />
148 <di:waypoint x="952" y="261" />
149 <di:waypoint x="952" y="223" />
151 <dc:Bounds x="435" y="240" width="15" height="14" />
154 <bpmndi:BPMNEdge id="SequenceFlow_0ghzwlo_di" bpmnElement="SequenceFlow_0ghzwlo">
155 <di:waypoint x="426" y="173" />
156 <di:waypoint x="426" y="121" />
157 <di:waypoint x="489" y="121" />
159 <dc:Bounds x="434" y="131" width="18" height="14" />
162 <bpmndi:BPMNShape id="ServiceTask_1eg5ryx_di" bpmnElement="CheckAuditVariable">
163 <dc:Bounds x="272" y="158" width="100" height="80" />
165 <bpmndi:BPMNEdge id="SequenceFlow_1xqyur9_di" bpmnElement="SequenceFlow_1xqyur9">
166 <di:waypoint x="372" y="198" />
167 <di:waypoint x="401" y="198" />
169 <dc:Bounds x="270.5" y="230.5" width="90" height="13" />
172 <bpmndi:BPMNEdge id="SequenceFlow_1b63lv4_di" bpmnElement="SequenceFlow_1b63lv4">
173 <di:waypoint x="977" y="198" />
174 <di:waypoint x="1029" y="198" />
176 <dc:Bounds x="887" y="231" width="90" height="12" />
179 <bpmndi:BPMNShape id="SubProcess_0mbkb7v_di" bpmnElement="SubProcess_0bpsptg" isExpanded="true">
180 <dc:Bounds x="364" y="395" width="350" height="200" />
182 <bpmndi:BPMNShape id="StartEvent_12r96di_di" bpmnElement="catchInventoryException">
183 <dc:Bounds x="395" y="478" width="36" height="36" />
185 <dc:Bounds x="341.15269461077844" y="571.6127744510978" width="0" height="12" />
188 <bpmndi:BPMNShape id="EndEvent_067jv1n_di" bpmnElement="EndEvent_067jv1n">
189 <dc:Bounds x="643" y="478" width="36" height="36" />
191 <dc:Bounds x="590.1526946107784" y="572" width="0" height="12" />
194 <bpmndi:BPMNEdge id="SequenceFlow_19gbhlj_di" bpmnElement="SequenceFlow_19gbhlj">
195 <di:waypoint x="431" y="496" />
196 <di:waypoint x="486" y="496" />
198 <dc:Bounds x="387.5" y="529" width="0" height="12" />
201 <bpmndi:BPMNEdge id="SequenceFlow_0l4jzc5_di" bpmnElement="SequenceFlow_0l4jzc5">
202 <di:waypoint x="586" y="496" />
203 <di:waypoint x="643" y="496" />
205 <dc:Bounds x="543.5" y="529" width="0" height="12" />
208 <bpmndi:BPMNShape id="ServiceTask_08xffml_di" bpmnElement="processAuditException">
209 <dc:Bounds x="486" y="456" width="100" height="80" />
211 <bpmndi:BPMNShape id="InclusiveGateway_03pi9y4_di" bpmnElement="ExclusiveGateway_1v8bmbu">
212 <dc:Bounds x="401" y="173" width="50" height="50" />
214 <dc:Bounds x="453" y="192" width="75" height="14" />
217 <bpmndi:BPMNShape id="InclusiveGateway_16ap4e3_di" bpmnElement="ExclusiveGateway_0sqvzll">
218 <dc:Bounds x="927" y="173" width="50" height="50" />
220 <dc:Bounds x="836" y="281" width="0" height="12" />
223 <bpmndi:BPMNEdge id="SequenceFlow_0l8684g_di" bpmnElement="SequenceFlow_0l8684g">
224 <di:waypoint x="780" y="121" />
225 <di:waypoint x="952" y="121" />
226 <di:waypoint x="952" y="173" />
229 </bpmndi:BPMNDiagram>