c841da3e3a81aa34912bbf908f50a9b4dfc13e4c
[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_0ee42yq</bpmn:incoming>
14       <bpmn:outgoing>SequenceFlow_1a495wm</bpmn:outgoing>
15     </bpmn:serviceTask>
16     <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;)))}">
17       <bpmn:incoming>SequenceFlow_1j4x1ej</bpmn:incoming>
18       <bpmn:outgoing>SequenceFlow_0xsp0pv</bpmn:outgoing>
19     </bpmn:serviceTask>
20     <bpmn:sequenceFlow id="SequenceFlow_0xsp0pv" sourceRef="UpdateVfModuleActiveStatus" targetRef="ActivateVfModuleBB_End" />
21     <bpmn:callActivity id="CallActivity_sdncHandler" name="SDNC Activate (vfModule)" calledElement="SDNCHandler">
22       <bpmn:extensionElements>
23         <camunda:in source="SDNCRequest" target="SDNCRequest" />
24         <camunda:out source="SDNCResponse" target="SDNCResponse" />
25         <camunda:out source="WorkflowException" target="WorkflowException" />
26         <camunda:in source="mso-request-id" target="mso-request-id" />
27       </bpmn:extensionElements>
28       <bpmn:incoming>SequenceFlow_1a495wm</bpmn:incoming>
29       <bpmn:outgoing>SequenceFlow_1j4x1ej</bpmn:outgoing>
30     </bpmn:callActivity>
31     <bpmn:sequenceFlow id="SequenceFlow_1a495wm" sourceRef="ActivateVfModule" targetRef="CallActivity_sdncHandler" />
32     <bpmn:sequenceFlow id="SequenceFlow_1j4x1ej" sourceRef="CallActivity_sdncHandler" targetRef="UpdateVfModuleActiveStatus" />
33     <bpmn:sequenceFlow id="SequenceFlow_0xndboi" sourceRef="Setup_AAI_Inventory_Audit" targetRef="Audit_AAI_Inventory" />
34     <bpmn:serviceTask id="Setup_AAI_Inventory_Audit" name="Setup Inventory Audit Variable" camunda:expression="${AuditTasks.setupAuditVariable(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
35       <bpmn:incoming>SequenceFlow_0ghzwlo</bpmn:incoming>
36       <bpmn:outgoing>SequenceFlow_0xndboi</bpmn:outgoing>
37     </bpmn:serviceTask>
38     <bpmn:serviceTask id="Audit_AAI_Inventory" name="Validate A&#38;AI Inventory" camunda:type="external" camunda:topic="InventoryAddAudit">
39       <bpmn:incoming>SequenceFlow_0xndboi</bpmn:incoming>
40       <bpmn:outgoing>SequenceFlow_0ee42yq</bpmn:outgoing>
41     </bpmn:serviceTask>
42     <bpmn:boundaryEvent id="BoundaryEvent_1nb1hw4" attachedToRef="Audit_AAI_Inventory">
43       <bpmn:outgoing>SequenceFlow_1t99ceh</bpmn:outgoing>
44       <bpmn:errorEventDefinition />
45     </bpmn:boundaryEvent>
46     <bpmn:sequenceFlow id="SequenceFlow_1t99ceh" sourceRef="BoundaryEvent_1nb1hw4" targetRef="Task_0swpw3v" />
47     <bpmn:serviceTask id="Task_0swpw3v" name="Throw Exception" camunda:expression="${ExceptionBuilder.buildAndThrowWorkflowException(execution, &#34;AuditAAIInventoryFailure&#34;, &#34;Error Auditing Cloud Inventory in A&#38;AI&#34;)}" camunda:resultVariable="ExceptionBuilder">
48       <bpmn:incoming>SequenceFlow_1t99ceh</bpmn:incoming>
49     </bpmn:serviceTask>
50     <bpmn:exclusiveGateway id="ExclusiveGateway_1v8bmbu" default="SequenceFlow_07ybdik">
51       <bpmn:incoming>SequenceFlow_1xqyur9</bpmn:incoming>
52       <bpmn:outgoing>SequenceFlow_07ybdik</bpmn:outgoing>
53       <bpmn:outgoing>SequenceFlow_0ghzwlo</bpmn:outgoing>
54     </bpmn:exclusiveGateway>
55     <bpmn:sequenceFlow id="SequenceFlow_07ybdik" sourceRef="ExclusiveGateway_1v8bmbu" targetRef="ActivateVfModule" />
56     <bpmn:sequenceFlow id="SequenceFlow_0ghzwlo" sourceRef="ExclusiveGateway_1v8bmbu" targetRef="Setup_AAI_Inventory_Audit">
57       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("auditInventoryNeeded") == true}]]></bpmn:conditionExpression>
58     </bpmn:sequenceFlow>
59     <bpmn:sequenceFlow id="SequenceFlow_0ee42yq" sourceRef="Audit_AAI_Inventory" targetRef="ActivateVfModule" />
60     <bpmn:serviceTask id="CheckAuditVariable" name="Check Audit Variable" camunda:expression="${AuditTasks.isAuditNeeded(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
61       <bpmn:incoming>SequenceFlow_0ieafii</bpmn:incoming>
62       <bpmn:outgoing>SequenceFlow_1xqyur9</bpmn:outgoing>
63     </bpmn:serviceTask>
64     <bpmn:sequenceFlow id="SequenceFlow_1xqyur9" sourceRef="CheckAuditVariable" targetRef="ExclusiveGateway_1v8bmbu" />
65   </bpmn:process>
66   <bpmn:error id="Error_0q258vt" errorCode="7000" />
67   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
68     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="ActivateVfModuleBB">
69       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="ActivateVfModuleBB_Start">
70         <dc:Bounds x="73" y="102" width="36" height="36" />
71         <bpmndi:BPMNLabel>
72           <dc:Bounds x="46" y="138" width="90" height="12" />
73         </bpmndi:BPMNLabel>
74       </bpmndi:BPMNShape>
75       <bpmndi:BPMNEdge id="SequenceFlow_0ieafii_di" bpmnElement="SequenceFlow_0ieafii">
76         <di:waypoint xsi:type="dc:Point" x="109" y="120" />
77         <di:waypoint xsi:type="dc:Point" x="161" y="120" />
78         <bpmndi:BPMNLabel>
79           <dc:Bounds x="90" y="99" width="90" height="12" />
80         </bpmndi:BPMNLabel>
81       </bpmndi:BPMNEdge>
82       <bpmndi:BPMNShape id="EndEvent_1v967li_di" bpmnElement="ActivateVfModuleBB_End">
83         <dc:Bounds x="1104" y="102" width="36" height="36" />
84         <bpmndi:BPMNLabel>
85           <dc:Bounds x="935" y="142" width="90" height="12" />
86         </bpmndi:BPMNLabel>
87       </bpmndi:BPMNShape>
88       <bpmndi:BPMNShape id="ServiceTask_0hawa84_di" bpmnElement="ActivateVfModule">
89         <dc:Bounds x="539" y="80" width="100" height="80" />
90       </bpmndi:BPMNShape>
91       <bpmndi:BPMNShape id="ServiceTask_175e9ul_di" bpmnElement="UpdateVfModuleActiveStatus">
92         <dc:Bounds x="952" y="80" width="100" height="80" />
93       </bpmndi:BPMNShape>
94       <bpmndi:BPMNEdge id="SequenceFlow_0xsp0pv_di" bpmnElement="SequenceFlow_0xsp0pv">
95         <di:waypoint xsi:type="dc:Point" x="1052" y="120" />
96         <di:waypoint xsi:type="dc:Point" x="1104" y="120" />
97         <bpmndi:BPMNLabel>
98           <dc:Bounds x="1033" y="99" width="90" height="12" />
99         </bpmndi:BPMNLabel>
100       </bpmndi:BPMNEdge>
101       <bpmndi:BPMNShape id="CallActivity_03jkesd_di" bpmnElement="CallActivity_sdncHandler">
102         <dc:Bounds x="794" y="80" width="100" height="80" />
103       </bpmndi:BPMNShape>
104       <bpmndi:BPMNEdge id="SequenceFlow_1a495wm_di" bpmnElement="SequenceFlow_1a495wm">
105         <di:waypoint xsi:type="dc:Point" x="639" y="120" />
106         <di:waypoint xsi:type="dc:Point" x="794" y="120" />
107         <bpmndi:BPMNLabel>
108           <dc:Bounds x="671.5" y="99" width="90" height="12" />
109         </bpmndi:BPMNLabel>
110       </bpmndi:BPMNEdge>
111       <bpmndi:BPMNEdge id="SequenceFlow_1j4x1ej_di" bpmnElement="SequenceFlow_1j4x1ej">
112         <di:waypoint xsi:type="dc:Point" x="894" y="120" />
113         <di:waypoint xsi:type="dc:Point" x="952" y="120" />
114         <bpmndi:BPMNLabel>
115           <dc:Bounds x="878" y="99" width="90" height="12" />
116         </bpmndi:BPMNLabel>
117       </bpmndi:BPMNEdge>
118       <bpmndi:BPMNEdge id="SequenceFlow_0xndboi_di" bpmnElement="SequenceFlow_0xndboi">
119         <di:waypoint xsi:type="dc:Point" x="365" y="256" />
120         <di:waypoint xsi:type="dc:Point" x="452" y="256" />
121         <di:waypoint xsi:type="dc:Point" x="452" y="256" />
122         <di:waypoint xsi:type="dc:Point" x="539" y="256" />
123         <bpmndi:BPMNLabel>
124           <dc:Bounds x="422" y="249.5" width="90" height="13" />
125         </bpmndi:BPMNLabel>
126       </bpmndi:BPMNEdge>
127       <bpmndi:BPMNShape id="ServiceTask_0krf1ur_di" bpmnElement="Setup_AAI_Inventory_Audit">
128         <dc:Bounds x="265" y="216" width="100" height="80" />
129       </bpmndi:BPMNShape>
130       <bpmndi:BPMNShape id="ServiceTask_08rxjeb_di" bpmnElement="Audit_AAI_Inventory">
131         <dc:Bounds x="539" y="216" width="100" height="80" />
132       </bpmndi:BPMNShape>
133       <bpmndi:BPMNShape id="BoundaryEvent_0s7rszu_di" bpmnElement="BoundaryEvent_1nb1hw4">
134         <dc:Bounds x="575" y="278" width="36" height="36" />
135         <bpmndi:BPMNLabel>
136           <dc:Bounds x="548" y="317" width="90" height="13" />
137         </bpmndi:BPMNLabel>
138       </bpmndi:BPMNShape>
139       <bpmndi:BPMNEdge id="SequenceFlow_1t99ceh_di" bpmnElement="SequenceFlow_1t99ceh">
140         <di:waypoint xsi:type="dc:Point" x="593" y="314" />
141         <di:waypoint xsi:type="dc:Point" x="593" y="348" />
142         <di:waypoint xsi:type="dc:Point" x="593" y="348" />
143         <di:waypoint xsi:type="dc:Point" x="593" y="371" />
144         <bpmndi:BPMNLabel>
145           <dc:Bounds x="563" y="341.5" width="90" height="13" />
146         </bpmndi:BPMNLabel>
147       </bpmndi:BPMNEdge>
148       <bpmndi:BPMNShape id="ServiceTask_0eujimg_di" bpmnElement="Task_0swpw3v">
149         <dc:Bounds x="543" y="371" width="100" height="80" />
150       </bpmndi:BPMNShape>
151       <bpmndi:BPMNShape id="ExclusiveGateway_1v8bmbu_di" bpmnElement="ExclusiveGateway_1v8bmbu" isMarkerVisible="true">
152         <dc:Bounds x="290" y="95" width="50" height="50" />
153         <bpmndi:BPMNLabel>
154           <dc:Bounds x="315" y="148" width="0" height="13" />
155         </bpmndi:BPMNLabel>
156       </bpmndi:BPMNShape>
157       <bpmndi:BPMNEdge id="SequenceFlow_07ybdik_di" bpmnElement="SequenceFlow_07ybdik">
158         <di:waypoint xsi:type="dc:Point" x="340" y="120" />
159         <di:waypoint xsi:type="dc:Point" x="539" y="120" />
160         <bpmndi:BPMNLabel>
161           <dc:Bounds x="439.5" y="98.5" width="0" height="13" />
162         </bpmndi:BPMNLabel>
163       </bpmndi:BPMNEdge>
164       <bpmndi:BPMNEdge id="SequenceFlow_0ghzwlo_di" bpmnElement="SequenceFlow_0ghzwlo">
165         <di:waypoint xsi:type="dc:Point" x="315" y="145" />
166         <di:waypoint xsi:type="dc:Point" x="315" y="216" />
167         <bpmndi:BPMNLabel>
168           <dc:Bounds x="330" y="174" width="0" height="13" />
169         </bpmndi:BPMNLabel>
170       </bpmndi:BPMNEdge>
171       <bpmndi:BPMNEdge id="SequenceFlow_0ee42yq_di" bpmnElement="SequenceFlow_0ee42yq">
172         <di:waypoint xsi:type="dc:Point" x="589" y="216" />
173         <di:waypoint xsi:type="dc:Point" x="589" y="193" />
174         <di:waypoint xsi:type="dc:Point" x="589" y="193" />
175         <di:waypoint xsi:type="dc:Point" x="589" y="160" />
176         <bpmndi:BPMNLabel>
177           <dc:Bounds x="604" y="186.5" width="0" height="13" />
178         </bpmndi:BPMNLabel>
179       </bpmndi:BPMNEdge>
180       <bpmndi:BPMNShape id="ServiceTask_1eg5ryx_di" bpmnElement="CheckAuditVariable">
181         <dc:Bounds x="161" y="80" width="100" height="80" />
182       </bpmndi:BPMNShape>
183       <bpmndi:BPMNEdge id="SequenceFlow_1xqyur9_di" bpmnElement="SequenceFlow_1xqyur9">
184         <di:waypoint xsi:type="dc:Point" x="261" y="120" />
185         <di:waypoint xsi:type="dc:Point" x="290" y="120" />
186         <bpmndi:BPMNLabel>
187           <dc:Bounds x="275.5" y="98.5" width="0" height="13" />
188         </bpmndi:BPMNLabel>
189       </bpmndi:BPMNEdge>
190     </bpmndi:BPMNPlane>
191   </bpmndi:BPMNDiagram>
192 </bpmn:definitions>