Merge "add junit coverage"
[so.git] / bpmn / so-bpmn-building-blocks / src / main / resources / subprocess / BuildingBlock / ActivateVfModuleBB.bpmn
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>
6     </bpmn:startEvent>
7     <bpmn:sequenceFlow id="SequenceFlow_0ieafii" sourceRef="ActivateVfModuleBB_Start" targetRef="CheckAuditVariable" />
8     <bpmn:endEvent id="ActivateVfModuleBB_End">
9       <bpmn:incoming>SequenceFlow_0xsp0pv</bpmn:incoming>
10     </bpmn:endEvent>
11     <bpmn:serviceTask id="ActivateVfModule" name="&#10;SDNC&#10;Activate&#10;(vf module)&#10;" camunda:expression="${SDNCActivateTasks.activateVfModule(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
12       <bpmn:incoming>SequenceFlow_1b63lv4</bpmn:incoming>
13       <bpmn:outgoing>SequenceFlow_1a495wm</bpmn:outgoing>
14     </bpmn:serviceTask>
15     <bpmn:serviceTask id="UpdateVfModuleActiveStatus" name="&#10;AAI&#10;Update&#10;(vf module)&#10;" camunda:expression="${AAIUpdateTasks.updateOrchestrationStatusActivateVfModule(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
16       <bpmn:incoming>SequenceFlow_1j4x1ej</bpmn:incoming>
17       <bpmn:outgoing>SequenceFlow_0xsp0pv</bpmn:outgoing>
18     </bpmn:serviceTask>
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>
29     </bpmn:callActivity>
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(&#34;gBuildingBlockExecution&#34;)))}">
34       <bpmn:incoming>SequenceFlow_0ghzwlo</bpmn:incoming>
35       <bpmn:outgoing>SequenceFlow_0xndboi</bpmn:outgoing>
36     </bpmn:serviceTask>
37     <bpmn:serviceTask id="Audit_AAI_Inventory" name="Validate A&#38;AI Inventory" camunda:type="external" camunda:topic="InventoryAddAudit">
38       <bpmn:incoming>SequenceFlow_0xndboi</bpmn:incoming>
39       <bpmn:outgoing>SequenceFlow_0l8684g</bpmn:outgoing>
40     </bpmn:serviceTask>
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>
44     </bpmn:sequenceFlow>
45     <bpmn:serviceTask id="CheckAuditVariable" name="Check Audit Variable" camunda:expression="${AuditTasks.isAuditNeeded(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
46       <bpmn:incoming>SequenceFlow_0ieafii</bpmn:incoming>
47       <bpmn:outgoing>SequenceFlow_1xqyur9</bpmn:outgoing>
48     </bpmn:serviceTask>
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" />
55       </bpmn:startEvent>
56       <bpmn:endEvent id="EndEvent_067jv1n">
57         <bpmn:incoming>SequenceFlow_0l4jzc5</bpmn:incoming>
58       </bpmn:endEvent>
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(&#34;gBuildingBlockExecution&#34;)), false)}">
62         <bpmn:incoming>SequenceFlow_19gbhlj</bpmn:incoming>
63         <bpmn:outgoing>SequenceFlow_0l4jzc5</bpmn:outgoing>
64       </bpmn:serviceTask>
65     </bpmn:subProcess>
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" />
77   </bpmn:process>
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" />
85         <bpmndi:BPMNLabel>
86           <dc:Bounds x="58" y="270" width="90" height="12" />
87         </bpmndi:BPMNLabel>
88       </bpmndi:BPMNShape>
89       <bpmndi:BPMNEdge id="SequenceFlow_0ieafii_di" bpmnElement="SequenceFlow_0ieafii">
90         <di:waypoint x="192" y="198" />
91         <di:waypoint x="272" y="198" />
92         <bpmndi:BPMNLabel>
93           <dc:Bounds x="116" y="231" width="90" height="12" />
94         </bpmndi:BPMNLabel>
95       </bpmndi:BPMNEdge>
96       <bpmndi:BPMNShape id="EndEvent_1v967li_di" bpmnElement="ActivateVfModuleBB_End">
97         <dc:Bounds x="1475" y="181" width="36" height="36" />
98         <bpmndi:BPMNLabel>
99           <dc:Bounds x="1235" y="275" width="90" height="12" />
100         </bpmndi:BPMNLabel>
101       </bpmndi:BPMNShape>
102       <bpmndi:BPMNShape id="ServiceTask_0hawa84_di" bpmnElement="ActivateVfModule">
103         <dc:Bounds x="1029" y="158" width="100" height="80" />
104       </bpmndi:BPMNShape>
105       <bpmndi:BPMNShape id="ServiceTask_175e9ul_di" bpmnElement="UpdateVfModuleActiveStatus">
106         <dc:Bounds x="1285" y="158" width="100" height="80" />
107       </bpmndi:BPMNShape>
108       <bpmndi:BPMNEdge id="SequenceFlow_0xsp0pv_di" bpmnElement="SequenceFlow_0xsp0pv">
109         <di:waypoint x="1385" y="198" />
110         <di:waypoint x="1475" y="199" />
111         <bpmndi:BPMNLabel>
112           <dc:Bounds x="1314" y="231.5" width="90" height="12" />
113         </bpmndi:BPMNLabel>
114       </bpmndi:BPMNEdge>
115       <bpmndi:BPMNShape id="CallActivity_03jkesd_di" bpmnElement="CallActivity_sdncHandler">
116         <dc:Bounds x="1157" y="158" width="100" height="80" />
117       </bpmndi:BPMNShape>
118       <bpmndi:BPMNEdge id="SequenceFlow_1a495wm_di" bpmnElement="SequenceFlow_1a495wm">
119         <di:waypoint x="1129" y="198" />
120         <di:waypoint x="1157" y="198" />
121         <bpmndi:BPMNLabel>
122           <dc:Bounds x="1027" y="231" width="90" height="12" />
123         </bpmndi:BPMNLabel>
124       </bpmndi:BPMNEdge>
125       <bpmndi:BPMNEdge id="SequenceFlow_1j4x1ej_di" bpmnElement="SequenceFlow_1j4x1ej">
126         <di:waypoint x="1257" y="198" />
127         <di:waypoint x="1285" y="198" />
128         <bpmndi:BPMNLabel>
129           <dc:Bounds x="1155" y="231" width="90" height="12" />
130         </bpmndi:BPMNLabel>
131       </bpmndi:BPMNEdge>
132       <bpmndi:BPMNEdge id="SequenceFlow_0xndboi_di" bpmnElement="SequenceFlow_0xndboi">
133         <di:waypoint x="589" y="121" />
134         <di:waypoint x="680" y="121" />
135         <bpmndi:BPMNLabel>
136           <dc:Bounds x="457" y="153.5" width="90" height="13" />
137         </bpmndi:BPMNLabel>
138       </bpmndi:BPMNEdge>
139       <bpmndi:BPMNShape id="ServiceTask_0krf1ur_di" bpmnElement="Setup_AAI_Inventory_Audit">
140         <dc:Bounds x="489" y="81" width="100" height="80" />
141       </bpmndi:BPMNShape>
142       <bpmndi:BPMNShape id="ServiceTask_08rxjeb_di" bpmnElement="Audit_AAI_Inventory">
143         <dc:Bounds x="680" y="81" width="100" height="80" />
144       </bpmndi:BPMNShape>
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" />
150         <bpmndi:BPMNLabel>
151           <dc:Bounds x="435" y="240" width="15" height="14" />
152         </bpmndi:BPMNLabel>
153       </bpmndi:BPMNEdge>
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" />
158         <bpmndi:BPMNLabel>
159           <dc:Bounds x="434" y="131" width="18" height="14" />
160         </bpmndi:BPMNLabel>
161       </bpmndi:BPMNEdge>
162       <bpmndi:BPMNShape id="ServiceTask_1eg5ryx_di" bpmnElement="CheckAuditVariable">
163         <dc:Bounds x="272" y="158" width="100" height="80" />
164       </bpmndi:BPMNShape>
165       <bpmndi:BPMNEdge id="SequenceFlow_1xqyur9_di" bpmnElement="SequenceFlow_1xqyur9">
166         <di:waypoint x="372" y="198" />
167         <di:waypoint x="401" y="198" />
168         <bpmndi:BPMNLabel>
169           <dc:Bounds x="270.5" y="230.5" width="90" height="13" />
170         </bpmndi:BPMNLabel>
171       </bpmndi:BPMNEdge>
172       <bpmndi:BPMNEdge id="SequenceFlow_1b63lv4_di" bpmnElement="SequenceFlow_1b63lv4">
173         <di:waypoint x="977" y="198" />
174         <di:waypoint x="1029" y="198" />
175         <bpmndi:BPMNLabel>
176           <dc:Bounds x="887" y="231" width="90" height="12" />
177         </bpmndi:BPMNLabel>
178       </bpmndi:BPMNEdge>
179       <bpmndi:BPMNShape id="SubProcess_0mbkb7v_di" bpmnElement="SubProcess_0bpsptg" isExpanded="true">
180         <dc:Bounds x="364" y="395" width="350" height="200" />
181       </bpmndi:BPMNShape>
182       <bpmndi:BPMNShape id="StartEvent_12r96di_di" bpmnElement="catchInventoryException">
183         <dc:Bounds x="395" y="478" width="36" height="36" />
184         <bpmndi:BPMNLabel>
185           <dc:Bounds x="341.15269461077844" y="571.6127744510978" width="0" height="12" />
186         </bpmndi:BPMNLabel>
187       </bpmndi:BPMNShape>
188       <bpmndi:BPMNShape id="EndEvent_067jv1n_di" bpmnElement="EndEvent_067jv1n">
189         <dc:Bounds x="643" y="478" width="36" height="36" />
190         <bpmndi:BPMNLabel>
191           <dc:Bounds x="590.1526946107784" y="572" width="0" height="12" />
192         </bpmndi:BPMNLabel>
193       </bpmndi:BPMNShape>
194       <bpmndi:BPMNEdge id="SequenceFlow_19gbhlj_di" bpmnElement="SequenceFlow_19gbhlj">
195         <di:waypoint x="431" y="496" />
196         <di:waypoint x="486" y="496" />
197         <bpmndi:BPMNLabel>
198           <dc:Bounds x="387.5" y="529" width="0" height="12" />
199         </bpmndi:BPMNLabel>
200       </bpmndi:BPMNEdge>
201       <bpmndi:BPMNEdge id="SequenceFlow_0l4jzc5_di" bpmnElement="SequenceFlow_0l4jzc5">
202         <di:waypoint x="586" y="496" />
203         <di:waypoint x="643" y="496" />
204         <bpmndi:BPMNLabel>
205           <dc:Bounds x="543.5" y="529" width="0" height="12" />
206         </bpmndi:BPMNLabel>
207       </bpmndi:BPMNEdge>
208       <bpmndi:BPMNShape id="ServiceTask_08xffml_di" bpmnElement="processAuditException">
209         <dc:Bounds x="486" y="456" width="100" height="80" />
210       </bpmndi:BPMNShape>
211       <bpmndi:BPMNShape id="InclusiveGateway_03pi9y4_di" bpmnElement="ExclusiveGateway_1v8bmbu">
212         <dc:Bounds x="401" y="173" width="50" height="50" />
213         <bpmndi:BPMNLabel>
214           <dc:Bounds x="453" y="192" width="75" height="14" />
215         </bpmndi:BPMNLabel>
216       </bpmndi:BPMNShape>
217       <bpmndi:BPMNShape id="InclusiveGateway_16ap4e3_di" bpmnElement="ExclusiveGateway_0sqvzll">
218         <dc:Bounds x="927" y="173" width="50" height="50" />
219         <bpmndi:BPMNLabel>
220           <dc:Bounds x="836" y="281" width="0" height="12" />
221         </bpmndi:BPMNLabel>
222       </bpmndi:BPMNShape>
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" />
227       </bpmndi:BPMNEdge>
228     </bpmndi:BPMNPlane>
229   </bpmndi:BPMNDiagram>
230 </bpmn:definitions>