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