xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 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://camunda.org/schema/1.0/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://camunda.org/schema/1.0/bpmn"> |
| 3 | <bpmn2:process id="ConfirmVolumeGroupName" name="ConfirmVolumeGroupName" isExecutable="true"> |
| 4 | <bpmn2:exclusiveGateway id="ExclusiveGateway_3" default="SequenceFlow_2"> |
| 5 | <bpmn2:incoming>SequenceFlow_39</bpmn2:incoming> |
| 6 | <bpmn2:outgoing>SequenceFlow_23</bpmn2:outgoing> |
| 7 | <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing> |
| 8 | </bpmn2:exclusiveGateway> |
| 9 | <bpmn2:sequenceFlow id="SequenceFlow_23" name="" sourceRef="ExclusiveGateway_3" targetRef="AAIQueryFailure"> |
| 10 | <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("CVGN_queryVolumeGroupResponseCode") != 200 && execution.getVariable("CVGN_queryVolumeGroupResponseCode") != 404}]]></bpmn2:conditionExpression> |
| 11 | </bpmn2:sequenceFlow> |
| 12 | <bpmn2:scriptTask id="AAIQueryFailure" name="AAI Query Failure" scriptFormat="groovy"> |
| 13 | <bpmn2:incoming>SequenceFlow_23</bpmn2:incoming> |
| 14 | <bpmn2:outgoing>SequenceFlow_18</bpmn2:outgoing> |
| 15 | <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.* |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 16 | def cvgn= new ConfirmVolumeGroupName() |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 17 | cvgn.handleAAIQueryFailure(execution)]]></bpmn2:script> |
| 18 | </bpmn2:scriptTask> |
| 19 | <bpmn2:sequenceFlow id="SequenceFlow_18" name="" sourceRef="AAIQueryFailure" targetRef="EndEvent_7"/> |
| 20 | <bpmn2:endEvent id="EndEvent_7"> |
| 21 | <bpmn2:incoming>SequenceFlow_18</bpmn2:incoming> |
| 22 | <bpmn2:errorEventDefinition id="_ErrorEventDefinition_68" errorRef="Error_1"/> |
| 23 | </bpmn2:endEvent> |
| 24 | <bpmn2:scriptTask id="QueryAAIForVolumeGroupId" name="Query AAI for
Volume Group Id" scriptFormat="groovy"> |
| 25 | <bpmn2:incoming>SequenceFlow_38</bpmn2:incoming> |
| 26 | <bpmn2:outgoing>SequenceFlow_39</bpmn2:outgoing> |
| 27 | <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.* |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 28 | def cvgn= new ConfirmVolumeGroupName() |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 29 | cvgn.queryAAIForVolumeGroupId(execution)]]></bpmn2:script> |
| 30 | </bpmn2:scriptTask> |
| 31 | <bpmn2:sequenceFlow id="SequenceFlow_39" name="" sourceRef="QueryAAIForVolumeGroupId" targetRef="ExclusiveGateway_3"/> |
| 32 | <bpmn2:scriptTask id="InitializeVariables" name="Initialize Variables" scriptFormat="groovy"> |
| 33 | <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming> |
| 34 | <bpmn2:outgoing>SequenceFlow_38</bpmn2:outgoing> |
| 35 | <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.* |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 36 | def cvgn= new ConfirmVolumeGroupName() |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 37 | cvgn.preProcessRequest(execution)]]></bpmn2:script> |
| 38 | </bpmn2:scriptTask> |
| 39 | <bpmn2:sequenceFlow id="SequenceFlow_38" name="" sourceRef="InitializeVariables" targetRef="QueryAAIForVolumeGroupId"/> |
| 40 | <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="ExclusiveGateway_3" targetRef="CheckAAIQueryResult"/> |
| 41 | <bpmn2:scriptTask id="CheckAAIQueryResult" name="Check AAI Query Result" scriptFormat="groovy"> |
| 42 | <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming> |
| 43 | <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing> |
| 44 | <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.* |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 45 | def cvgn= new ConfirmVolumeGroupName() |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 46 | cvgn.checkAAIQueryResult(execution)]]></bpmn2:script> |
| 47 | </bpmn2:scriptTask> |
| 48 | <bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="CheckAAIQueryResult" targetRef="ExclusiveGateway_1"/> |
| 49 | <bpmn2:scriptTask id="VolumeGroupNotInName" name="Volume Group Not In Name" scriptFormat="groovy"> |
| 50 | <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming> |
| 51 | <bpmn2:outgoing>SequenceFlow_11</bpmn2:outgoing> |
| 52 | <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.* |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 53 | def cvgn= new ConfirmVolumeGroupName() |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 54 | cvgn.handleVolumeGroupNameNoMatch(execution)]]></bpmn2:script> |
| 55 | </bpmn2:scriptTask> |
| 56 | <bpmn2:exclusiveGateway id="ExclusiveGateway_1" default="SequenceFlow_7"> |
| 57 | <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming> |
| 58 | <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing> |
| 59 | <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing> |
| 60 | </bpmn2:exclusiveGateway> |
| 61 | <bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="ExclusiveGateway_1" targetRef="EndEvent_4"> |
| 62 | <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("CVGN_volumeGroupNameMatches")==true}]]></bpmn2:conditionExpression> |
| 63 | </bpmn2:sequenceFlow> |
| 64 | <bpmn2:sequenceFlow id="SequenceFlow_7" name="" sourceRef="ExclusiveGateway_1" targetRef="VolumeGroupNotInName"/> |
| 65 | <bpmn2:endEvent id="EndEvent_4"> |
| 66 | <bpmn2:extensionElements> |
| 67 | <camunda:connector> |
| 68 | <camunda:inputOutput> |
| 69 | <camunda:outputParameter name="WorkflowResponse"><![CDATA[<aetgt:CreateVfModuleResponse xmlns:aetgt="http://org.openecomp/mso/workflow/schema/v1" xmlns:ns="http://org.openecomp/mso/workflow/schema/v1"> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 70 | <ns:response>SUCCESS</ns:response> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 71 | </aetgt:CreateVfModuleResponse>]]></camunda:outputParameter> |
| 72 | </camunda:inputOutput> |
| 73 | </camunda:connector> |
| 74 | </bpmn2:extensionElements> |
| 75 | <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming> |
| 76 | <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_2"/> |
| 77 | </bpmn2:endEvent> |
| 78 | <bpmn2:sequenceFlow id="SequenceFlow_11" name="" sourceRef="VolumeGroupNotInName" targetRef="EndEvent_1"/> |
| 79 | <bpmn2:endEvent id="EndEvent_1"> |
| 80 | <bpmn2:incoming>SequenceFlow_11</bpmn2:incoming> |
| 81 | <bpmn2:errorEventDefinition id="_ErrorEventDefinition_70" errorRef="Error_1"/> |
| 82 | </bpmn2:endEvent> |
| 83 | <bpmn2:startEvent id="StartEvent_1"> |
| 84 | <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing> |
| 85 | </bpmn2:startEvent> |
| 86 | <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="InitializeVariables"/> |
| 87 | </bpmn2:process> |
| 88 | <bpmn2:message id="Message_1" name="ConfirmVolumeGroupNameRequest"/> |
| 89 | <bpmn2:error id="Error_1" errorCode="MSOWorkflowException" name="MSO Workflow Exception"/> |
| 90 | <bpmndi:BPMNDiagram id="BPMNDiagram_1"> |
| 91 | <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CreateAAIVfModule"> |
| 92 | <bpmndi:BPMNShape id="_BPMNShape_StartEvent_37" bpmnElement="StartEvent_1"> |
| 93 | <dc:Bounds height="36.0" width="36.0" x="43.0" y="199.0"/> |
| 94 | <bpmndi:BPMNLabel> |
| 95 | <dc:Bounds height="0.0" width="0.0" x="61.0" y="240.0"/> |
| 96 | </bpmndi:BPMNLabel> |
| 97 | </bpmndi:BPMNShape> |
| 98 | <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_22" bpmnElement="InitializeVariables"> |
| 99 | <dc:Bounds height="80.0" width="100.0" x="204.0" y="178.0"/> |
| 100 | </bpmndi:BPMNShape> |
| 101 | <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_37" targetElement="_BPMNShape_ScriptTask_22"> |
| 102 | <di:waypoint xsi:type="dc:Point" x="79.0" y="217.0"/> |
| 103 | <di:waypoint xsi:type="dc:Point" x="120.0" y="217.0"/> |
| 104 | <di:waypoint xsi:type="dc:Point" x="120.0" y="218.0"/> |
| 105 | <di:waypoint xsi:type="dc:Point" x="204.0" y="218.0"/> |
| 106 | <bpmndi:BPMNLabel> |
| 107 | <dc:Bounds height="6.0" width="6.0" x="101.0" y="217.0"/> |
| 108 | </bpmndi:BPMNLabel> |
| 109 | </bpmndi:BPMNEdge> |
| 110 | <bpmndi:BPMNShape id="_BPMNShape_EndEvent_92" bpmnElement="EndEvent_4"> |
| 111 | <dc:Bounds height="36.0" width="36.0" x="912.0" y="199.0"/> |
| 112 | <bpmndi:BPMNLabel> |
| 113 | <dc:Bounds height="0.0" width="0.0" x="930.0" y="240.0"/> |
| 114 | </bpmndi:BPMNLabel> |
| 115 | </bpmndi:BPMNShape> |
| 116 | <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_86" bpmnElement="ExclusiveGateway_3" isMarkerVisible="true"> |
| 117 | <dc:Bounds height="50.0" width="50.0" x="468.0" y="191.0"/> |
| 118 | <bpmndi:BPMNLabel> |
| 119 | <dc:Bounds height="0.0" width="0.0" x="493.0" y="246.0"/> |
| 120 | </bpmndi:BPMNLabel> |
| 121 | </bpmndi:BPMNShape> |
| 122 | <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_155" bpmnElement="AAIQueryFailure"> |
| 123 | <dc:Bounds height="80.0" width="100.0" x="518.0" y="297.0"/> |
| 124 | </bpmndi:BPMNShape> |
| 125 | <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_24" bpmnElement="SequenceFlow_23" sourceElement="_BPMNShape_ExclusiveGateway_86" targetElement="_BPMNShape_ScriptTask_155"> |
| 126 | <di:waypoint xsi:type="dc:Point" x="493.0" y="241.0"/> |
| 127 | <di:waypoint xsi:type="dc:Point" x="493.0" y="259.0"/> |
| 128 | <di:waypoint xsi:type="dc:Point" x="568.0" y="259.0"/> |
| 129 | <di:waypoint xsi:type="dc:Point" x="568.0" y="297.0"/> |
| 130 | <bpmndi:BPMNLabel> |
| 131 | <dc:Bounds height="6.0" width="6.0" x="547.0" y="259.0"/> |
| 132 | </bpmndi:BPMNLabel> |
| 133 | </bpmndi:BPMNEdge> |
| 134 | <bpmndi:BPMNShape id="_BPMNShape_EndEvent_160" bpmnElement="EndEvent_7"> |
| 135 | <dc:Bounds height="36.0" width="36.0" x="550.0" y="416.0"/> |
| 136 | <bpmndi:BPMNLabel> |
| 137 | <dc:Bounds height="0.0" width="0.0" x="568.0" y="457.0"/> |
| 138 | </bpmndi:BPMNLabel> |
| 139 | </bpmndi:BPMNShape> |
| 140 | <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_18" bpmnElement="SequenceFlow_18" sourceElement="_BPMNShape_ScriptTask_155" targetElement="_BPMNShape_EndEvent_160"> |
| 141 | <di:waypoint xsi:type="dc:Point" x="568.0" y="377.0"/> |
| 142 | <di:waypoint xsi:type="dc:Point" x="568.0" y="416.0"/> |
| 143 | <bpmndi:BPMNLabel> |
| 144 | <dc:Bounds height="6.0" width="6.0" x="565.0" y="388.0"/> |
| 145 | </bpmndi:BPMNLabel> |
| 146 | </bpmndi:BPMNEdge> |
| 147 | <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_160" bpmnElement="QueryAAIForVolumeGroupId"> |
| 148 | <dc:Bounds height="80.0" width="100.0" x="336.0" y="178.0"/> |
| 149 | </bpmndi:BPMNShape> |
| 150 | <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_38" bpmnElement="SequenceFlow_38" sourceElement="_BPMNShape_ScriptTask_22" targetElement="_BPMNShape_ScriptTask_160"> |
| 151 | <di:waypoint xsi:type="dc:Point" x="304.0" y="218.0"/> |
| 152 | <di:waypoint xsi:type="dc:Point" x="336.0" y="218.0"/> |
| 153 | <bpmndi:BPMNLabel> |
| 154 | <dc:Bounds height="6.0" width="6.0" x="324.0" y="218.0"/> |
| 155 | </bpmndi:BPMNLabel> |
| 156 | </bpmndi:BPMNEdge> |
| 157 | <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_39" bpmnElement="SequenceFlow_39" sourceElement="_BPMNShape_ScriptTask_160" targetElement="_BPMNShape_ExclusiveGateway_86"> |
| 158 | <di:waypoint xsi:type="dc:Point" x="436.0" y="218.0"/> |
| 159 | <di:waypoint xsi:type="dc:Point" x="452.0" y="218.0"/> |
| 160 | <di:waypoint xsi:type="dc:Point" x="452.0" y="216.0"/> |
| 161 | <di:waypoint xsi:type="dc:Point" x="468.0" y="216.0"/> |
| 162 | <bpmndi:BPMNLabel> |
| 163 | <dc:Bounds height="6.0" width="6.0" x="449.0" y="217.0"/> |
| 164 | </bpmndi:BPMNLabel> |
| 165 | </bpmndi:BPMNEdge> |
| 166 | <bpmndi:BPMNShape id="_BPMNShape_EndEvent_162" bpmnElement="EndEvent_1"> |
| 167 | <dc:Bounds height="36.0" width="36.0" x="720.0" y="415.0"/> |
| 168 | <bpmndi:BPMNLabel> |
| 169 | <dc:Bounds height="0.0" width="0.0" x="738.0" y="456.0"/> |
| 170 | </bpmndi:BPMNLabel> |
| 171 | </bpmndi:BPMNShape> |
| 172 | <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_177" bpmnElement="CheckAAIQueryResult"> |
| 173 | <dc:Bounds height="80.0" width="100.0" x="624.0" y="177.0"/> |
| 174 | </bpmndi:BPMNShape> |
| 175 | <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ExclusiveGateway_86" targetElement="_BPMNShape_ScriptTask_177"> |
| 176 | <di:waypoint xsi:type="dc:Point" x="518.0" y="216.0"/> |
| 177 | <di:waypoint xsi:type="dc:Point" x="551.0" y="216.0"/> |
| 178 | <di:waypoint xsi:type="dc:Point" x="551.0" y="217.0"/> |
| 179 | <di:waypoint xsi:type="dc:Point" x="624.0" y="217.0"/> |
| 180 | <bpmndi:BPMNLabel> |
| 181 | <dc:Bounds height="6.0" width="6.0" x="548.0" y="217.0"/> |
| 182 | </bpmndi:BPMNLabel> |
| 183 | </bpmndi:BPMNEdge> |
| 184 | <bpmndi:BPMNShape id="_BPMNShape_ExclusiveGateway_103" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true"> |
| 185 | <dc:Bounds height="50.0" width="50.0" x="801.0" y="191.0"/> |
| 186 | <bpmndi:BPMNLabel> |
| 187 | <dc:Bounds height="0.0" width="0.0" x="826.0" y="246.0"/> |
| 188 | </bpmndi:BPMNLabel> |
| 189 | </bpmndi:BPMNShape> |
| 190 | <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ScriptTask_177" targetElement="_BPMNShape_ExclusiveGateway_103"> |
| 191 | <di:waypoint xsi:type="dc:Point" x="724.0" y="217.0"/> |
| 192 | <di:waypoint xsi:type="dc:Point" x="762.0" y="217.0"/> |
| 193 | <di:waypoint xsi:type="dc:Point" x="762.0" y="216.0"/> |
| 194 | <di:waypoint xsi:type="dc:Point" x="801.0" y="216.0"/> |
| 195 | <bpmndi:BPMNLabel> |
| 196 | <dc:Bounds height="6.0" width="6.0" x="735.0" y="217.0"/> |
| 197 | </bpmndi:BPMNLabel> |
| 198 | </bpmndi:BPMNEdge> |
| 199 | <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_ExclusiveGateway_103" targetElement="_BPMNShape_EndEvent_92"> |
| 200 | <di:waypoint xsi:type="dc:Point" x="851.0" y="216.0"/> |
| 201 | <di:waypoint xsi:type="dc:Point" x="869.0" y="216.0"/> |
| 202 | <di:waypoint xsi:type="dc:Point" x="869.0" y="217.0"/> |
| 203 | <di:waypoint xsi:type="dc:Point" x="912.0" y="217.0"/> |
| 204 | <bpmndi:BPMNLabel> |
| 205 | <dc:Bounds height="6.0" width="6.0" x="855.0" y="216.0"/> |
| 206 | </bpmndi:BPMNLabel> |
| 207 | </bpmndi:BPMNEdge> |
| 208 | <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_179" bpmnElement="VolumeGroupNotInName"> |
| 209 | <dc:Bounds height="80.0" width="100.0" x="688.0" y="297.0"/> |
| 210 | </bpmndi:BPMNShape> |
| 211 | <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_8" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ExclusiveGateway_103" targetElement="_BPMNShape_ScriptTask_179"> |
| 212 | <di:waypoint xsi:type="dc:Point" x="826.0" y="241.0"/> |
| 213 | <di:waypoint xsi:type="dc:Point" x="826.0" y="269.0"/> |
| 214 | <di:waypoint xsi:type="dc:Point" x="738.0" y="269.0"/> |
| 215 | <di:waypoint xsi:type="dc:Point" x="738.0" y="297.0"/> |
| 216 | <bpmndi:BPMNLabel> |
| 217 | <dc:Bounds height="6.0" width="6.0" x="822.0" y="269.0"/> |
| 218 | </bpmndi:BPMNLabel> |
| 219 | </bpmndi:BPMNEdge> |
| 220 | <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_11" bpmnElement="SequenceFlow_11" sourceElement="_BPMNShape_ScriptTask_179" targetElement="_BPMNShape_EndEvent_162"> |
| 221 | <di:waypoint xsi:type="dc:Point" x="738.0" y="377.0"/> |
| 222 | <di:waypoint xsi:type="dc:Point" x="738.0" y="415.0"/> |
| 223 | <bpmndi:BPMNLabel> |
| 224 | <dc:Bounds height="6.0" width="6.0" x="735.0" y="391.0"/> |
| 225 | </bpmndi:BPMNLabel> |
| 226 | </bpmndi:BPMNEdge> |
| 227 | </bpmndi:BPMNPlane> |
| 228 | </bpmndi:BPMNDiagram> |
ChrisC | 025301d | 2017-01-31 11:40:03 +0100 | [diff] [blame] | 229 | </bpmn2:definitions> |