1710 Rebase - Second Attempt
[so.git] / bpmn / MSOInfrastructureBPMN / src / main / resources / subprocess / DoCreateVfModule.bpmn
index fecb720..5383dc8 100644 (file)
@@ -37,9 +37,7 @@
       <bpmn2:outgoing>SequenceFlow_21</bpmn2:outgoing>\r
     </bpmn2:exclusiveGateway>\r
     <bpmn2:sequenceFlow id="SequenceFlow_19" name="yes" sourceRef="IsVolumeGroupNameSpecified" targetRef="ConfirmVolumeName">\r
-      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" language="groovy"><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*\r
-def doCreateVfModule = new DoCreateVfModule()\r
-return doCreateVfModule.isVolumeGroupNamePresent(execution)]]></bpmn2:conditionExpression>\r
+      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("DCVFM_volumeGroupName") != null && execution.getVariable("DCVFM_volumeGroupName") != "" }]]></bpmn2:conditionExpression>\r
     </bpmn2:sequenceFlow>\r
     <bpmn2:sequenceFlow id="SequenceFlow_21" name="no" sourceRef="IsVolumeGroupNameSpecified" targetRef="ExclusiveGateway_4" />\r
     <bpmn2:callActivity id="ConfirmVolumeName" name="Confirm Volume Group Name" calledElement="ConfirmVolumeGroupName">\r
@@ -180,9 +178,7 @@ doCreateVfModule.validateSDNCResponse(execution, response, "activate")]]></bpmn2
       <bpmn2:outgoing>SequenceFlow_30</bpmn2:outgoing>\r
     </bpmn2:exclusiveGateway>\r
     <bpmn2:sequenceFlow id="SequenceFlow_28" name="yes" sourceRef="ExclusiveGateway_5" targetRef="PrepareCreateAAIVfModuleVolumeGroupRequest">\r
-      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" language="groovy"><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*\r
-def doCreateVfModule = new DoCreateVfModule()\r
-return doCreateVfModule.isVolumeGroupIdPresent(execution)]]></bpmn2:conditionExpression>\r
+      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("DCVFM_volumeGroupId") != null && execution.getVariable("DCVFM_volumeGroupId") != "" }]]></bpmn2:conditionExpression>\r
     </bpmn2:sequenceFlow>\r
     <bpmn2:sequenceFlow id="SequenceFlow_30" name="no" sourceRef="ExclusiveGateway_5" targetRef="ExclusiveGateway_6" />\r
     <bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="PreProcessUpdateAAIVfModule_1" targetRef="UpdateAAIVfModule_1" />\r
@@ -314,29 +310,9 @@ def doCreateVfModule = new DoCreateVfModule()
 return doCreateVfModule.queryCloudRegion(execution)]]></bpmn2:script>\r
     </bpmn2:scriptTask>\r
     <bpmn2:sequenceFlow id="SequenceFlow_40" name="yes" sourceRef="IsVolumeGroupIdSpecified" targetRef="QueryCloudRegion">\r
-      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" language="groovy"><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*\r
-def doCreateVfModule = new DoCreateVfModule()\r
-return doCreateVfModule.isVolumeGroupIdPresent(execution)]]></bpmn2:conditionExpression>\r
+      <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("DCVFM_volumeGroupId") != null && execution.getVariable("DCVFM_volumeGroupId") != "" }]]></bpmn2:conditionExpression>\r
     </bpmn2:sequenceFlow>\r
     <bpmn2:sequenceFlow id="SequenceFlow_43" name="" sourceRef="QueryCloudRegion" targetRef="ConfirmVolumeGroupTenant" />\r
-    <bpmn2:subProcess id="SubProcess_1" name="Error Handling Sub Process" triggeredByEvent="true">\r
-      <bpmn2:scriptTask id="ScriptTask_1" name="Process Error" scriptFormat="groovy">\r
-        <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>\r
-        <bpmn2:outgoing>SequenceFlow_38</bpmn2:outgoing>\r
-        <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*\r
-def doCreateVfModule = new DoCreateVfModule()\r
-doCreateVfModule.processBPMNException(execution)]]></bpmn2:script>\r
-      </bpmn2:scriptTask>\r
-      <bpmn2:sequenceFlow id="SequenceFlow_38" name="" sourceRef="ScriptTask_1" targetRef="EndEvent_2" />\r
-      <bpmn2:startEvent id="StartEvent_2">\r
-        <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>\r
-        <bpmn2:errorEventDefinition id="ErrorEventDefinition_1" />\r
-      </bpmn2:startEvent>\r
-      <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="StartEvent_2" targetRef="ScriptTask_1" />\r
-      <bpmn2:endEvent id="EndEvent_2">\r
-        <bpmn2:incoming>SequenceFlow_38</bpmn2:incoming>\r
-      </bpmn2:endEvent>\r
-    </bpmn2:subProcess>\r
     <bpmn2:scriptTask id="PreProcessRequest" name="Pre-Process Request" scriptFormat="groovy">\r
       <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>\r
       <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>\r
