blob: f155783e3a64279b36df8c13cb421ab4d192f687 [file] [log] [blame]
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -07001<?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>
6 </bpmn2:startEvent>
7 <bpmn2:scriptTask id="intialization" name="Intialization" scriptFormat="groovy">
8 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
9 <bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
xg353yb6b7bef2017-04-11 13:30:42 +020010 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
ChrisC025301d2017-01-31 11:40:03 +010011GenericPutVnf genericPutVnf = new GenericPutVnf()
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070012genericPutVnf.preProcessRequest(execution)]]></bpmn2:script>
13 </bpmn2:scriptTask>
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"/>
20 </bpmn2:endEvent>
21 <bpmn2:startEvent id="StartEvent_2">
22 <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
23 <bpmn2:errorEventDefinition id="_ErrorEventDefinition_96"/>
24 </bpmn2:startEvent>
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.*
29
30ExceptionUtil ex = new ExceptionUtil()
31ex.processSubflowsBPMNException(execution)]]></bpmn2:script>
32 </bpmn2:scriptTask>
33 <bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="StartEvent_2" targetRef="processBPMNException"/>
34 <bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="processBPMNException" targetRef="EndEvent_2"/>
35 </bpmn2:subProcess>
36 <bpmn2:scriptTask id="putVnf" name="PUT Vnf" scriptFormat="groovy">
37 <bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
38 <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
xg353yb6b7bef2017-04-11 13:30:42 +020039 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
ChrisC025301d2017-01-31 11:40:03 +010040GenericPutVnf genericPutVnf = new GenericPutVnf()
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070041genericPutVnf.putVnf(execution)]]></bpmn2:script>
42 </bpmn2:scriptTask>
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>
xg353yb6b7bef2017-04-11 13:30:42 +020047 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
ChrisC025301d2017-01-31 11:40:03 +010048GenericPutVnf genericPutVnf = new GenericPutVnf()
49genericPutVnf.setSuccessIndicator(execution, true)
50
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070051execution.setVariable("WorkflowResponse", " ") //for junits]]></bpmn2:script>
52 </bpmn2:scriptTask>
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"/>
57 </bpmn2:endEvent>
58 </bpmn2:process>
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"/>
63 <bpmndi:BPMNLabel>
64 <dc:Bounds height="0.0" width="0.0" x="134.0" y="274.0"/>
65 </bpmndi:BPMNLabel>
66 </bpmndi:BPMNShape>
67 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_305" bpmnElement="intialization">
68 <dc:Bounds height="80.0" width="100.0" x="240.0" y="211.0"/>
69 </bpmndi:BPMNShape>
70 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_306" bpmnElement="putVnf">
71 <dc:Bounds height="80.0" width="100.0" x="384.0" y="211.0"/>
72 </bpmndi:BPMNShape>
73 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_307" bpmnElement="toggleSuccess">
74 <dc:Bounds height="80.0" width="100.0" x="528.0" y="211.0"/>
75 </bpmndi:BPMNShape>
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"/>
78 <bpmndi:BPMNLabel>
79 <dc:Bounds height="0.0" width="0.0" x="750.0" y="274.0"/>
80 </bpmndi:BPMNLabel>
81 </bpmndi:BPMNShape>
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"/>
85 </bpmndi:BPMNEdge>
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"/>
89 <bpmndi:BPMNLabel>
90 <dc:Bounds height="6.0" width="6.0" x="365.0" y="251.0"/>
91 </bpmndi:BPMNLabel>
92 </bpmndi:BPMNEdge>
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"/>
96 <bpmndi:BPMNLabel>
97 <dc:Bounds height="6.0" width="6.0" x="513.0" y="251.0"/>
98 </bpmndi:BPMNLabel>
99 </bpmndi:BPMNEdge>
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"/>
103 <bpmndi:BPMNLabel>
104 <dc:Bounds height="6.0" width="6.0" x="678.0" y="251.0"/>
105 </bpmndi:BPMNLabel>
106 </bpmndi:BPMNEdge>
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"/>
109 </bpmndi:BPMNShape>
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"/>
112 <bpmndi:BPMNLabel>
113 <dc:Bounds height="0.0" width="0.0" x="222.0" y="504.0"/>
114 </bpmndi:BPMNLabel>
115 </bpmndi:BPMNShape>
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"/>
118 <bpmndi:BPMNLabel>
119 <dc:Bounds height="0.0" width="0.0" x="450.0" y="504.0"/>
120 </bpmndi:BPMNLabel>
121 </bpmndi:BPMNShape>
122 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_324" bpmnElement="processBPMNException">
123 <dc:Bounds height="80.0" width="100.0" x="286.0" y="441.0"/>
124 </bpmndi:BPMNShape>
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"/>
128 </bpmndi:BPMNEdge>
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"/>
132 </bpmndi:BPMNEdge>
133 </bpmndi:BPMNPlane>
134 </bpmndi:BPMNDiagram>
ChrisC025301d2017-01-31 11:40:03 +0100135</bpmn2:definitions>