blob: 9d989d2aac31955a55c5eed6ea0d33fa46b49f87 [file] [log] [blame]
Seshu-Kumar-M5709d432017-09-18 15:08:16 +05301<?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" id="_FatVcHn0EeaH6vX1RRdc_w" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="1.10.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3 <bpmn2:process id="CustomE2EPutService" name="CustomE2EPutService" isExecutable="true">
4 <bpmn2:startEvent id="StartEvent_1">
5 <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
6 </bpmn2:startEvent>
7 <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="StartEvent_1" targetRef="Initialization" />
8 <bpmn2:endEvent id="EndEvent_1">
9 <bpmn2:incoming>SequenceFlow_5</bpmn2:incoming>
10 <bpmn2:terminateEventDefinition id="TerminateEventDefinition_1" />
11 </bpmn2:endEvent>
12 <bpmn2:scriptTask id="toggleSuccess" name="Toggle Success Indicator" scriptFormat="groovy">
13 <bpmn2:incoming>SequenceFlow_4</bpmn2:incoming>
14 <bpmn2:outgoing>SequenceFlow_5</bpmn2:outgoing>
15 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
16
17def serviceInstance= new CustomE2EPutService()
18serviceInstance.setSuccessIndicator(execution, true)
19
20execution.setVariable("WorkflowResponse", " ") //for junits]]></bpmn2:script>
21 </bpmn2:scriptTask>
22 <bpmn2:sequenceFlow id="SequenceFlow_5" name="" sourceRef="toggleSuccess" targetRef="EndEvent_1" />
23 <bpmn2:scriptTask id="putServiceInstance" name="Put Service Instance" scriptFormat="groovy">
24 <bpmn2:incoming>SequenceFlow_3</bpmn2:incoming>
25 <bpmn2:outgoing>SequenceFlow_4</bpmn2:outgoing>
26 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
27
28def serviceInstance= new CustomE2EPutService()
29serviceInstance.putServiceInstance(execution)]]></bpmn2:script>
30 </bpmn2:scriptTask>
31 <bpmn2:sequenceFlow id="SequenceFlow_4" name="" sourceRef="putServiceInstance" targetRef="toggleSuccess" />
32 <bpmn2:scriptTask id="Initialization" name="Initialization" scriptFormat="groovy">
33 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
34 <bpmn2:outgoing>SequenceFlow_3</bpmn2:outgoing>
35 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
36
37def serviceInstance= new CustomE2EPutService()
38serviceInstance.preProcessRequest(execution)
39]]></bpmn2:script>
40 </bpmn2:scriptTask>
41 <bpmn2:sequenceFlow id="SequenceFlow_3" name="" sourceRef="Initialization" targetRef="putServiceInstance" />
42 <bpmn2:subProcess id="bpmnExceptionHandlingSubProcess" name="Error Handling Sub Process" triggeredByEvent="true">
43 <bpmn2:startEvent id="StartEvent_2">
44 <bpmn2:outgoing>SequenceFlow_6</bpmn2:outgoing>
45 <bpmn2:errorEventDefinition id="ErrorEventDefinition_1" />
46 </bpmn2:startEvent>
47 <bpmn2:sequenceFlow id="SequenceFlow_6" name="" sourceRef="StartEvent_2" targetRef="processError" />
48 <bpmn2:endEvent id="EndEvent_2">
49 <bpmn2:incoming>SequenceFlow_7</bpmn2:incoming>
50 </bpmn2:endEvent>
51 <bpmn2:scriptTask id="processError" name="Process Error" scriptFormat="groovy">
52 <bpmn2:incoming>SequenceFlow_6</bpmn2:incoming>
53 <bpmn2:outgoing>SequenceFlow_7</bpmn2:outgoing>
54 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
55
56ExceptionUtil ex = new ExceptionUtil()
57ex.processSubflowsBPMNException(execution)]]></bpmn2:script>
58 </bpmn2:scriptTask>
59 <bpmn2:sequenceFlow id="SequenceFlow_7" name="" sourceRef="processError" targetRef="EndEvent_2" />
60 </bpmn2:subProcess>
61 <bpmn2:subProcess id="javaExceptionSubProcess" name="Java Exception Handling Sub Process" triggeredByEvent="true">
62 <bpmn2:startEvent id="catchJavaExcep">
63 <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
64 <bpmn2:errorEventDefinition id="ErrorEventDefinition_2" errorRef="Error_2" />
65 </bpmn2:startEvent>
66 <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="catchJavaExcep" targetRef="processJavaError" />
67 <bpmn2:scriptTask id="processJavaError" name="Process Java Error" scriptFormat="groovy">
68 <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
69 <bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
70 <bpmn2:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
71
72ExceptionUtil ex = new ExceptionUtil()
73ex.processJavaException(execution)]]></bpmn2:script>
74 </bpmn2:scriptTask>
75 <bpmn2:endEvent id="EndEvent_3">
76 <bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
77 <bpmn2:terminateEventDefinition id="TerminateEventDefinition_2" />
78 </bpmn2:endEvent>
79 <bpmn2:sequenceFlow id="SequenceFlow_10" name="" sourceRef="processJavaError" targetRef="EndEvent_3" />
80 </bpmn2:subProcess>
81 </bpmn2:process>
82 <bpmn2:error id="Error_1" name="MSO Workflow Exception" errorCode="MSOWorkflowException" />
83 <bpmn2:error id="Error_2" name="Java Lang Exception" errorCode="java.lang.Exception" />
84 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
85 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="CustomE2EPutService">
86 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_71" bpmnElement="StartEvent_1">
87 <dc:Bounds x="182" y="180" width="36" height="36" />
88 <bpmndi:BPMNLabel>
89 <dc:Bounds x="200" y="221" width="0" height="0" />
90 </bpmndi:BPMNLabel>
91 </bpmndi:BPMNShape>
92 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_302" bpmnElement="Initialization">
93 <dc:Bounds x="324" y="158" width="100" height="80" />
94 </bpmndi:BPMNShape>
95 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_71" targetElement="_BPMNShape_ScriptTask_302">
96 <di:waypoint xsi:type="dc:Point" x="218" y="198" />
97 <di:waypoint xsi:type="dc:Point" x="324" y="198" />
98 <bpmndi:BPMNLabel>
99 <dc:Bounds x="250" y="198" width="6" height="6" />
100 </bpmndi:BPMNLabel>
101 </bpmndi:BPMNEdge>
102 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_304" bpmnElement="putServiceInstance">
103 <dc:Bounds x="528" y="158" width="100" height="80" />
104 </bpmndi:BPMNShape>
105 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_3" bpmnElement="SequenceFlow_3" sourceElement="_BPMNShape_ScriptTask_302" targetElement="_BPMNShape_ScriptTask_304">
106 <di:waypoint xsi:type="dc:Point" x="424" y="198" />
107 <di:waypoint xsi:type="dc:Point" x="528" y="198" />
108 <bpmndi:BPMNLabel>
109 <dc:Bounds x="446" y="198" width="6" height="6" />
110 </bpmndi:BPMNLabel>
111 </bpmndi:BPMNEdge>
112 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_305" bpmnElement="toggleSuccess">
113 <dc:Bounds x="732" y="158" width="100" height="80" />
114 </bpmndi:BPMNShape>
115 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_4" bpmnElement="SequenceFlow_4" sourceElement="_BPMNShape_ScriptTask_304" targetElement="_BPMNShape_ScriptTask_305">
116 <di:waypoint xsi:type="dc:Point" x="628" y="198" />
117 <di:waypoint xsi:type="dc:Point" x="732" y="198" />
118 <bpmndi:BPMNLabel>
119 <dc:Bounds x="650" y="198" width="6" height="6" />
120 </bpmndi:BPMNLabel>
121 </bpmndi:BPMNEdge>
122 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_230" bpmnElement="EndEvent_1">
123 <dc:Bounds x="908" y="180" width="36" height="36" />
124 <bpmndi:BPMNLabel>
125 <dc:Bounds x="926" y="221" width="0" height="0" />
126 </bpmndi:BPMNLabel>
127 </bpmndi:BPMNShape>
128 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_5" bpmnElement="SequenceFlow_5" sourceElement="_BPMNShape_ScriptTask_305" targetElement="_BPMNShape_EndEvent_230">
129 <di:waypoint xsi:type="dc:Point" x="832" y="198" />
130 <di:waypoint xsi:type="dc:Point" x="908" y="198" />
131 <bpmndi:BPMNLabel>
132 <dc:Bounds x="854" y="198" width="6" height="6" />
133 </bpmndi:BPMNLabel>
134 </bpmndi:BPMNEdge>
135 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_27" bpmnElement="bpmnExceptionHandlingSubProcess" isExpanded="true">
136 <dc:Bounds x="324" y="312" width="418" height="150" />
137 </bpmndi:BPMNShape>
138 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_72" bpmnElement="StartEvent_2">
139 <dc:Bounds x="357" y="370" width="36" height="36" />
140 <bpmndi:BPMNLabel>
141 <dc:Bounds x="375" y="411" width="0" height="0" />
142 </bpmndi:BPMNLabel>
143 </bpmndi:BPMNShape>
144 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_306" bpmnElement="processError">
145 <dc:Bounds x="466" y="348" width="100" height="80" />
146 </bpmndi:BPMNShape>
147 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_6" bpmnElement="SequenceFlow_6" sourceElement="_BPMNShape_StartEvent_72" targetElement="_BPMNShape_ScriptTask_306">
148 <di:waypoint xsi:type="dc:Point" x="393" y="388" />
149 <di:waypoint xsi:type="dc:Point" x="466" y="388" />
150 <bpmndi:BPMNLabel>
151 <dc:Bounds x="415" y="388" width="6" height="6" />
152 </bpmndi:BPMNLabel>
153 </bpmndi:BPMNEdge>
154 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_231" bpmnElement="EndEvent_2">
155 <dc:Bounds x="615" y="370" width="36" height="36" />
156 <bpmndi:BPMNLabel>
157 <dc:Bounds x="633" y="411" width="0" height="0" />
158 </bpmndi:BPMNLabel>
159 </bpmndi:BPMNShape>
160 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_7" bpmnElement="SequenceFlow_7" sourceElement="_BPMNShape_ScriptTask_306" targetElement="_BPMNShape_EndEvent_231">
161 <di:waypoint xsi:type="dc:Point" x="566" y="388" />
162 <di:waypoint xsi:type="dc:Point" x="615" y="388" />
163 <bpmndi:BPMNLabel>
164 <dc:Bounds x="588" y="388" width="6" height="6" />
165 </bpmndi:BPMNLabel>
166 </bpmndi:BPMNEdge>
167 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_28" bpmnElement="javaExceptionSubProcess" isExpanded="true">
168 <dc:Bounds x="323" y="486" width="419" height="150" />
169 </bpmndi:BPMNShape>
170 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_73" bpmnElement="catchJavaExcep">
171 <dc:Bounds x="357" y="538" width="36" height="36" />
172 <bpmndi:BPMNLabel>
173 <dc:Bounds x="375" y="579" width="0" height="0" />
174 </bpmndi:BPMNLabel>
175 </bpmndi:BPMNShape>
176 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_308" bpmnElement="processJavaError">
177 <dc:Bounds x="465" y="516" width="100" height="80" />
178 </bpmndi:BPMNShape>
179 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_StartEvent_73" targetElement="_BPMNShape_ScriptTask_308">
180 <di:waypoint xsi:type="dc:Point" x="393" y="556" />
181 <di:waypoint xsi:type="dc:Point" x="465" y="556" />
182 <bpmndi:BPMNLabel>
183 <dc:Bounds x="415" y="556" width="6" height="6" />
184 </bpmndi:BPMNLabel>
185 </bpmndi:BPMNEdge>
186 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_232" bpmnElement="EndEvent_3">
187 <dc:Bounds x="615" y="538" width="36" height="36" />
188 <bpmndi:BPMNLabel>
189 <dc:Bounds x="633" y="579" width="0" height="0" />
190 </bpmndi:BPMNLabel>
191 </bpmndi:BPMNShape>
192 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="_BPMNShape_ScriptTask_308" targetElement="_BPMNShape_EndEvent_232">
193 <di:waypoint xsi:type="dc:Point" x="565" y="556" />
194 <di:waypoint xsi:type="dc:Point" x="615" y="556" />
195 <bpmndi:BPMNLabel>
196 <dc:Bounds x="587" y="556" width="6" height="6" />
197 </bpmndi:BPMNLabel>
198 </bpmndi:BPMNEdge>
199 </bpmndi:BPMNPlane>
200 </bpmndi:BPMNDiagram>
201</bpmn2:definitions>