Merge "Added fix for potential nullpointerexception"
[so.git] / bpmn / so-bpmn-building-blocks / src / main / resources / subprocess / BuildingBlock / CreateVfModuleBB.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="CreateVfModuleBB" name="CreateVfModuleBB" isExecutable="true">
4     <bpmn:startEvent id="CreateVfModuleBB_Start">
5       <bpmn:outgoing>SequenceFlow_1xr6chl</bpmn:outgoing>
6     </bpmn:startEvent>
7     <bpmn:serviceTask id="QueryVfModule" name="&#10;SDNC&#10;Get&#10;(vf module)&#10;" camunda:expression="${SDNCQueryTasks.queryVfModule(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
8       <bpmn:incoming>SequenceFlow_1s4rpyp</bpmn:incoming>
9       <bpmn:outgoing>SequenceFlow_15hn8si</bpmn:outgoing>
10     </bpmn:serviceTask>
11     <bpmn:sequenceFlow id="SequenceFlow_1xr6chl" sourceRef="CreateVfModuleBB_Start" targetRef="QueryVnf" />
12     <bpmn:endEvent id="CreateVfModuleBB_End">
13       <bpmn:incoming>SequenceFlow_1stomxq</bpmn:incoming>
14     </bpmn:endEvent>
15     <bpmn:serviceTask id="CreateVfModule" name="Create VF Module (VNF)" camunda:expression="${VnfAdapterCreateTasks.createVfModule(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
16       <bpmn:incoming>SequenceFlow_15hn8si</bpmn:incoming>
17       <bpmn:outgoing>SequenceFlow_16g4dz0</bpmn:outgoing>
18     </bpmn:serviceTask>
19     <bpmn:sequenceFlow id="SequenceFlow_15hn8si" sourceRef="QueryVfModule" targetRef="CreateVfModule" />
20     <bpmn:sequenceFlow id="SequenceFlow_1s4rpyp" sourceRef="QueryVnf" targetRef="QueryVfModule" />
21     <bpmn:serviceTask id="QueryVnf" name="&#10;SDNC&#10;Get&#10;(vnf)&#10;" camunda:expression="${SDNCQueryTasks.queryVnf(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
22       <bpmn:incoming>SequenceFlow_1xr6chl</bpmn:incoming>
23       <bpmn:outgoing>SequenceFlow_1s4rpyp</bpmn:outgoing>
24     </bpmn:serviceTask>
25     <bpmn:sequenceFlow id="SequenceFlow_16g4dz0" sourceRef="CreateVfModule" targetRef="VnfAdapter" />
26     <bpmn:sequenceFlow id="SequenceFlow_0ecr393" sourceRef="VnfAdapter" targetRef="UpdateVfModuleHeatStackId" />
27     <bpmn:callActivity id="VnfAdapter" name="Vnf Adapter" calledElement="VnfAdapter">
28       <bpmn:extensionElements>
29         <camunda:in source="gBuildingBlockExecution" target="gBuildingBlockExecution" />
30         <camunda:out source="WorkflowException" target="WorkflowException" />
31         <camunda:in source="VNFREST_Request" target="VNFREST_Request" />
32         <camunda:out source="heatStackId" target="heatStackId" />
33       </bpmn:extensionElements>
34       <bpmn:incoming>SequenceFlow_16g4dz0</bpmn:incoming>
35       <bpmn:outgoing>SequenceFlow_0ecr393</bpmn:outgoing>
36     </bpmn:callActivity>
37     <bpmn:sequenceFlow id="SequenceFlow_1stomxq" sourceRef="UpdateVfModuleStatus" targetRef="CreateVfModuleBB_End" />
38     <bpmn:serviceTask id="UpdateVfModuleStatus" name="&#10;AAI&#10;Update&#10;(vf module)&#10;" camunda:expression="${AAIUpdateTasks.updateOrchestrationStatusCreatedVfModule(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
39       <bpmn:incoming>SequenceFlow_0qqsilv</bpmn:incoming>
40       <bpmn:outgoing>SequenceFlow_1stomxq</bpmn:outgoing>
41     </bpmn:serviceTask>
42     <bpmn:sequenceFlow id="SequenceFlow_0qqsilv" sourceRef="UpdateVfModuleHeatStackId" targetRef="UpdateVfModuleStatus" />
43     <bpmn:serviceTask id="UpdateVfModuleHeatStackId" name="&#10;AAI&#10;Update&#10;(vf module)&#10;" camunda:expression="${AAIUpdateTasks.updateHeatStackIdVfModule(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
44       <bpmn:incoming>SequenceFlow_0ecr393</bpmn:incoming>
45       <bpmn:outgoing>SequenceFlow_0qqsilv</bpmn:outgoing>
46     </bpmn:serviceTask>
47     <bpmn:subProcess id="SubProcess_1getwnf" name="Error Handling&#10;&#10;" triggeredByEvent="true">
48       <bpmn:startEvent id="StartEvent_1c8o652">
49         <bpmn:outgoing>SequenceFlow_0gcots6</bpmn:outgoing>
50         <bpmn:errorEventDefinition />
51       </bpmn:startEvent>
52       <bpmn:endEvent id="EndEvent_1emam1w">
53         <bpmn:incoming>SequenceFlow_0gcots6</bpmn:incoming>
54         <bpmn:terminateEventDefinition />
55       </bpmn:endEvent>
56       <bpmn:sequenceFlow id="SequenceFlow_0gcots6" sourceRef="StartEvent_1c8o652" targetRef="EndEvent_1emam1w" />
57     </bpmn:subProcess>
58   </bpmn:process>
59   <bpmndi:BPMNDiagram id="BPMNDiagram_1">
60     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CreateVfModuleBB">
61       <bpmndi:BPMNShape id="StartEvent_0kxwniy_di" bpmnElement="CreateVfModuleBB_Start">
62         <dc:Bounds x="100" y="88" width="36" height="36" />
63         <bpmndi:BPMNLabel>
64           <dc:Bounds x="106" y="124" width="24" height="12" />
65         </bpmndi:BPMNLabel>
66       </bpmndi:BPMNShape>
67       <bpmndi:BPMNShape id="ServiceTask_13t22km_di" bpmnElement="QueryVfModule">
68         <dc:Bounds x="416" y="66" width="100" height="80" />
69       </bpmndi:BPMNShape>
70       <bpmndi:BPMNEdge id="SequenceFlow_1xr6chl_di" bpmnElement="SequenceFlow_1xr6chl">
71         <di:waypoint xsi:type="dc:Point" x="136" y="106" />
72         <di:waypoint xsi:type="dc:Point" x="216" y="106" />
73         <bpmndi:BPMNLabel>
74           <dc:Bounds x="131" y="91" width="90" height="0" />
75         </bpmndi:BPMNLabel>
76       </bpmndi:BPMNEdge>
77       <bpmndi:BPMNShape id="EndEvent_0qdq7wj_di" bpmnElement="CreateVfModuleBB_End">
78         <dc:Bounds x="1278" y="88" width="36" height="36" />
79         <bpmndi:BPMNLabel>
80           <dc:Bounds x="1286" y="128" width="19" height="12" />
81         </bpmndi:BPMNLabel>
82       </bpmndi:BPMNShape>
83       <bpmndi:BPMNShape id="ServiceTask_1dgenhy_di" bpmnElement="CreateVfModule">
84         <dc:Bounds x="612" y="66" width="100" height="80" />
85       </bpmndi:BPMNShape>
86       <bpmndi:BPMNEdge id="SequenceFlow_15hn8si_di" bpmnElement="SequenceFlow_15hn8si">
87         <di:waypoint xsi:type="dc:Point" x="516" y="106" />
88         <di:waypoint xsi:type="dc:Point" x="612" y="106" />
89         <bpmndi:BPMNLabel>
90           <dc:Bounds x="519" y="91" width="90" height="0" />
91         </bpmndi:BPMNLabel>
92       </bpmndi:BPMNEdge>
93       <bpmndi:BPMNEdge id="SequenceFlow_1s4rpyp_di" bpmnElement="SequenceFlow_1s4rpyp">
94         <di:waypoint xsi:type="dc:Point" x="316" y="106" />
95         <di:waypoint xsi:type="dc:Point" x="416" y="106" />
96         <bpmndi:BPMNLabel>
97           <dc:Bounds x="321" y="91" width="90" height="0" />
98         </bpmndi:BPMNLabel>
99       </bpmndi:BPMNEdge>
100       <bpmndi:BPMNShape id="ServiceTask_1frb5h2_di" bpmnElement="QueryVnf">
101         <dc:Bounds x="216" y="66" width="100" height="80" />
102       </bpmndi:BPMNShape>
103       <bpmndi:BPMNEdge id="SequenceFlow_16g4dz0_di" bpmnElement="SequenceFlow_16g4dz0">
104         <di:waypoint xsi:type="dc:Point" x="712" y="106" />
105         <di:waypoint xsi:type="dc:Point" x="777" y="106" />
106         <bpmndi:BPMNLabel>
107           <dc:Bounds x="700" y="85" width="90" height="12" />
108         </bpmndi:BPMNLabel>
109       </bpmndi:BPMNEdge>
110       <bpmndi:BPMNEdge id="SequenceFlow_0ecr393_di" bpmnElement="SequenceFlow_0ecr393">
111         <di:waypoint xsi:type="dc:Point" x="877" y="106" />
112         <di:waypoint xsi:type="dc:Point" x="950" y="106" />
113         <bpmndi:BPMNLabel>
114           <dc:Bounds x="869" y="91" width="90" height="0" />
115         </bpmndi:BPMNLabel>
116       </bpmndi:BPMNEdge>
117       <bpmndi:BPMNShape id="CallActivity_1i1pfzb_di" bpmnElement="VnfAdapter">
118         <dc:Bounds x="777" y="66" width="100" height="80" />
119       </bpmndi:BPMNShape>
120       <bpmndi:BPMNEdge id="SequenceFlow_1stomxq_di" bpmnElement="SequenceFlow_1stomxq">
121         <di:waypoint xsi:type="dc:Point" x="1214" y="106" />
122         <di:waypoint xsi:type="dc:Point" x="1278" y="106" />
123         <bpmndi:BPMNLabel>
124           <dc:Bounds x="1201" y="91" width="90" height="0" />
125         </bpmndi:BPMNLabel>
126       </bpmndi:BPMNEdge>
127       <bpmndi:BPMNShape id="ServiceTask_0fpfn71_di" bpmnElement="UpdateVfModuleStatus">
128         <dc:Bounds x="1114" y="66" width="100" height="80" />
129       </bpmndi:BPMNShape>
130       <bpmndi:BPMNEdge id="SequenceFlow_0qqsilv_di" bpmnElement="SequenceFlow_0qqsilv">
131         <di:waypoint xsi:type="dc:Point" x="1050" y="106" />
132         <di:waypoint xsi:type="dc:Point" x="1114" y="106" />
133         <bpmndi:BPMNLabel>
134           <dc:Bounds x="1037" y="91" width="90" height="0" />
135         </bpmndi:BPMNLabel>
136       </bpmndi:BPMNEdge>
137       <bpmndi:BPMNShape id="ServiceTask_04k1b85_di" bpmnElement="UpdateVfModuleHeatStackId">
138         <dc:Bounds x="950" y="66" width="100" height="80" />
139       </bpmndi:BPMNShape>
140       <bpmndi:BPMNShape id="SubProcess_1getwnf_di" bpmnElement="SubProcess_1getwnf" isExpanded="true">
141         <dc:Bounds x="172" y="276" width="231" height="135" />
142       </bpmndi:BPMNShape>
143       <bpmndi:BPMNShape id="StartEvent_1c8o652_di" bpmnElement="StartEvent_1c8o652">
144         <dc:Bounds x="211" y="334" width="36" height="36" />
145         <bpmndi:BPMNLabel>
146           <dc:Bounds x="184" y="370" width="0" height="12" />
147         </bpmndi:BPMNLabel>
148       </bpmndi:BPMNShape>
149       <bpmndi:BPMNShape id="EndEvent_1emam1w_di" bpmnElement="EndEvent_1emam1w">
150         <dc:Bounds x="348" y="334" width="36" height="36" />
151         <bpmndi:BPMNLabel>
152           <dc:Bounds x="321" y="370" width="0" height="12" />
153         </bpmndi:BPMNLabel>
154       </bpmndi:BPMNShape>
155       <bpmndi:BPMNEdge id="SequenceFlow_0gcots6_di" bpmnElement="SequenceFlow_0gcots6">
156         <di:waypoint xsi:type="dc:Point" x="247" y="352" />
157         <di:waypoint xsi:type="dc:Point" x="348" y="352" />
158         <bpmndi:BPMNLabel>
159           <dc:Bounds x="297.5" y="331" width="0" height="12" />
160         </bpmndi:BPMNLabel>
161       </bpmndi:BPMNEdge>
162     </bpmndi:BPMNPlane>
163   </bpmndi:BPMNDiagram>
164 </bpmn:definitions>