@@ -354,7 +330,7 @@ doCreateVfModule.preProcessRequest(execution)]]></bpmn2:script>
       <bpmn2:extensionElements>\r
         <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />\r
         <camunda:in source="isVidRequest" target="isVidRequest" />\r
-        <camunda:in source="newVfModuleId" target="newVfModuleId" />\r
+        <camunda:in source="DCVFM_vfModuleId" target="newVfModuleId" />\r
         <camunda:out source="WorkflowException" target="WorkflowException" />\r
         <camunda:out source="CreateAAIVfModuleResponse" target="DCVFM_createVfModuleResponse" />\r
         <camunda:in source="DCVFM_vnfId" target="vnfId" />\r
@@ -498,6 +474,64 @@ doCreateVfModule.validateSDNCResponse(execution, response, "get")]]></bpmn2:scri
       <bpmn2:incoming>SequenceFlow_05og7iw</bpmn2:incoming>\r
       <bpmn2:outgoing>SequenceFlow_1f53tby</bpmn2:outgoing>\r
     </bpmn2:callActivity>\r
+    <bpmn2:subProcess id="SubProcess_0ltzufk" name="Sub-process for Application Errors" triggeredByEvent="true">\r
+      <bpmn2:startEvent id="StartEvent_18lzc5m">\r
+        <bpmn2:outgoing>SequenceFlow_02lc25j</bpmn2:outgoing>\r
+        <bpmn2:errorEventDefinition errorRef="Error_1" />\r
+      </bpmn2:startEvent>\r
+      <bpmn2:endEvent id="EndEvent_0wsdptv">\r
+        <bpmn2:incoming>SequenceFlow_0z2rczk</bpmn2:incoming>\r
+        <bpmn2:incoming>SequenceFlow_1pgo10r</bpmn2:incoming>\r
+      </bpmn2:endEvent>\r
+      <bpmn2:callActivity id="CallDoCreateVfModuleRollback" name="Call DoCreateVfModuleRollback" calledElement="DoCreateVfModuleRollback">\r
+        <bpmn2:extensionElements>\r
+          <camunda:in source="rollbackData" target="rollbackData" />\r
+          <camunda:in source="isDebugLogEnabled" target="isDebugLogEnabled" />\r
+          <camunda:in source="isVidRequest" target="isVidRequest" />\r
+          <camunda:out source="rolledBack" target="rolledBack" />\r
+          <camunda:out source="rollbackError" target="rollbackError" />\r
+          <camunda:in source="disableRollback" target="disableRollback" />\r
+          <camunda:in source="sdncVersion" target="sdncVersion" />\r
+        </bpmn2:extensionElements>\r
+        <bpmn2:incoming>SequenceFlow_1i1q78e</bpmn2:incoming>\r
+        <bpmn2:outgoing>SequenceFlow_0112l2c</bpmn2:outgoing>\r
+      </bpmn2:callActivity>\r
+      <bpmn2:scriptTask id="PreProcessRollback" name="Pre Process Rollback" scriptFormat="groovy">\r
+        <bpmn2:incoming>SequenceFlow_04bd5in</bpmn2:incoming>\r
+        <bpmn2:outgoing>SequenceFlow_1i1q78e</bpmn2:outgoing>\r
+        <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*\r
+def doCreateVfModule = new DoCreateVfModule()\r
+doCreateVfModule.preProcessRollback(execution)]]></bpmn2:script>\r
+      </bpmn2:scriptTask>\r
+      <bpmn2:scriptTask id="PostProcessRollback" name="Post Process Rollback" scriptFormat="groovy">\r
+        <bpmn2:incoming>SequenceFlow_0112l2c</bpmn2:incoming>\r
+        <bpmn2:outgoing>SequenceFlow_0z2rczk</bpmn2:outgoing>\r
+        <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*\r
+def doCreateVfModule = new DoCreateVfModule()\r
+doCreateVfModule.postProcessRollback(execution)]]></bpmn2:script>\r
+      </bpmn2:scriptTask>\r
+      <bpmn2:sequenceFlow id="SequenceFlow_02lc25j" sourceRef="StartEvent_18lzc5m" targetRef="ExclusiveGateway_039bib8" />\r
+      <bpmn2:sequenceFlow id="SequenceFlow_0z2rczk" sourceRef="PostProcessRollback" targetRef="EndEvent_0wsdptv" />\r
+      <bpmn2:sequenceFlow id="SequenceFlow_1i1q78e" sourceRef="PreProcessRollback" targetRef="CallDoCreateVfModuleRollback" />\r
+      <bpmn2:sequenceFlow id="SequenceFlow_0112l2c" sourceRef="CallDoCreateVfModuleRollback" targetRef="PostProcessRollback" />\r
+      <bpmn2:exclusiveGateway id="ExclusiveGateway_039bib8" name="Disable Rollback?" default="SequenceFlow_04bd5in">\r
+        <bpmn2:incoming>SequenceFlow_02lc25j</bpmn2:incoming>\r
+        <bpmn2:outgoing>SequenceFlow_04bd5in</bpmn2:outgoing>\r
+        <bpmn2:outgoing>SequenceFlow_1nh7m8d</bpmn2:outgoing>\r
+      </bpmn2:exclusiveGateway>\r
+      <bpmn2:sequenceFlow id="SequenceFlow_04bd5in" name="no" sourceRef="ExclusiveGateway_039bib8" targetRef="PreProcessRollback" />\r
+      <bpmn2:sequenceFlow id="SequenceFlow_1nh7m8d" name="yes" sourceRef="ExclusiveGateway_039bib8" targetRef="Task_1fm09pi">\r
+        <bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"><![CDATA[#{execution.getVariable("disableRollback" )  == true}]]></bpmn2:conditionExpression>\r
+      </bpmn2:sequenceFlow>\r
+      <bpmn2:scriptTask id="Task_1fm09pi" name="Process Error" scriptFormat="groovy">\r
+        <bpmn2:incoming>SequenceFlow_1nh7m8d</bpmn2:incoming>\r
+        <bpmn2:outgoing>SequenceFlow_1pgo10r</bpmn2:outgoing>\r
+        <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.infrastructure.scripts.*\r
+def doCreateVfModule = new DoCreateVfModule()\r
+doCreateVfModule.processBPMNException(execution)]]></bpmn2:script>\r
+      </bpmn2:scriptTask>\r
+      <bpmn2:sequenceFlow id="SequenceFlow_1pgo10r" sourceRef="Task_1fm09pi" targetRef="EndEvent_0wsdptv" />\r
+    </bpmn2:subProcess>\r
   </bpmn2:process>\r
   <bpmn2:message id="Message_1" name="DoCreateVfModuleRequest" />\r
   <bpmn2:error id="Error_1" name="MSOWorkflowException" errorCode="MSOWorkflowException" />\r
