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: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="_ZkRI4HntEea26OhQB97uCQ" exporter="camunda modeler" exporterVersion="2.7.0" targetNamespace="http://camunda.org/schema/1.0/bpmn">
\r
3 <bpmn2:process id="GenericPutVnf" name="GenericPutVnf" isExecutable="true">
\r
4 <bpmn2:startEvent id="StartEvent_1">
\r
5 <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
\r
7 <bpmn2:scriptTask id="intialization" name="Intialization" scriptFormat="groovy">
\r
8 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
\r
9 <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
\r
10 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
11 GenericPutVnf genericPutVnf = new GenericPutVnf()
12 genericPutVnf.preProcessRequest(execution)]]></bpmn2:script>
\r
14 <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="intialization"/>
\r
15 <bpmn2:sequenceFlow id="SequenceFlow_2" name="" sourceRef="intialization" targetRef="putVnf"/>
\r
16 <bpmn2:subProcess id="processBPMNExceptionSubProcess" name="Error Handling Sub Process" triggeredByEvent="true">
\r
17 <bpmn2:endEvent id="EndEvent_2">
\r
18 <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
\r
19 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_43"/>
\r
21 <bpmn2:startEvent id="StartEvent_2">
\r
22 <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
\r
23 <bpmn2:errorEventDefinition id="_ErrorEventDefinition_96"/>
\r
25 <bpmn2:scriptTask id="processBPMNException" name="Process Error" scriptFormat="groovy">
\r
26 <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
\r
27 <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
\r
28 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
\r
30 ExceptionUtil ex = new ExceptionUtil()
\r
31 ex.processSubflowsBPMNException(execution)]]></bpmn2:script>
\r
33 <bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="StartEvent_2" targetRef="processBPMNException"/>
\r
34 <bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="processBPMNException" targetRef="EndEvent_2"/>
\r
36 <bpmn2:scriptTask id="putVnf" name="PUT Vnf" scriptFormat="groovy">
\r
37 <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
\r
38 <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
\r
39 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
40 GenericPutVnf genericPutVnf = new GenericPutVnf()
41 genericPutVnf.putVnf(execution)]]></bpmn2:script>
\r
43 <bpmn2:sequenceFlow id="SequenceFlow_3" name="" sourceRef="putVnf" targetRef="toggleSuccess"/>
\r
44 <bpmn2:scriptTask id="toggleSuccess" name="Toggle Success Indicator" scriptFormat="groovy">
\r
45 <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
\r
46 <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
\r
47 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
48 GenericPutVnf genericPutVnf = new GenericPutVnf()
49 genericPutVnf.setSuccessIndicator(execution, true)
51 execution.setVariable("WorkflowResponse", " ") //for junits]]></bpmn2:script>
\r
53 <bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="toggleSuccess" targetRef="EndEvent_1"/>
\r
54 <bpmn2:endEvent id="EndEvent_1">
\r
55 <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
\r
56 <bpmn2:terminateEventDefinition id="_TerminateEventDefinition_42"/>
\r
59 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
\r
60 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="GenericPutVnf">
\r
61 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_75" bpmnElement="StartEvent_1">
\r
62 <dc:Bounds height="36.0" width="36.0" x="116.0" y="233.0"/>
\r
64 <dc:Bounds height="0.0" width="0.0" x="134.0" y="274.0"/>
\r
67 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_305" bpmnElement="intialization">
\r
68 <dc:Bounds height="80.0" width="100.0" x="240.0" y="211.0"/>
\r
70 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_306" bpmnElement="putVnf">
\r
71 <dc:Bounds height="80.0" width="100.0" x="384.0" y="211.0"/>
\r
73 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_307" bpmnElement="toggleSuccess">
\r
74 <dc:Bounds height="80.0" width="100.0" x="528.0" y="211.0"/>
\r
76 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_233" bpmnElement="EndEvent_1">
\r
77 <dc:Bounds height="36.0" width="36.0" x="732.0" y="233.0"/>
\r
79 <dc:Bounds height="0.0" width="0.0" x="750.0" y="274.0"/>
\r
82 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_75" targetElement="_BPMNShape_ScriptTask_305">
\r
83 <di:waypoint xsi:type="dc:Point" x="152.0" y="251.0"/>
\r
84 <di:waypoint xsi:type="dc:Point" x="240.0" y="251.0"/>
\r
86 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="_BPMNShape_ScriptTask_305" targetElement="_BPMNShape_ScriptTask_306">
\r
87 <di:waypoint xsi:type="dc:Point" x="340.0" y="251.0"/>
\r
88 <di:waypoint xsi:type="dc:Point" x="384.0" y="251.0"/>
\r
90 <dc:Bounds height="6.0" width="6.0" x="365.0" y="251.0"/>
\r
93 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ScriptTask_306" targetElement="_BPMNShape_ScriptTask_307">
\r
94 <di:waypoint xsi:type="dc:Point" x="484.0" y="251.0"/>
\r
95 <di:waypoint xsi:type="dc:Point" x="528.0" y="251.0"/>
\r
97 <dc:Bounds height="6.0" width="6.0" x="513.0" y="251.0"/>
\r
100 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ScriptTask_307" targetElement="_BPMNShape_EndEvent_233">
\r
101 <di:waypoint xsi:type="dc:Point" x="628.0" y="251.0"/>
\r
102 <di:waypoint xsi:type="dc:Point" x="732.0" y="251.0"/>
\r
104 <dc:Bounds height="6.0" width="6.0" x="678.0" y="251.0"/>
\r
105 </bpmndi:BPMNLabel>
\r
107 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_31" bpmnElement="processBPMNExceptionSubProcess" isExpanded="true">
\r
108 <dc:Bounds height="169.0" width="322.0" x="174.0" y="396.0"/>
\r
109 </bpmndi:BPMNShape>
\r
110 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_83" bpmnElement="StartEvent_2">
\r
111 <dc:Bounds height="36.0" width="36.0" x="204.0" y="463.0"/>
\r
113 <dc:Bounds height="0.0" width="0.0" x="222.0" y="504.0"/>
\r
114 </bpmndi:BPMNLabel>
\r
115 </bpmndi:BPMNShape>
\r
116 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_244" bpmnElement="EndEvent_2">
\r
117 <dc:Bounds height="36.0" width="36.0" x="432.0" y="463.0"/>
\r
119 <dc:Bounds height="0.0" width="0.0" x="450.0" y="504.0"/>
\r
120 </bpmndi:BPMNLabel>
\r
121 </bpmndi:BPMNShape>
\r
122 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_324" bpmnElement="processBPMNException">
\r
123 <dc:Bounds height="80.0" width="100.0" x="286.0" y="441.0"/>
\r
124 </bpmndi:BPMNShape>
\r
125 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_StartEvent_83" targetElement="_BPMNShape_ScriptTask_324">
\r
126 <di:waypoint xsi:type="dc:Point" x="240.0" y="481.0"/>
\r
127 <di:waypoint xsi:type="dc:Point" x="286.0" y="481.0"/>
\r
129 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_ScriptTask_324" targetElement="_BPMNShape_EndEvent_244">
\r
130 <di:waypoint xsi:type="dc:Point" x="386.0" y="481.0"/>
\r
131 <di:waypoint xsi:type="dc:Point" x="432.0" y="481.0"/>
\r
133 </bpmndi:BPMNPlane>
\r
134 </bpmndi:BPMNDiagram>
\r