Initial OpenECOMP MSO commit
[so.git] / bpmn / MSOGammaBPMN / src / main / resources / subprocess / VfModularity / ConfirmVolumeGroupTenant.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="_jPy0EB7JEeaR94RQz1cKqQ" exporter="camunda modeler" exporterVersion="2.7.0" targetNamespace="http://activiti.org/bpmn">\r
3   <bpmn2:process id="ConfirmVolumeGroupTenant" name="ConfirmVolumeGroupTenant" isExecutable="true">\r
4     <bpmn2:scriptTask id="queryAAIForVolumeGroup" name="Query AAI Volume Group" scriptFormat="groovy">\r
5       <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>\r
6       <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>\r
7       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
8 ConfirmVolumeGroupTenant volume = new ConfirmVolumeGroupTenant()
9 volume.preProcessRequest(execution)]]></bpmn2:script>\r
10     </bpmn2:scriptTask>\r
11     <bpmn2:exclusiveGateway id="tenantIdMatchCheck" name="Tenant Ids&#xD;&#xA;Match?" default="idsMatchNo">\r
12       <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>\r
13       <bpmn2:outgoing>idsMatchNo</bpmn2:outgoing>\r
14       <bpmn2:outgoing>idsMatchYes</bpmn2:outgoing>\r
15     </bpmn2:exclusiveGateway>\r
16     <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="queryAAIForVolumeGroup" targetRef="tenantIdMatchCheck"/>\r
17     <bpmn2:sequenceFlow id="idsMatchNo" name="No" sourceRef="tenantIdMatchCheck" targetRef="assignError"/>\r
18     <bpmn2:sequenceFlow id="idsMatchYes" name="Yes" sourceRef="tenantIdMatchCheck" targetRef="tenantNamesMatchCheck">\r
19       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("tenantIdsMatch")==true}]]></bpmn2:conditionExpression>\r
20     </bpmn2:sequenceFlow>\r
21     <bpmn2:endEvent id="EndEvent_1">\r
22       <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>\r
23       <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_2"/>\r
24     </bpmn2:endEvent>\r
25     <bpmn2:scriptTask id="assignError" name="Assign Workflow Exception" scriptFormat="groovy">\r
26       <bpmn2:incoming>idsMatchNo</bpmn2:incoming>\r
27       <bpmn2:outgoing>SequenceFlow_8</bpmn2:outgoing>\r
28       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
29 ConfirmVolumeGroupTenant volume = new ConfirmVolumeGroupTenant()
30 volume.assignWorkflowException(execution, "does not belong to your tenant")]]></bpmn2:script>\r
31     </bpmn2:scriptTask>\r
32     <bpmn2:sequenceFlow id="SequenceFlow_8" name="" sourceRef="assignError" targetRef="EndEvent_3"/>\r
33     <bpmn2:endEvent id="EndEvent_3">\r
34       <bpmn2:incoming>SequenceFlow_8</bpmn2:incoming>\r
35       <bpmn2:errorEventDefinition id="_ErrorEventDefinition_75" errorRef="Error_1"/>\r
36     </bpmn2:endEvent>\r
37     <bpmn2:scriptTask id="assignVolumeHeatId" name="Assign Volume Heat Id" scriptFormat="groovy">\r
38       <bpmn2:incoming>groupNamesMatchYes</bpmn2:incoming>\r
39       <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>\r
40       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
41 ConfirmVolumeGroupTenant volume = new ConfirmVolumeGroupTenant()
42 volume.assignVolumeHeatId(execution)]]></bpmn2:script>\r
43     </bpmn2:scriptTask>\r
44     <bpmn2:sequenceFlow id="SequenceFlow_7" name="" sourceRef="assignVolumeHeatId" targetRef="EndEvent_1"/>\r
45     <bpmn2:scriptTask id="assignErrorNames" name="Assign Workflow Exception" scriptFormat="groovy">\r
46       <bpmn2:incoming>groupNamesMatchNo</bpmn2:incoming>\r
47       <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>\r
48       <bpmn2:script><![CDATA[import com.att.bpm.scripts.*
49 ConfirmVolumeGroupTenant volume = new ConfirmVolumeGroupTenant()
50 volume.assignWorkflowException(execution, "name does not match")]]></bpmn2:script>\r
51     </bpmn2:scriptTask>\r
52     <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="assignErrorNames" targetRef="EndEvent_2"/>\r
53     <bpmn2:endEvent id="EndEvent_2">\r
54       <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>\r
55       <bpmn2:errorEventDefinition id="_ErrorEventDefinition_74" errorRef="Error_1"/>\r
56     </bpmn2:endEvent>\r
57     <bpmn2:exclusiveGateway id="tenantNamesMatchCheck" name="Volume Group&#xD;&#xA;Names Match?" default="groupNamesMatchNo">\r
58       <bpmn2:incoming>idsMatchYes</bpmn2:incoming>\r
59       <bpmn2:outgoing>groupNamesMatchNo</bpmn2:outgoing>\r
60       <bpmn2:outgoing>groupNamesMatchYes</bpmn2:outgoing>\r
61     </bpmn2:exclusiveGateway>\r
62     <bpmn2:sequenceFlow id="groupNamesMatchNo" name="No" sourceRef="tenantNamesMatchCheck" targetRef="assignErrorNames"/>\r
63     <bpmn2:sequenceFlow id="groupNamesMatchYes" name="Yes" sourceRef="tenantNamesMatchCheck" targetRef="assignVolumeHeatId">\r
64       <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("groupNamesMatch")==true}]]></bpmn2:conditionExpression>\r
65     </bpmn2:sequenceFlow>\r
66     <bpmn2:startEvent id="StartEvent_1">\r
67       <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>\r
68     </bpmn2:startEvent>\r
69     <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="queryAAIForVolumeGroup"/>\r
70   </bpmn2:process>\r
71   <bpmn2:error id="Error_1" errorCode="MSOWorkflowException" name="MSO Workflow Exception"/>\r
72   <bpmndi:BPMNDiagram id="BPMNDiagram_1">\r
73     <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="ConfirmVolumeGroupTenant">\r
74       <bpmndi:BPMNShape id="_BPMNShape_StartEvent_61" bpmnElement="StartEvent_1">\r
75         <dc:Bounds height="36.0" width="36.0" x="129.0" y="324.0"/>\r
76         <bpmndi:BPMNLabel>\r
77           <dc:Bounds height="0.0" width="0.0" x="147.0" y="365.0"/>\r
78         </bpmndi:BPMNLabel>\r
79       </bpmndi:BPMNShape>\r
80       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_237" bpmnElement="queryAAIForVolumeGroup">\r
81         <dc:Bounds height="80.0" width="100.0" x="252.0" y="302.0"/>\r
82       </bpmndi:BPMNShape>\r
83       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_61" targetElement="_BPMNShape_ScriptTask_237">\r
84         <di:waypoint xsi:type="dc:Point" x="165.0" y="342.0"/>\r
85         <di:waypoint xsi:type="dc:Point" x="252.0" y="342.0"/>\r
86         <bpmndi:BPMNLabel>\r
87           <dc:Bounds height="6.0" width="6.0" x="179.0" y="342.0"/>\r
88         </bpmndi:BPMNLabel>\r
89       </bpmndi:BPMNEdge>\r
90       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_209" bpmnElement="tenantIdMatchCheck" isMarkerVisible="true">\r
91         <dc:Bounds height="50.0" width="50.0" x="384.0" y="316.0"/>\r
92         <bpmndi:BPMNLabel>\r
93           <dc:Bounds height="38.0" width="76.0" x="414.0" y="347.0"/>\r
94         </bpmndi:BPMNLabel>\r
95       </bpmndi:BPMNShape>\r
96       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_237" targetElement="_BPMNShape_ExclusiveGateway_209">\r
97         <di:waypoint xsi:type="dc:Point" x="352.0" y="342.0"/>\r
98         <di:waypoint xsi:type="dc:Point" x="368.0" y="342.0"/>\r
99         <di:waypoint xsi:type="dc:Point" x="368.0" y="341.0"/>\r
100         <di:waypoint xsi:type="dc:Point" x="384.0" y="341.0"/>\r
101       </bpmndi:BPMNEdge>\r
102       <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_210" bpmnElement="tenantNamesMatchCheck" isMarkerVisible="true">\r
103         <dc:Bounds height="50.0" width="50.0" x="460.0" y="216.0"/>\r
104         <bpmndi:BPMNLabel>\r
105           <dc:Bounds height="38.0" width="99.0" x="494.0" y="246.0"/>\r
106         </bpmndi:BPMNLabel>\r
107       </bpmndi:BPMNShape>\r
108       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_238" bpmnElement="assignError">\r
109         <dc:Bounds height="80.0" width="100.0" x="456.0" y="400.0"/>\r
110       </bpmndi:BPMNShape>\r
111       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="idsMatchNo" sourceElement="_BPMNShape_ExclusiveGateway_209" targetElement="_BPMNShape_ScriptTask_238">\r
112         <di:waypoint xsi:type="dc:Point" x="409.0" y="366.0"/>\r
113         <di:waypoint xsi:type="dc:Point" x="409.0" y="440.0"/>\r
114         <di:waypoint xsi:type="dc:Point" x="456.0" y="440.0"/>\r
115         <bpmndi:BPMNLabel>\r
116           <dc:Bounds height="22.0" width="22.0" x="414.0" y="400.0"/>\r
117         </bpmndi:BPMNLabel>\r
118       </bpmndi:BPMNEdge>\r
119       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="idsMatchYes" sourceElement="_BPMNShape_ExclusiveGateway_209" targetElement="_BPMNShape_ExclusiveGateway_210">\r
120         <di:waypoint xsi:type="dc:Point" x="409.0" y="316.0"/>\r
121         <di:waypoint xsi:type="dc:Point" x="409.0" y="241.0"/>\r
122         <di:waypoint xsi:type="dc:Point" x="460.0" y="241.0"/>\r
123         <bpmndi:BPMNLabel>\r
124           <dc:Bounds height="22.0" width="29.0" x="411.0" y="266.0"/>\r
125         </bpmndi:BPMNLabel>\r
126       </bpmndi:BPMNEdge>\r
127       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_239" bpmnElement="assignErrorNames">\r
128         <dc:Bounds height="80.0" width="100.0" x="555.0" y="296.0"/>\r
129       </bpmndi:BPMNShape>\r
130       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="groupNamesMatchNo" sourceElement="_BPMNShape_ExclusiveGateway_210" targetElement="_BPMNShape_ScriptTask_239">\r
131         <di:waypoint xsi:type="dc:Point" x="485.0" y="266.0"/>\r
132         <di:waypoint xsi:type="dc:Point" x="485.0" y="336.0"/>\r
133         <di:waypoint xsi:type="dc:Point" x="555.0" y="336.0"/>\r
134         <bpmndi:BPMNLabel>\r
135           <dc:Bounds height="22.0" width="22.0" x="491.0" y="296.0"/>\r
136         </bpmndi:BPMNLabel>\r
137       </bpmndi:BPMNEdge>\r
138       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_240" bpmnElement="assignVolumeHeatId">\r
139         <dc:Bounds height="80.0" width="100.0" x="555.0" y="120.0"/>\r
140       </bpmndi:BPMNShape>\r
141       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="groupNamesMatchYes" sourceElement="_BPMNShape_ExclusiveGateway_210" targetElement="_BPMNShape_ScriptTask_240">\r
142         <di:waypoint xsi:type="dc:Point" x="485.0" y="216.0"/>\r
143         <di:waypoint xsi:type="dc:Point" x="485.0" y="160.0"/>\r
144         <di:waypoint xsi:type="dc:Point" x="555.0" y="160.0"/>\r
145         <bpmndi:BPMNLabel>\r
146           <dc:Bounds height="22.0" width="29.0" x="487.0" y="173.0"/>\r
147         </bpmndi:BPMNLabel>\r
148       </bpmndi:BPMNEdge>\r
149       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_200" bpmnElement="EndEvent_1">\r
150         <dc:Bounds height="36.0" width="36.0" x="738.0" y="142.0"/>\r
151         <bpmndi:BPMNLabel>\r
152           <dc:Bounds height="0.0" width="0.0" x="756.0" y="183.0"/>\r
153         </bpmndi:BPMNLabel>\r
154       </bpmndi:BPMNShape>\r
155       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ScriptTask_240" targetElement="_BPMNShape_EndEvent_200">\r
156         <di:waypoint xsi:type="dc:Point" x="655.0" y="160.0"/>\r
157         <di:waypoint xsi:type="dc:Point" x="738.0" y="160.0"/>\r
158         <bpmndi:BPMNLabel>\r
159           <dc:Bounds height="6.0" width="6.0" x="692.0" y="160.0"/>\r
160         </bpmndi:BPMNLabel>\r
161       </bpmndi:BPMNEdge>\r
162       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_210" bpmnElement="EndEvent_2">\r
163         <dc:Bounds height="36.0" width="36.0" x="709.0" y="318.0"/>\r
164         <bpmndi:BPMNLabel>\r
165           <dc:Bounds height="0.0" width="0.0" x="727.0" y="359.0"/>\r
166         </bpmndi:BPMNLabel>\r
167       </bpmndi:BPMNShape>\r
168       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_211" bpmnElement="EndEvent_3">\r
169         <dc:Bounds height="36.0" width="36.0" x="605.0" y="422.0"/>\r
170         <bpmndi:BPMNLabel>\r
171           <dc:Bounds height="0.0" width="0.0" x="623.0" y="463.0"/>\r
172         </bpmndi:BPMNLabel>\r
173       </bpmndi:BPMNShape>\r
174       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_8" sourceElement="_BPMNShape_ScriptTask_238" targetElement="_BPMNShape_EndEvent_211">\r
175         <di:waypoint xsi:type="dc:Point" x="556.0" y="440.0"/>\r
176         <di:waypoint xsi:type="dc:Point" x="605.0" y="440.0"/>\r
177         <bpmndi:BPMNLabel>\r
178           <dc:Bounds height="6.0" width="6.0" x="591.0" y="440.0"/>\r
179         </bpmndi:BPMNLabel>\r
180       </bpmndi:BPMNEdge>\r
181       <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ScriptTask_239" targetElement="_BPMNShape_EndEvent_210">\r
182         <di:waypoint xsi:type="dc:Point" x="655.0" y="336.0"/>\r
183         <di:waypoint xsi:type="dc:Point" x="709.0" y="336.0"/>\r
184         <bpmndi:BPMNLabel>\r
185           <dc:Bounds height="6.0" width="6.0" x="680.0" y="336.0"/>\r
186         </bpmndi:BPMNLabel>\r
187       </bpmndi:BPMNEdge>\r
188     </bpmndi:BPMNPlane>\r
189   </bpmndi:BPMNDiagram>\r
190 </bpmn2:definitions>