@@ -925,38 +959,6 @@ doCreateVfModule.validateSDNCResponse(execution, response, "get")]]></bpmn2:scri
           <dc:Bounds x="165" y="574" width="6" height="6" />\r
         </bpmndi:BPMNLabel>\r
       </bpmndi:BPMNEdge>\r
-      <bpmndi:BPMNShape id="_BPMNShape_SubProcess_21" bpmnElement="SubProcess_1" isExpanded="true">\r
-        <dc:Bounds x="29" y="1197" width="405" height="203" />\r
-      </bpmndi:BPMNShape>\r
-      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_55" bpmnElement="StartEvent_2">\r
-        <dc:Bounds x="58" y="1281" width="36" height="36" />\r
-        <bpmndi:BPMNLabel>\r
-          <dc:Bounds x="76" y="1322" width="0" height="0" />\r
-        </bpmndi:BPMNLabel>\r
-      </bpmndi:BPMNShape>\r
-      <bpmndi:BPMNShape id="_BPMNShape_EndEvent_181" bpmnElement="EndEvent_2">\r
-        <dc:Bounds x="370" y="1281" width="36" height="36" />\r
-        <bpmndi:BPMNLabel>\r
-          <dc:Bounds x="388" y="1322" width="0" height="0" />\r
-        </bpmndi:BPMNLabel>\r
-      </bpmndi:BPMNShape>\r
-      <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_284" bpmnElement="ScriptTask_1">\r
-        <dc:Bounds x="165" y="1258" width="134" height="81" />\r
-      </bpmndi:BPMNShape>\r
-      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_StartEvent_55" targetElement="_BPMNShape_ScriptTask_284">\r
-        <di:waypoint xsi:type="dc:Point" x="94" y="1299" />\r
-        <di:waypoint xsi:type="dc:Point" x="165" y="1298" />\r
-        <bpmndi:BPMNLabel>\r
-          <dc:Bounds x="118" y="1299" width="0" height="0" />\r
-        </bpmndi:BPMNLabel>\r
-      </bpmndi:BPMNEdge>\r
-      <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_38" bpmnElement="SequenceFlow_38" sourceElement="_BPMNShape_ScriptTask_284" targetElement="_BPMNShape_EndEvent_181">\r
-        <di:waypoint xsi:type="dc:Point" x="299" y="1298" />\r
-        <di:waypoint xsi:type="dc:Point" x="370" y="1299" />\r
-        <bpmndi:BPMNLabel>\r
-          <dc:Bounds x="329" y="1298" width="0" height="0" />\r
-        </bpmndi:BPMNLabel>\r
-      </bpmndi:BPMNEdge>\r
       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_156" bpmnElement="CreateAAIVfModule">\r
         <dc:Bounds x="696" y="348" width="121" height="92" />\r
       </bpmndi:BPMNShape>\r
