32206bd7acc0d2f7987399d772b8ba094527f9aa
[so.git] / bpmn / MSOGammaBPMN / src / main / resources / subprocess / VfModularity / UpdateAAIGenericVnf.bpmn
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <bpmn2:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:camunda="http://activiti.org/bpmn" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd" id="_Wblj8GyfEeWUWLTvug7ZOg" exporter="camunda modeler" exporterVersion="2.7.0" targetNamespace="http://activiti.org/bpmn">\r
3   <bpmn2:process id="UpdateAAIGenericVnf" name="UpdateAAIGenericVnf" isExecutable="true">\r
4     <bpmn2:documentation>This flow expects its incoming request to be in the variable 'UpdateAAIGenericVnfRequest'.  This flow produces no output.</bpmn2:documentation>\r
5     <bpmn2:scriptTask id="QueryAAIForGenericVNF" name="Query AAI for Generic VNF" scriptFormat="groovy">\r
6       <bpmn2:incoming>SequenceFlow_38</bpmn2:incoming>\r
7       <bpmn2:outgoing>SequenceFlow_39</bpmn2:outgoing>\r
8       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
9 def ugv = new UpdateAAIGenericVnf()
10 ugv.getGenericVnf(execution)]]></bpmn2:script>\r
11     </bpmn2:scriptTask>\r
12     <bpmn2:sequenceFlow id="SequenceFlow_39" name="" sourceRef="QueryAAIForGenericVNF" targetRef="ExclusiveGateway_3"/>\r
13     <bpmn2:endEvent id="EndEvent_2">\r
14       <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>\r
15       <bpmn2:errorEventDefinition id="_ErrorEventDefinition_50" errorRef="Error_1"/>\r
16     </bpmn2:endEvent>\r
17     <bpmn2:exclusiveGateway id="ExclusiveGateway_1" default="SequenceFlow_4">\r
18       <bpmn2:incoming>SequenceFlow_14</bpmn2:incoming>\r
19       <bpmn2:outgoing>SequenceFlow_13</bpmn2:outgoing>\r
20       <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>\r
21     </bpmn2:exclusiveGateway>\r
22     <bpmn2:sequenceFlow id="SequenceFlow_13" sourceRef="ExclusiveGateway_1" targetRef="EndEvent_4">\r
23       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">#{execution.getVariable('UAAIGenVnf_updateGenericVnfResponseCode') == 200}</bpmn2:conditionExpression>\r
24     </bpmn2:sequenceFlow>\r
25     <bpmn2:sequenceFlow id="SequenceFlow_4" name="Update Generic VNF Failure" sourceRef="ExclusiveGateway_1" targetRef="HandleUpdateGenericVNFFailure"/>\r
26     <bpmn2:scriptTask id="HandleUpdateGenericVNFFailure" name="Handle Update Generic VNF Failure" scriptFormat="groovy">\r
27       <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>\r
28       <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>\r
29       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
30 def ugv = new UpdateAAIGenericVnf()
31 ugv.handleUpdateGenericVnfFailure(execution)]]></bpmn2:script>\r
32     </bpmn2:scriptTask>\r
33     <bpmn2:sequenceFlow id="SequenceFlow_8" name="" sourceRef="HandleUpdateGenericVNFFailure" targetRef="EndEvent_2"/>\r
34     <bpmn2:endEvent id="EndEvent_4" name="TheEnd">\r
35       <bpmn2:extensionElements>\r
36         <camunda:connector>\r
37           <camunda:inputOutput>\r
38             <camunda:outputParameter name="CreateCustomerV1Response"><![CDATA[<aetgt:CreateCustomerResponse xmlns:aetgt="http://ecomp.att.com/mso/workflow/schema/v1"                   xmlns:ns="http://ecomp.att.com/mso/workflow/schema/v1">
39  <ns:GlobalCustomerId>${CCV1_subscriberglobalid}</ns:GlobalCustomerId>
40    </aetgt:CreateCustomerResponse>]]></camunda:outputParameter>\r
41           </camunda:inputOutput>\r
42         </camunda:connector>\r
43       </bpmn2:extensionElements>\r
44       <bpmn2:incoming>SequenceFlow_13</bpmn2:incoming>\r
45     </bpmn2:endEvent>\r
46     <bpmn2:scriptTask id="UpdateGenericVNF" name="Update Generic VNF" scriptFormat="groovy">\r
47       <bpmn2:incoming>SequenceFlow_22</bpmn2:incoming>\r
48       <bpmn2:outgoing>SequenceFlow_14</bpmn2:outgoing>\r
49       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
50 def ugv = new UpdateAAIGenericVnf()
51 ugv.updateGenericVnf(execution)]]></bpmn2:script>\r
52     </bpmn2:scriptTask>\r
53     <bpmn2:sequenceFlow id="SequenceFlow_14" name="" sourceRef="UpdateGenericVNF" targetRef="ExclusiveGateway_1"/>\r
54     <bpmn2:exclusiveGateway id="ExclusiveGateway_3" default="SequenceFlow_23">\r
55       <bpmn2:incoming>SequenceFlow_39</bpmn2:incoming>\r
56       <bpmn2:outgoing>SequenceFlow_22</bpmn2:outgoing>\r
57       <bpmn2:outgoing>SequenceFlow_23</bpmn2:outgoing>\r
58     </bpmn2:exclusiveGateway>\r
59     <bpmn2:sequenceFlow id="SequenceFlow_22" name="" sourceRef="ExclusiveGateway_3" targetRef="UpdateGenericVNF">\r
60       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression">#{execution.getVariable('UAAIGenVnf_getGenericVnfResponseCode') == 200}</bpmn2:conditionExpression>\r
61     </bpmn2:sequenceFlow>\r
62     <bpmn2:sequenceFlow id="SequenceFlow_23" name="AAI Query failure or&#xD;&#xA;Generic VNF not  found" sourceRef="ExclusiveGateway_3" targetRef="AAIQueryFailure"/>\r
63     <bpmn2:scriptTask id="AAIQueryFailure" name="Handle AAI Query Failure" scriptFormat="groovy">\r
64       <bpmn2:incoming>SequenceFlow_23</bpmn2:incoming>\r
65       <bpmn2:outgoing>SequenceFlow_18</bpmn2:outgoing>\r
66       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
67 def ugv = new UpdateAAIGenericVnf()
68 ugv.handleAAIQueryFailure(execution)]]></bpmn2:script>\r
69     </bpmn2:scriptTask>\r
70     <bpmn2:sequenceFlow id="SequenceFlow_18" name="" sourceRef="AAIQueryFailure" targetRef="EndEvent_7"/>\r
71     <bpmn2:endEvent id="EndEvent_7">\r
72       <bpmn2:incoming>SequenceFlow_18</bpmn2:incoming>\r
73       <bpmn2:errorEventDefinition id="_ErrorEventDefinition_68" errorRef="Error_1"/>\r
74     </bpmn2:endEvent>\r
75     <bpmn2:startEvent id="StartEvent_1" name="Start">\r
76       <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>\r
77     </bpmn2:startEvent>\r
78     <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="ProcessReceivedRequest"/>\r
79     <bpmn2:scriptTask id="ProcessReceivedRequest" name="Process Received Request" scriptFormat="groovy">\r
80       <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>\r
81       <bpmn2:outgoing>SequenceFlow_38</bpmn2:outgoing>\r
82       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
83 def ugv = new UpdateAAIGenericVnf()
84 ugv.preProcessRequest(execution)]]></bpmn2:script>\r
85     </bpmn2:scriptTask>\r
86     <bpmn2:sequenceFlow id="SequenceFlow_38" name="" sourceRef="ProcessReceivedRequest" targetRef="QueryAAIForGenericVNF"/>\r
87   </bpmn2:process>\r
88   <bpmn2:error id="Error_1" errorCode="MSOWorkflowException" name="MSO Workflow Exception"/>\r
89   <bpmndi:BPMNDiagram id="BPMNDiagram_1">\r
90     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="UpdateAAIGenericVnf">\r
91       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_37" bpmnElement="StartEvent_1">\r
92         <dc:Bounds height="36.0" width="36.0" x="43.0" y="212.0"/>\r
93         <bpmndi:BPMNLabel>\r
94           <dc:Bounds height="22.0" width="34.0" x="44.0" y="253.0"/>\r
95         </bpmndi:BPMNLabel>\r
96       </bpmndi:BPMNShape>\r
97       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_22" bpmnElement="ProcessReceivedRequest">\r
98         <dc:Bounds height="80.0" width="100.0" x="168.0" y="190.0"/>\r
99       </bpmndi:BPMNShape>\r
100       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_37" targetElement="_BPMNShape_ScriptTask_22">\r
101         <di:waypoint xsi:type="dc:Point" x="79.0" y="230.0"/>\r
102         <di:waypoint xsi:type="dc:Point" x="168.0" y="230.0"/>\r
103         <bpmndi:BPMNLabel>\r
104           <dc:Bounds height="6.0" width="6.0" x="101.0" y="230.0"/>\r
105         </bpmndi:BPMNLabel>\r
106       </bpmndi:BPMNEdge>\r
107       <bpmndi:BPMNShape id="_BPMNShape_Task_2" bpmnElement="UpdateGenericVNF">\r
108         <dc:Bounds height="80.0" width="100.0" x="683.0" y="190.0"/>\r
109       </bpmndi:BPMNShape>\r
110       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_92" bpmnElement="EndEvent_4">\r
111         <dc:Bounds height="36.0" width="36.0" x="984.0" y="214.0"/>\r
112         <bpmndi:BPMNLabel>\r
113           <dc:Bounds height="22.0" width="50.0" x="977.0" y="255.0"/>\r
114         </bpmndi:BPMNLabel>\r
115       </bpmndi:BPMNShape>\r
116       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_54" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true">\r
117         <dc:Bounds height="50.0" width="50.0" x="840.0" y="206.0"/>\r
118         <bpmndi:BPMNLabel>\r
119           <dc:Bounds height="0.0" width="0.0" x="865.0" y="261.0"/>\r
120         </bpmndi:BPMNLabel>\r
121       </bpmndi:BPMNShape>\r
122       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_14" bpmnElement="SequenceFlow_13" sourceElement="_BPMNShape_ExclusiveGateway_54" targetElement="_BPMNShape_EndEvent_92">\r
123         <di:waypoint xsi:type="dc:Point" x="890.0" y="231.0"/>\r
124         <di:waypoint xsi:type="dc:Point" x="984.0" y="232.0"/>\r
125         <bpmndi:BPMNLabel>\r
126           <dc:Bounds height="0.0" width="0.0" x="904.0" y="231.0"/>\r
127         </bpmndi:BPMNLabel>\r
128       </bpmndi:BPMNEdge>\r
129       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_120" bpmnElement="EndEvent_2">\r
130         <dc:Bounds height="36.0" width="36.0" x="848.0" y="0.0"/>\r
131         <bpmndi:BPMNLabel>\r
132           <dc:Bounds height="0.0" width="0.0" x="866.0" y="41.0"/>\r
133         </bpmndi:BPMNLabel>\r
134       </bpmndi:BPMNShape>\r
135       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_86" bpmnElement="ExclusiveGateway_3" isMarkerVisible="true">\r
136         <dc:Bounds height="50.0" width="50.0" x="500.0" y="204.0"/>\r
137         <bpmndi:BPMNLabel>\r
138           <dc:Bounds height="0.0" width="0.0" x="525.0" y="259.0"/>\r
139         </bpmndi:BPMNLabel>\r
140       </bpmndi:BPMNShape>\r
141       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_23" bpmnElement="SequenceFlow_22" sourceElement="_BPMNShape_ExclusiveGateway_86" targetElement="_BPMNShape_Task_2">\r
142         <di:waypoint xsi:type="dc:Point" x="550.0" y="229.0"/>\r
143         <di:waypoint xsi:type="dc:Point" x="683.0" y="230.0"/>\r
144         <bpmndi:BPMNLabel>\r
145           <dc:Bounds height="6.0" width="6.0" x="565.0" y="229.0"/>\r
146         </bpmndi:BPMNLabel>\r
147       </bpmndi:BPMNEdge>\r
148       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_155" bpmnElement="AAIQueryFailure">\r
149         <dc:Bounds height="80.0" width="100.0" x="476.0" y="60.0"/>\r
150       </bpmndi:BPMNShape>\r
151       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_24" bpmnElement="SequenceFlow_23" sourceElement="_BPMNShape_ExclusiveGateway_86" targetElement="_BPMNShape_ScriptTask_155">\r
152         <di:waypoint xsi:type="dc:Point" x="525.0" y="204.0"/>\r
153         <di:waypoint xsi:type="dc:Point" x="525.0" y="190.0"/>\r
154         <di:waypoint xsi:type="dc:Point" x="526.0" y="190.0"/>\r
155         <di:waypoint xsi:type="dc:Point" x="526.0" y="140.0"/>\r
156         <bpmndi:BPMNLabel>\r
157           <dc:Bounds height="38.0" width="142.0" x="543.0" y="149.0"/>\r
158         </bpmndi:BPMNLabel>\r
159       </bpmndi:BPMNEdge>\r
160       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_160" bpmnElement="EndEvent_7">\r
161         <dc:Bounds height="36.0" width="36.0" x="508.0" y="0.0"/>\r
162         <bpmndi:BPMNLabel>\r
163           <dc:Bounds height="0.0" width="0.0" x="526.0" y="41.0"/>\r
164         </bpmndi:BPMNLabel>\r
165       </bpmndi:BPMNShape>\r
166       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_18" bpmnElement="SequenceFlow_18" sourceElement="_BPMNShape_ScriptTask_155" targetElement="_BPMNShape_EndEvent_160">\r
167         <di:waypoint xsi:type="dc:Point" x="526.0" y="60.0"/>\r
168         <di:waypoint xsi:type="dc:Point" x="526.0" y="36.0"/>\r
169         <bpmndi:BPMNLabel>\r
170           <dc:Bounds height="6.0" width="6.0" x="523.0" y="49.0"/>\r
171         </bpmndi:BPMNLabel>\r
172       </bpmndi:BPMNEdge>\r
173       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_160" bpmnElement="QueryAAIForGenericVNF">\r
174         <dc:Bounds height="80.0" width="100.0" x="336.0" y="190.0"/>\r
175       </bpmndi:BPMNShape>\r
176       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_38" bpmnElement="SequenceFlow_38" sourceElement="_BPMNShape_ScriptTask_22" targetElement="_BPMNShape_ScriptTask_160">\r
177         <di:waypoint xsi:type="dc:Point" x="268.0" y="230.0"/>\r
178         <di:waypoint xsi:type="dc:Point" x="336.0" y="230.0"/>\r
179         <bpmndi:BPMNLabel>\r
180           <dc:Bounds height="6.0" width="6.0" x="288.0" y="230.0"/>\r
181         </bpmndi:BPMNLabel>\r
182       </bpmndi:BPMNEdge>\r
183       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_39" bpmnElement="SequenceFlow_39" sourceElement="_BPMNShape_ScriptTask_160" targetElement="_BPMNShape_ExclusiveGateway_86">\r
184         <di:waypoint xsi:type="dc:Point" x="436.0" y="230.0"/>\r
185         <di:waypoint xsi:type="dc:Point" x="500.0" y="229.0"/>\r
186         <bpmndi:BPMNLabel>\r
187           <dc:Bounds height="6.0" width="6.0" x="450.0" y="230.0"/>\r
188         </bpmndi:BPMNLabel>\r
189       </bpmndi:BPMNEdge>\r
190       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_161" bpmnElement="HandleUpdateGenericVNFFailure">\r
191         <dc:Bounds height="80.0" width="100.0" x="816.0" y="60.0"/>\r
192       </bpmndi:BPMNShape>\r
193       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_ScriptTask_161" targetElement="_BPMNShape_EndEvent_120">\r
194         <di:waypoint xsi:type="dc:Point" x="866.0" y="60.0"/>\r
195         <di:waypoint xsi:type="dc:Point" x="866.0" y="36.0"/>\r
196         <bpmndi:BPMNLabel>\r
197           <dc:Bounds height="6.0" width="6.0" x="863.0" y="51.0"/>\r
198         </bpmndi:BPMNLabel>\r
199       </bpmndi:BPMNEdge>\r
200       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_13" bpmnElement="SequenceFlow_14" sourceElement="_BPMNShape_Task_2" targetElement="_BPMNShape_ExclusiveGateway_54">\r
201         <di:waypoint xsi:type="dc:Point" x="783.0" y="230.0"/>\r
202         <di:waypoint xsi:type="dc:Point" x="840.0" y="231.0"/>\r
203         <bpmndi:BPMNLabel>\r
204           <dc:Bounds height="6.0" width="6.0" x="813.0" y="231.0"/>\r
205         </bpmndi:BPMNLabel>\r
206       </bpmndi:BPMNEdge>\r
207       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ExclusiveGateway_54" targetElement="_BPMNShape_ScriptTask_161">\r
208         <di:waypoint xsi:type="dc:Point" x="865.0" y="206.0"/>\r
209         <di:waypoint xsi:type="dc:Point" x="866.0" y="140.0"/>\r
210         <bpmndi:BPMNLabel>\r
211           <dc:Bounds height="22.0" width="169.0" x="867.0" y="157.0"/>\r
212         </bpmndi:BPMNLabel>\r
213       </bpmndi:BPMNEdge>\r
214     </bpmndi:BPMNPlane>\r
215   </bpmndi:BPMNDiagram>\r
216 </bpmn2:definitions>