if audit fails write sub interface data to a ai
[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="1.7.1">
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_07ybdik</bpmn:incoming>
13       <bpmn:incoming>SequenceFlow_109oxx2</bpmn:incoming>
14       <bpmn:incoming>SequenceFlow_0arwo1o</bpmn:incoming>
15       <bpmn:outgoing>SequenceFlow_1a495wm</bpmn:outgoing>
16     </bpmn:serviceTask>
17     <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;)))}">
18       <bpmn:incoming>SequenceFlow_1j4x1ej</bpmn:incoming>
19       <bpmn:outgoing>SequenceFlow_0xsp0pv</bpmn:outgoing>
20     </bpmn:serviceTask>
21     <bpmn:sequenceFlow id="SequenceFlow_0xsp0pv" sourceRef="UpdateVfModuleActiveStatus" targetRef="ActivateVfModuleBB_End" />
22     <bpmn:callActivity id="CallActivity_sdncHandler" name="SDNC Activate (vfModule)" calledElement="SDNCHandler">
23       <bpmn:extensionElements>
24         <camunda:in source="SDNCRequest" target="SDNCRequest" />
25         <camunda:out source="SDNCResponse" target="SDNCResponse" />
26         <camunda:out source="WorkflowException" target="WorkflowException" />
27         <camunda:in source="mso-request-id" target="mso-request-id" />
28       </bpmn:extensionElements>
29       <bpmn:incoming>SequenceFlow_1a495wm</bpmn:incoming>
30       <bpmn:outgoing>SequenceFlow_1j4x1ej</bpmn:outgoing>
31     </bpmn:callActivity>
32     <bpmn:sequenceFlow id="SequenceFlow_1a495wm" sourceRef="ActivateVfModule" targetRef="CallActivity_sdncHandler" />
33     <bpmn:sequenceFlow id="SequenceFlow_1j4x1ej" sourceRef="CallActivity_sdncHandler" targetRef="UpdateVfModuleActiveStatus" />
34     <bpmn:sequenceFlow id="SequenceFlow_0xndboi" sourceRef="Setup_AAI_Inventory_Audit" targetRef="Audit_AAI_Inventory" />
35     <bpmn:serviceTask id="Setup_AAI_Inventory_Audit" name="Setup Inventory Audit Variable" camunda:expression="${AuditTasks.setupAuditVariable(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
36       <bpmn:incoming>SequenceFlow_0ghzwlo</bpmn:incoming>
37       <bpmn:outgoing>SequenceFlow_0xndboi</bpmn:outgoing>
38     </bpmn:serviceTask>
39     <bpmn:serviceTask id="Audit_AAI_Inventory" name="Validate A&#38;AI Inventory" camunda:type="external" camunda:topic="InventoryAddAudit">
40       <bpmn:incoming>SequenceFlow_0xndboi</bpmn:incoming>
41       <bpmn:outgoing>SequenceFlow_0ee42yq</bpmn:outgoing>
42     </bpmn:serviceTask>
43     <bpmn:exclusiveGateway id="ExclusiveGateway_1v8bmbu" default="SequenceFlow_07ybdik">
44       <bpmn:incoming>SequenceFlow_1xqyur9</bpmn:incoming>
45       <bpmn:outgoing>SequenceFlow_07ybdik</bpmn:outgoing>
46       <bpmn:outgoing>SequenceFlow_0ghzwlo</bpmn:outgoing>
47     </bpmn:exclusiveGateway>
48     <bpmn:sequenceFlow id="SequenceFlow_07ybdik" sourceRef="ExclusiveGateway_1v8bmbu" targetRef="ActivateVfModule" />
49     <bpmn:sequenceFlow id="SequenceFlow_0ghzwlo" sourceRef="ExclusiveGateway_1v8bmbu" targetRef="Setup_AAI_Inventory_Audit">
50       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("auditInventoryNeeded") == true}]]></bpmn:conditionExpression>
51     </bpmn:sequenceFlow>
52     <bpmn:sequenceFlow id="SequenceFlow_0ee42yq" sourceRef="Audit_AAI_Inventory" targetRef="ExclusiveGateway_1h8avxn" />
53     <bpmn:serviceTask id="CheckAuditVariable" name="Check Audit Variable" camunda:expression="${AuditTasks.isAuditNeeded(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
54       <bpmn:incoming>SequenceFlow_0ieafii</bpmn:incoming>
55       <bpmn:outgoing>SequenceFlow_1xqyur9</bpmn:outgoing>
56     </bpmn:serviceTask>
57     <bpmn:sequenceFlow id="SequenceFlow_1xqyur9" sourceRef="CheckAuditVariable" targetRef="ExclusiveGateway_1v8bmbu" />
58     <bpmn:exclusiveGateway id="ExclusiveGateway_1h8avxn" default="SequenceFlow_1bo83qk">
59       <bpmn:incoming>SequenceFlow_0ee42yq</bpmn:incoming>
60       <bpmn:outgoing>SequenceFlow_109oxx2</bpmn:outgoing>
61       <bpmn:outgoing>SequenceFlow_1bo83qk</bpmn:outgoing>
62     </bpmn:exclusiveGateway>
63     <bpmn:sequenceFlow id="SequenceFlow_109oxx2" sourceRef="ExclusiveGateway_1h8avxn" targetRef="ActivateVfModule">
64       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("auditIsSuccessful")== true }]]></bpmn:conditionExpression>
65     </bpmn:sequenceFlow>
66     <bpmn:sequenceFlow id="SequenceFlow_1bo83qk" name="If Audit Fails" sourceRef="ExclusiveGateway_1h8avxn" targetRef="Create_AAI_Inventory" />
67     <bpmn:sequenceFlow id="SequenceFlow_0arwo1o" sourceRef="Create_AAI_Inventory" targetRef="ActivateVfModule" />
68     <bpmn:serviceTask id="Create_AAI_Inventory" name="Create A&#38;AI Inventory" camunda:type="external" camunda:topic="InventoryCreate">
69       <bpmn:incoming>SequenceFlow_1bo83qk</bpmn:incoming>
70       <bpmn:outgoing>SequenceFlow_0arwo1o</bpmn:outgoing>
71     </bpmn:serviceTask>
72   </bpmn:process>
73   <bpmn:error id="Error_0q258vt" errorCode="7000" />
74   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
75     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="ActivateVfModuleBB">
76       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="ActivateVfModuleBB_Start">
77         <dc:Bounds x="73" y="102" width="36" height="36" />
78         <bpmndi:BPMNLabel>
79           <dc:Bounds x="46" y="138" width="90" height="12" />
80         </bpmndi:BPMNLabel>
81       </bpmndi:BPMNShape>
82       <bpmndi:BPMNEdge id="SequenceFlow_0ieafii_di" bpmnElement="SequenceFlow_0ieafii">
83         <di:waypoint xsi:type="dc:Point" x="109" y="120" />
84         <di:waypoint xsi:type="dc:Point" x="161" y="120" />
85         <bpmndi:BPMNLabel>
86           <dc:Bounds x="90" y="99" width="90" height="12" />
87         </bpmndi:BPMNLabel>
88       </bpmndi:BPMNEdge>
89       <bpmndi:BPMNShape id="EndEvent_1v967li_di" bpmnElement="ActivateVfModuleBB_End">
90         <dc:Bounds x="1104" y="102" width="36" height="36" />
91         <bpmndi:BPMNLabel>
92           <dc:Bounds x="935" y="142" width="90" height="12" />
93         </bpmndi:BPMNLabel>
94       </bpmndi:BPMNShape>
95       <bpmndi:BPMNShape id="ServiceTask_0hawa84_di" bpmnElement="ActivateVfModule">
96         <dc:Bounds x="647" y="80" width="100" height="80" />
97       </bpmndi:BPMNShape>
98       <bpmndi:BPMNShape id="ServiceTask_175e9ul_di" bpmnElement="UpdateVfModuleActiveStatus">
99         <dc:Bounds x="952" y="80" width="100" height="80" />
100       </bpmndi:BPMNShape>
101       <bpmndi:BPMNEdge id="SequenceFlow_0xsp0pv_di" bpmnElement="SequenceFlow_0xsp0pv">
102         <di:waypoint xsi:type="dc:Point" x="1052" y="120" />
103         <di:waypoint xsi:type="dc:Point" x="1104" y="120" />
104         <bpmndi:BPMNLabel>
105           <dc:Bounds x="1033" y="99" width="90" height="12" />
106         </bpmndi:BPMNLabel>
107       </bpmndi:BPMNEdge>
108       <bpmndi:BPMNShape id="CallActivity_03jkesd_di" bpmnElement="CallActivity_sdncHandler">
109         <dc:Bounds x="794" y="80" width="100" height="80" />
110       </bpmndi:BPMNShape>
111       <bpmndi:BPMNEdge id="SequenceFlow_1a495wm_di" bpmnElement="SequenceFlow_1a495wm">
112         <di:waypoint xsi:type="dc:Point" x="747" y="120" />
113         <di:waypoint xsi:type="dc:Point" x="794" y="120" />
114         <bpmndi:BPMNLabel>
115           <dc:Bounds x="725.5" y="99" width="90" height="12" />
116         </bpmndi:BPMNLabel>
117       </bpmndi:BPMNEdge>
118       <bpmndi:BPMNEdge id="SequenceFlow_1j4x1ej_di" bpmnElement="SequenceFlow_1j4x1ej">
119         <di:waypoint xsi:type="dc:Point" x="894" y="120" />
120         <di:waypoint xsi:type="dc:Point" x="952" y="120" />
121         <bpmndi:BPMNLabel>
122           <dc:Bounds x="878" y="99" width="90" height="12" />
123         </bpmndi:BPMNLabel>
124       </bpmndi:BPMNEdge>
125       <bpmndi:BPMNEdge id="SequenceFlow_0xndboi_di" bpmnElement="SequenceFlow_0xndboi">
126         <di:waypoint xsi:type="dc:Point" x="365" y="256" />
127         <di:waypoint xsi:type="dc:Point" x="408" y="256" />
128         <bpmndi:BPMNLabel>
129           <dc:Bounds x="341.5" y="234.5" width="90" height="13" />
130         </bpmndi:BPMNLabel>
131       </bpmndi:BPMNEdge>
132       <bpmndi:BPMNShape id="ServiceTask_0krf1ur_di" bpmnElement="Setup_AAI_Inventory_Audit">
133         <dc:Bounds x="265" y="216" width="100" height="80" />
134       </bpmndi:BPMNShape>
135       <bpmndi:BPMNShape id="ServiceTask_08rxjeb_di" bpmnElement="Audit_AAI_Inventory">
136         <dc:Bounds x="408" y="216" width="100" height="80" />
137       </bpmndi:BPMNShape>
138       <bpmndi:BPMNShape id="ExclusiveGateway_1v8bmbu_di" bpmnElement="ExclusiveGateway_1v8bmbu" isMarkerVisible="true">
139         <dc:Bounds x="290" y="95" width="50" height="50" />
140         <bpmndi:BPMNLabel>
141           <dc:Bounds x="315" y="148" width="0" height="13" />
142         </bpmndi:BPMNLabel>
143       </bpmndi:BPMNShape>
144       <bpmndi:BPMNEdge id="SequenceFlow_07ybdik_di" bpmnElement="SequenceFlow_07ybdik">
145         <di:waypoint xsi:type="dc:Point" x="340" y="120" />
146         <di:waypoint xsi:type="dc:Point" x="647" y="120" />
147         <bpmndi:BPMNLabel>
148           <dc:Bounds x="448.5" y="98.5" width="90" height="13" />
149         </bpmndi:BPMNLabel>
150       </bpmndi:BPMNEdge>
151       <bpmndi:BPMNEdge id="SequenceFlow_0ghzwlo_di" bpmnElement="SequenceFlow_0ghzwlo">
152         <di:waypoint xsi:type="dc:Point" x="315" y="145" />
153         <di:waypoint xsi:type="dc:Point" x="315" y="216" />
154         <bpmndi:BPMNLabel>
155           <dc:Bounds x="330" y="174" width="0" height="13" />
156         </bpmndi:BPMNLabel>
157       </bpmndi:BPMNEdge>
158       <bpmndi:BPMNEdge id="SequenceFlow_0ee42yq_di" bpmnElement="SequenceFlow_0ee42yq">
159         <di:waypoint xsi:type="dc:Point" x="508" y="256" />
160         <di:waypoint xsi:type="dc:Point" x="566" y="256" />
161         <bpmndi:BPMNLabel>
162           <dc:Bounds x="492" y="234.5" width="90" height="13" />
163         </bpmndi:BPMNLabel>
164       </bpmndi:BPMNEdge>
165       <bpmndi:BPMNShape id="ServiceTask_1eg5ryx_di" bpmnElement="CheckAuditVariable">
166         <dc:Bounds x="161" y="80" width="100" height="80" />
167       </bpmndi:BPMNShape>
168       <bpmndi:BPMNEdge id="SequenceFlow_1xqyur9_di" bpmnElement="SequenceFlow_1xqyur9">
169         <di:waypoint xsi:type="dc:Point" x="261" y="120" />
170         <di:waypoint xsi:type="dc:Point" x="290" y="120" />
171         <bpmndi:BPMNLabel>
172           <dc:Bounds x="275.5" y="98.5" width="0" height="13" />
173         </bpmndi:BPMNLabel>
174       </bpmndi:BPMNEdge>
175       <bpmndi:BPMNShape id="ExclusiveGateway_1h8avxn_di" bpmnElement="ExclusiveGateway_1h8avxn" isMarkerVisible="true">
176         <dc:Bounds x="566" y="231" width="50" height="50" />
177         <bpmndi:BPMNLabel>
178           <dc:Bounds x="591" y="284" width="0" height="13" />
179         </bpmndi:BPMNLabel>
180       </bpmndi:BPMNShape>
181       <bpmndi:BPMNEdge id="SequenceFlow_109oxx2_di" bpmnElement="SequenceFlow_109oxx2">
182         <di:waypoint xsi:type="dc:Point" x="616" y="256" />
183         <di:waypoint xsi:type="dc:Point" x="670" y="256" />
184         <di:waypoint xsi:type="dc:Point" x="670" y="160" />
185         <bpmndi:BPMNLabel>
186           <dc:Bounds x="643" y="234.5" width="0" height="13" />
187         </bpmndi:BPMNLabel>
188       </bpmndi:BPMNEdge>
189       <bpmndi:BPMNEdge id="SequenceFlow_1bo83qk_di" bpmnElement="SequenceFlow_1bo83qk">
190         <di:waypoint xsi:type="dc:Point" x="591" y="281" />
191         <di:waypoint xsi:type="dc:Point" x="591" y="345" />
192         <di:waypoint xsi:type="dc:Point" x="656" y="345" />
193         <bpmndi:BPMNLabel>
194           <dc:Bounds x="560" y="358" width="61" height="12" />
195         </bpmndi:BPMNLabel>
196       </bpmndi:BPMNEdge>
197       <bpmndi:BPMNEdge id="SequenceFlow_0arwo1o_di" bpmnElement="SequenceFlow_0arwo1o">
198         <di:waypoint xsi:type="dc:Point" x="706" y="305" />
199         <di:waypoint xsi:type="dc:Point" x="706" y="160" />
200         <bpmndi:BPMNLabel>
201           <dc:Bounds x="721" y="226" width="0" height="13" />
202         </bpmndi:BPMNLabel>
203       </bpmndi:BPMNEdge>
204       <bpmndi:BPMNShape id="ServiceTask_1eb09gr_di" bpmnElement="Create_AAI_Inventory">
205         <dc:Bounds x="656" y="305" width="100" height="80" />
206       </bpmndi:BPMNShape>
207     </bpmndi:BPMNPlane>
208   </bpmndi:BPMNDiagram>
209 </bpmn:definitions>