Make homingBB optinal and fix homing process
[so.git] / bpmn / so-bpmn-building-blocks / src / main / resources / subprocess / BuildingBlock / AssignVnfBB.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.10.0">
3   <bpmn:process id="AssignVnfBB" name="AssignVnfBB" isExecutable="true">
4     <bpmn:startEvent id="Start_AssignVnfBB">
5       <bpmn:outgoing>SequenceFlow_0zaz9o2</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:serviceTask id="Task_SDNCAdapterVnfTopologyAssign" name="&#10;SDNC &#10;Assign&#10;(vnf)&#10;" camunda:expression="${SDNCAssignTasks.assignVnf(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
8       <bpmn:incoming>SequenceFlow_14mpqit</bpmn:incoming>
9       <bpmn:outgoing>SequenceFlow_1ks8kmt</bpmn:outgoing>
10     </bpmn:serviceTask>
11     <bpmn:endEvent id="End_AssignVnfBB">
12       <bpmn:incoming>SequenceFlow_0csh9dc</bpmn:incoming>
13     </bpmn:endEvent>
14     <bpmn:serviceTask id="Task_CreateVnf" name="&#10;AAI&#10;Create&#10;(vnf)&#10;" camunda:expression="${AAICreateTasks.createVnf(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
15       <bpmn:incoming>SequenceFlow_0zaz9o2</bpmn:incoming>
16       <bpmn:outgoing>SequenceFlow_1jwsja5</bpmn:outgoing>
17     </bpmn:serviceTask>
18     <bpmn:sequenceFlow id="SequenceFlow_0zaz9o2" sourceRef="Start_AssignVnfBB" targetRef="Task_CreateVnf" />
19     <bpmn:sequenceFlow id="SequenceFlow_1ks8kmt" sourceRef="Task_SDNCAdapterVnfTopologyAssign" targetRef="Task_UpdateVnfOrchestrationStatusAssigned" />
20     <bpmn:sequenceFlow id="SequenceFlow_0csh9dc" sourceRef="Task_UpdateVnfOrchestrationStatusAssigned" targetRef="End_AssignVnfBB" />
21     <bpmn:serviceTask id="Task_UpdateVnfOrchestrationStatusAssigned" name="&#10;AAI&#10;Update&#10;(vnf)&#10;" camunda:expression="${AAIUpdateTasks.updateOrchestrationStatusAssignedVnf(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
22       <bpmn:incoming>SequenceFlow_1ks8kmt</bpmn:incoming>
23       <bpmn:outgoing>SequenceFlow_0csh9dc</bpmn:outgoing>
24     </bpmn:serviceTask>
25     <bpmn:serviceTask id="Task_createInstanceGroups" name="&#10;AAI&#10;Create&#10;(instance grp)&#10;" camunda:expression="${AssignVnf.createInstanceGroups(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
26       <bpmn:incoming>SequenceFlow_1lppa2m</bpmn:incoming>
27       <bpmn:outgoing>SequenceFlow_1nle8kc</bpmn:outgoing>
28     </bpmn:serviceTask>
29     <bpmn:sequenceFlow id="SequenceFlow_1jwsja5" sourceRef="Task_CreateVnf" targetRef="Task_createPlatform" />
30     <bpmn:sequenceFlow id="SequenceFlow_1nle8kc" sourceRef="Task_createInstanceGroups" targetRef="ExclusiveGateway_02tchpp" />
31     <bpmn:sequenceFlow id="SequenceFlow_11jum90" name="no" sourceRef="ExclusiveGateway_02tchpp" targetRef="ExclusiveGateway_1blf52g">
32       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("callHoming") == false}]]></bpmn:conditionExpression>
33     </bpmn:sequenceFlow>
34     <bpmn:sequenceFlow id="SequenceFlow_1uiok7v" name="yes" sourceRef="ExclusiveGateway_02tchpp" targetRef="Task_callHoming">
35       <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression"><![CDATA[${execution.getVariable("callHoming") == true}]]></bpmn:conditionExpression>
36     </bpmn:sequenceFlow>
37     <bpmn:sequenceFlow id="SequenceFlow_0v8d14a" sourceRef="Task_callHoming" targetRef="ExclusiveGateway_1blf52g" />
38     <bpmn:callActivity id="Task_callHoming" name="Call Homing" calledElement="HomingBB">
39       <bpmn:extensionElements>
40         <camunda:in source="gBuildingBlockExecution" target="gBuildingBlockExecution" />
41         <camunda:in source="mso-request-id" target="mso-request-id" />
42         <camunda:out source="generalBuildingBlock" target="gBBInput" />
43         <camunda:out source="WorkflowException" target="WorkflowException" />
44       </bpmn:extensionElements>
45       <bpmn:incoming>SequenceFlow_1uiok7v</bpmn:incoming>
46       <bpmn:outgoing>SequenceFlow_0v8d14a</bpmn:outgoing>
47     </bpmn:callActivity>
48     <bpmn:sequenceFlow id="SequenceFlow_169g0ir" sourceRef="Task_createPlatform" targetRef="Task_createLineOfBusiness" />
49     <bpmn:sequenceFlow id="SequenceFlow_1lppa2m" sourceRef="Task_createLineOfBusiness" targetRef="Task_createInstanceGroups" />
50     <bpmn:serviceTask id="Task_createPlatform" name="&#10;AAI&#10;Connect&#10;(platform)&#10;" camunda:expression="${AAICreateTasks.createPlatform(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
51       <bpmn:incoming>SequenceFlow_1jwsja5</bpmn:incoming>
52       <bpmn:outgoing>SequenceFlow_169g0ir</bpmn:outgoing>
53     </bpmn:serviceTask>
54     <bpmn:serviceTask id="Task_createLineOfBusiness" name="&#10;AAI&#10;Create&#10;(line bus)&#10;" camunda:expression="${AAICreateTasks.createLineOfBusiness(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
55       <bpmn:incoming>SequenceFlow_169g0ir</bpmn:incoming>
56       <bpmn:outgoing>SequenceFlow_1lppa2m</bpmn:outgoing>
57     </bpmn:serviceTask>
58     <bpmn:subProcess id="SubProcess_19596dp" name="Error Handling&#10;&#10;" triggeredByEvent="true">
59       <bpmn:startEvent id="StartEvent_1c3cyuv">
60         <bpmn:outgoing>SequenceFlow_1i52a7x</bpmn:outgoing>
61         <bpmn:errorEventDefinition />
62       </bpmn:startEvent>
63       <bpmn:endEvent id="EndEvent_1bywujf">
64         <bpmn:incoming>SequenceFlow_1i52a7x</bpmn:incoming>
65         <bpmn:terminateEventDefinition />
66       </bpmn:endEvent>
67       <bpmn:sequenceFlow id="SequenceFlow_1i52a7x" sourceRef="StartEvent_1c3cyuv" targetRef="EndEvent_1bywujf" />
68     </bpmn:subProcess>
69     <bpmn:sequenceFlow id="SequenceFlow_14mpqit" sourceRef="ExclusiveGateway_1blf52g" targetRef="Task_SDNCAdapterVnfTopologyAssign" />
70     <bpmn:inclusiveGateway id="ExclusiveGateway_02tchpp" name="Call Homing?">
71       <bpmn:incoming>SequenceFlow_1nle8kc</bpmn:incoming>
72       <bpmn:outgoing>SequenceFlow_11jum90</bpmn:outgoing>
73       <bpmn:outgoing>SequenceFlow_1uiok7v</bpmn:outgoing>
74     </bpmn:inclusiveGateway>
75     <bpmn:inclusiveGateway id="ExclusiveGateway_1blf52g">
76       <bpmn:incoming>SequenceFlow_11jum90</bpmn:incoming>
77       <bpmn:incoming>SequenceFlow_0v8d14a</bpmn:incoming>
78       <bpmn:outgoing>SequenceFlow_14mpqit</bpmn:outgoing>
79     </bpmn:inclusiveGateway>
80   </bpmn:process>
81   <bpmn:error id="Error_0rgauy1" name="gDelegateError" errorCode="7000" />
82   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
83     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="AssignVnfBB">
84       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="Start_AssignVnfBB">
85         <dc:Bounds x="72" y="116" width="36" height="36" />
86         <bpmndi:BPMNLabel>
87           <dc:Bounds x="79" y="152" width="23" height="12" />
88         </bpmndi:BPMNLabel>
89       </bpmndi:BPMNShape>
90       <bpmndi:BPMNShape id="ServiceTask_0m0ikey_di" bpmnElement="Task_SDNCAdapterVnfTopologyAssign">
91         <dc:Bounds x="930" y="94" width="100" height="80" />
92       </bpmndi:BPMNShape>
93       <bpmndi:BPMNShape id="EndEvent_1h93h9d_di" bpmnElement="End_AssignVnfBB">
94         <dc:Bounds x="1229" y="116" width="36" height="36" />
95         <bpmndi:BPMNLabel>
96           <dc:Bounds x="1238" y="156" width="18" height="12" />
97         </bpmndi:BPMNLabel>
98       </bpmndi:BPMNShape>
99       <bpmndi:BPMNShape id="ServiceTask_1r380lg_di" bpmnElement="Task_CreateVnf">
100         <dc:Bounds x="147" y="94" width="100" height="80" />
101       </bpmndi:BPMNShape>
102       <bpmndi:BPMNEdge id="SequenceFlow_0zaz9o2_di" bpmnElement="SequenceFlow_0zaz9o2">
103         <di:waypoint xsi:type="dc:Point" x="108" y="134" />
104         <di:waypoint xsi:type="dc:Point" x="147" y="134" />
105         <bpmndi:BPMNLabel>
106           <dc:Bounds x="83" y="113" width="90" height="12" />
107         </bpmndi:BPMNLabel>
108       </bpmndi:BPMNEdge>
109       <bpmndi:BPMNEdge id="SequenceFlow_1ks8kmt_di" bpmnElement="SequenceFlow_1ks8kmt">
110         <di:waypoint xsi:type="dc:Point" x="1030" y="134" />
111         <di:waypoint xsi:type="dc:Point" x="1056" y="134" />
112         <bpmndi:BPMNLabel>
113           <dc:Bounds x="998" y="113" width="90" height="12" />
114         </bpmndi:BPMNLabel>
115       </bpmndi:BPMNEdge>
116       <bpmndi:BPMNEdge id="SequenceFlow_0csh9dc_di" bpmnElement="SequenceFlow_0csh9dc">
117         <di:waypoint xsi:type="dc:Point" x="1156" y="134" />
118         <di:waypoint xsi:type="dc:Point" x="1229" y="134" />
119         <bpmndi:BPMNLabel>
120           <dc:Bounds x="1147.5" y="113" width="90" height="12" />
121         </bpmndi:BPMNLabel>
122       </bpmndi:BPMNEdge>
123       <bpmndi:BPMNShape id="ServiceTask_0s6d1be_di" bpmnElement="Task_UpdateVnfOrchestrationStatusAssigned">
124         <dc:Bounds x="1056" y="94" width="100" height="80" />
125       </bpmndi:BPMNShape>
126       <bpmndi:BPMNShape id="ServiceTask_0wjy7za_di" bpmnElement="Task_createInstanceGroups">
127         <dc:Bounds x="534" y="94" width="100" height="80" />
128       </bpmndi:BPMNShape>
129       <bpmndi:BPMNEdge id="SequenceFlow_1jwsja5_di" bpmnElement="SequenceFlow_1jwsja5">
130         <di:waypoint xsi:type="dc:Point" x="247" y="134" />
131         <di:waypoint xsi:type="dc:Point" x="279" y="134" />
132         <bpmndi:BPMNLabel>
133           <dc:Bounds x="218" y="113" width="90" height="12" />
134         </bpmndi:BPMNLabel>
135       </bpmndi:BPMNEdge>
136       <bpmndi:BPMNEdge id="SequenceFlow_1nle8kc_di" bpmnElement="SequenceFlow_1nle8kc">
137         <di:waypoint xsi:type="dc:Point" x="634" y="134" />
138         <di:waypoint xsi:type="dc:Point" x="679" y="134" />
139         <bpmndi:BPMNLabel>
140           <dc:Bounds x="611.5" y="113" width="90" height="12" />
141         </bpmndi:BPMNLabel>
142       </bpmndi:BPMNEdge>
143       <bpmndi:BPMNEdge id="SequenceFlow_11jum90_di" bpmnElement="SequenceFlow_11jum90">
144         <di:waypoint xsi:type="dc:Point" x="704" y="159" />
145         <di:waypoint xsi:type="dc:Point" x="704" y="195" />
146         <di:waypoint xsi:type="dc:Point" x="874" y="195" />
147         <di:waypoint xsi:type="dc:Point" x="874" y="159" />
148         <bpmndi:BPMNLabel>
149           <dc:Bounds x="715.1383523847063" y="174" width="12" height="12" />
150         </bpmndi:BPMNLabel>
151       </bpmndi:BPMNEdge>
152       <bpmndi:BPMNEdge id="SequenceFlow_1uiok7v_di" bpmnElement="SequenceFlow_1uiok7v">
153         <di:waypoint xsi:type="dc:Point" x="704" y="109" />
154         <di:waypoint xsi:type="dc:Point" x="704" y="68" />
155         <di:waypoint xsi:type="dc:Point" x="739" y="68" />
156         <bpmndi:BPMNLabel>
157           <dc:Bounds x="711" y="75.5" width="19" height="12" />
158         </bpmndi:BPMNLabel>
159       </bpmndi:BPMNEdge>
160       <bpmndi:BPMNEdge id="SequenceFlow_0v8d14a_di" bpmnElement="SequenceFlow_0v8d14a">
161         <di:waypoint xsi:type="dc:Point" x="839" y="68" />
162         <di:waypoint xsi:type="dc:Point" x="874" y="68" />
163         <di:waypoint xsi:type="dc:Point" x="874" y="109" />
164         <bpmndi:BPMNLabel>
165           <dc:Bounds x="811.5" y="47" width="90" height="12" />
166         </bpmndi:BPMNLabel>
167       </bpmndi:BPMNEdge>
168       <bpmndi:BPMNShape id="CallActivity_14ye6fs_di" bpmnElement="Task_callHoming">
169         <dc:Bounds x="739" y="28" width="100" height="80" />
170       </bpmndi:BPMNShape>
171       <bpmndi:BPMNEdge id="SequenceFlow_169g0ir_di" bpmnElement="SequenceFlow_169g0ir">
172         <di:waypoint xsi:type="dc:Point" x="379" y="134" />
173         <di:waypoint xsi:type="dc:Point" x="404" y="134" />
174         <bpmndi:BPMNLabel>
175           <dc:Bounds x="347" y="113" width="90" height="12" />
176         </bpmndi:BPMNLabel>
177       </bpmndi:BPMNEdge>
178       <bpmndi:BPMNEdge id="SequenceFlow_1lppa2m_di" bpmnElement="SequenceFlow_1lppa2m">
179         <di:waypoint xsi:type="dc:Point" x="504" y="134" />
180         <di:waypoint xsi:type="dc:Point" x="534" y="134" />
181         <bpmndi:BPMNLabel>
182           <dc:Bounds x="474" y="113" width="90" height="12" />
183         </bpmndi:BPMNLabel>
184       </bpmndi:BPMNEdge>
185       <bpmndi:BPMNShape id="ServiceTask_0c97kfg_di" bpmnElement="Task_createPlatform">
186         <dc:Bounds x="279" y="94" width="100" height="80" />
187       </bpmndi:BPMNShape>
188       <bpmndi:BPMNShape id="ServiceTask_1b9yljc_di" bpmnElement="Task_createLineOfBusiness">
189         <dc:Bounds x="404" y="94" width="100" height="80" />
190       </bpmndi:BPMNShape>
191       <bpmndi:BPMNShape id="SubProcess_19596dp_di" bpmnElement="SubProcess_19596dp" isExpanded="true">
192         <dc:Bounds x="249" y="267" width="231" height="135" />
193       </bpmndi:BPMNShape>
194       <bpmndi:BPMNShape id="StartEvent_1c3cyuv_di" bpmnElement="StartEvent_1c3cyuv">
195         <dc:Bounds x="286" y="323" width="36" height="36" />
196         <bpmndi:BPMNLabel>
197           <dc:Bounds x="259" y="359" width="0" height="12" />
198         </bpmndi:BPMNLabel>
199       </bpmndi:BPMNShape>
200       <bpmndi:BPMNShape id="EndEvent_1bywujf_di" bpmnElement="EndEvent_1bywujf">
201         <dc:Bounds x="422" y="323" width="36" height="36" />
202         <bpmndi:BPMNLabel>
203           <dc:Bounds x="395" y="359" width="0" height="12" />
204         </bpmndi:BPMNLabel>
205       </bpmndi:BPMNShape>
206       <bpmndi:BPMNEdge id="SequenceFlow_1i52a7x_di" bpmnElement="SequenceFlow_1i52a7x">
207         <di:waypoint xsi:type="dc:Point" x="322" y="341" />
208         <di:waypoint xsi:type="dc:Point" x="422" y="341" />
209         <bpmndi:BPMNLabel>
210           <dc:Bounds x="372" y="320" width="0" height="12" />
211         </bpmndi:BPMNLabel>
212       </bpmndi:BPMNEdge>
213       <bpmndi:BPMNEdge id="SequenceFlow_14mpqit_di" bpmnElement="SequenceFlow_14mpqit">
214         <di:waypoint xsi:type="dc:Point" x="899" y="134" />
215         <di:waypoint xsi:type="dc:Point" x="930" y="134" />
216         <bpmndi:BPMNLabel>
217           <dc:Bounds x="914.5" y="113" width="0" height="12" />
218         </bpmndi:BPMNLabel>
219       </bpmndi:BPMNEdge>
220       <bpmndi:BPMNShape id="InclusiveGateway_0x0c3kk_di" bpmnElement="ExclusiveGateway_02tchpp">
221         <dc:Bounds x="679" y="109" width="50" height="50" />
222         <bpmndi:BPMNLabel>
223           <dc:Bounds x="731" y="128" width="67" height="13" />
224         </bpmndi:BPMNLabel>
225       </bpmndi:BPMNShape>
226       <bpmndi:BPMNShape id="InclusiveGateway_0ijggth_di" bpmnElement="ExclusiveGateway_1blf52g">
227         <dc:Bounds x="849" y="109" width="50" height="50" />
228         <bpmndi:BPMNLabel>
229           <dc:Bounds x="896" y="163" width="0" height="12" />
230         </bpmndi:BPMNLabel>
231       </bpmndi:BPMNShape>
232     </bpmndi:BPMNPlane>
233   </bpmndi:BPMNDiagram>
234 </bpmn:definitions>