@@ -1162,6 +1164,92 @@ doCreateVfModule.validateSDNCResponse(execution, response, "get")]]></bpmn2:scri
       <bpmndi:BPMNShape id="CallActivity_14nvmgk_di" bpmnElement="Task_0kuj2a1">\r
         <dc:Bounds x="378" y="242" width="100" height="80" />\r
       </bpmndi:BPMNShape>\r
+      <bpmndi:BPMNShape id="SubProcess_0ltzufk_di" bpmnElement="SubProcess_0ltzufk" isExpanded="true">\r
+        <dc:Bounds x="-50" y="1190" width="1047" height="338" />\r
+      </bpmndi:BPMNShape>\r
+      <bpmndi:BPMNShape id="StartEvent_18lzc5m_di" bpmnElement="StartEvent_18lzc5m">\r
+        <dc:Bounds x="93" y="1294" width="36" height="36" />\r
+        <bpmndi:BPMNLabel>\r
+          <dc:Bounds x="111" y="1335" width="0" height="0" />\r
+        </bpmndi:BPMNLabel>\r
+      </bpmndi:BPMNShape>\r
+      <bpmndi:BPMNShape id="EndEvent_0wsdptv_di" bpmnElement="EndEvent_0wsdptv">\r
+        <dc:Bounds x="861" y="1294" width="36" height="36" />\r
+        <bpmndi:BPMNLabel>\r
+          <dc:Bounds x="879" y="1335" width="0" height="0" />\r
+        </bpmndi:BPMNLabel>\r
+      </bpmndi:BPMNShape>\r
+      <bpmndi:BPMNShape id="CallActivity_1ehr5kq_di" bpmnElement="CallDoCreateVfModuleRollback">\r
+        <dc:Bounds x="509" y="1272" width="100" height="80" />\r
+      </bpmndi:BPMNShape>\r
+      <bpmndi:BPMNShape id="ScriptTask_0upatdd_di" bpmnElement="PreProcessRollback">\r
+        <dc:Bounds x="329" y="1272" width="100" height="80" />\r
+      </bpmndi:BPMNShape>\r
+      <bpmndi:BPMNShape id="ScriptTask_0o1zc29_di" bpmnElement="PostProcessRollback">\r
+        <dc:Bounds x="694" y="1272" width="100" height="80" />\r
+      </bpmndi:BPMNShape>\r
+      <bpmndi:BPMNEdge id="SequenceFlow_02lc25j_di" bpmnElement="SequenceFlow_02lc25j">\r
+        <di:waypoint xsi:type="dc:Point" x="129" y="1312" />\r
+        <di:waypoint xsi:type="dc:Point" x="196" y="1312" />\r
+        <bpmndi:BPMNLabel>\r
+          <dc:Bounds x="163" y="1297" width="0" height="0" />\r
+        </bpmndi:BPMNLabel>\r
+      </bpmndi:BPMNEdge>\r
+      <bpmndi:BPMNEdge id="SequenceFlow_0z2rczk_di" bpmnElement="SequenceFlow_0z2rczk">\r
+        <di:waypoint xsi:type="dc:Point" x="794" y="1312" />\r
+        <di:waypoint xsi:type="dc:Point" x="826" y="1312" />\r
+        <di:waypoint xsi:type="dc:Point" x="826" y="1312" />\r
+        <di:waypoint xsi:type="dc:Point" x="861" y="1312" />\r
+        <bpmndi:BPMNLabel>\r
+          <dc:Bounds x="841" y="1312" width="0" height="0" />\r
+        </bpmndi:BPMNLabel>\r
+      </bpmndi:BPMNEdge>\r
+      <bpmndi:BPMNEdge id="SequenceFlow_1i1q78e_di" bpmnElement="SequenceFlow_1i1q78e">\r
+        <di:waypoint xsi:type="dc:Point" x="429" y="1312" />\r
+        <di:waypoint xsi:type="dc:Point" x="509" y="1312" />\r
+        <bpmndi:BPMNLabel>\r
+          <dc:Bounds x="469" y="1297" width="0" height="0" />\r
+        </bpmndi:BPMNLabel>\r
+      </bpmndi:BPMNEdge>\r
+      <bpmndi:BPMNEdge id="SequenceFlow_0112l2c_di" bpmnElement="SequenceFlow_0112l2c">\r
+        <di:waypoint xsi:type="dc:Point" x="609" y="1312" />\r
+        <di:waypoint xsi:type="dc:Point" x="694" y="1312" />\r
+        <bpmndi:BPMNLabel>\r
+          <dc:Bounds x="652" y="1297" width="0" height="0" />\r
+        </bpmndi:BPMNLabel>\r
+      </bpmndi:BPMNEdge>\r
+      <bpmndi:BPMNShape id="ExclusiveGateway_039bib8_di" bpmnElement="ExclusiveGateway_039bib8" isMarkerVisible="true">\r
+        <dc:Bounds x="196" y="1287" width="50" height="50" />\r
+        <bpmndi:BPMNLabel>\r
+          <dc:Bounds x="177" y="1259" width="87" height="12" />\r
+        </bpmndi:BPMNLabel>\r
+      </bpmndi:BPMNShape>\r
+      <bpmndi:BPMNEdge id="SequenceFlow_04bd5in_di" bpmnElement="SequenceFlow_04bd5in">\r
+        <di:waypoint xsi:type="dc:Point" x="246" y="1312" />\r
+        <di:waypoint xsi:type="dc:Point" x="329" y="1312" />\r
+        <bpmndi:BPMNLabel>\r
+          <dc:Bounds x="282" y="1297" width="12" height="12" />\r
+        </bpmndi:BPMNLabel>\r
+      </bpmndi:BPMNEdge>\r
+      <bpmndi:BPMNEdge id="SequenceFlow_1nh7m8d_di" bpmnElement="SequenceFlow_1nh7m8d">\r
+        <di:waypoint xsi:type="dc:Point" x="221" y="1337" />\r
+        <di:waypoint xsi:type="dc:Point" x="221" y="1436" />\r
+        <di:waypoint xsi:type="dc:Point" x="509" y="1436" />\r
+        <bpmndi:BPMNLabel>\r
+          <dc:Bounds x="227" y="1386.5" width="18" height="12" />\r
+        </bpmndi:BPMNLabel>\r
+      </bpmndi:BPMNEdge>\r
+      <bpmndi:BPMNShape id="ScriptTask_05v20n0_di" bpmnElement="Task_1fm09pi">\r
+        <dc:Bounds x="509" y="1396" width="100" height="80" />\r
+      </bpmndi:BPMNShape>\r
+      <bpmndi:BPMNEdge id="SequenceFlow_1pgo10r_di" bpmnElement="SequenceFlow_1pgo10r">\r
+        <di:waypoint xsi:type="dc:Point" x="609" y="1436" />\r
+        <di:waypoint xsi:type="dc:Point" x="879" y="1436" />\r
+        <di:waypoint xsi:type="dc:Point" x="879" y="1330" />\r
+        <bpmndi:BPMNLabel>\r
+          <dc:Bounds x="744" y="1421" width="0" height="0" />\r
+        </bpmndi:BPMNLabel>\r
+      </bpmndi:BPMNEdge>\r
     </bpmndi:BPMNPlane>\r
   </bpmndi:BPMNDiagram>\r
 </bpmn2:definitions>
\ No newline at end of file