xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 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="_FatVcHn0EeaH6vX1RRdc_w" exporter="camunda modeler" exporterVersion="2.7.0" targetNamespace="http://camunda.org/schema/1.0/bpmn"> |
| 3 | <bpmn2:process id="GenericPutService" name="GenericPutService" 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 | |
| 17 | def serviceInstance= new GenericPutService() |
| 18 | serviceInstance.setSuccessIndicator(execution, true) |
| 19 | |
| 20 | execution.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 | |
| 28 | def serviceInstance= new GenericPutService() |
| 29 | serviceInstance.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 | |
| 37 | def serviceInstance= new GenericPutService() |
| 38 | serviceInstance.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 | |
| 56 | ExceptionUtil ex = new ExceptionUtil() |
| 57 | ex.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 | |
| 72 | ExceptionUtil ex = new ExceptionUtil() |
| 73 | ex.processSubflowsJavaException(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" errorCode="MSOWorkflowException" name="MSO Workflow Exception"/> |
| 83 | <bpmn2:error id="Error_2" errorCode="java.lang.Exception" name="Java Lang Exception"/> |
| 84 | <bpmndi:BPMNDiagram id="BPMNDiagram_1"> |
| 85 | <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="GenericPutService"> |
| 86 | <bpmndi:BPMNShape id="_BPMNShape_StartEvent_71" bpmnElement="StartEvent_1"> |
| 87 | <dc:Bounds height="36.0" width="36.0" x="182.0" y="180.0"/> |
| 88 | <bpmndi:BPMNLabel> |
| 89 | <dc:Bounds height="0.0" width="0.0" x="200.0" y="221.0"/> |
| 90 | </bpmndi:BPMNLabel> |
| 91 | </bpmndi:BPMNShape> |
| 92 | <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_302" bpmnElement="Initialization"> |
| 93 | <dc:Bounds height="80.0" width="100.0" x="324.0" y="158.0"/> |
| 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.0" y="198.0"/> |
| 97 | <di:waypoint xsi:type="dc:Point" x="324.0" y="198.0"/> |
| 98 | <bpmndi:BPMNLabel> |
| 99 | <dc:Bounds height="6.0" width="6.0" x="250.0" y="198.0"/> |
| 100 | </bpmndi:BPMNLabel> |
| 101 | </bpmndi:BPMNEdge> |
| 102 | <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_304" bpmnElement="putServiceInstance"> |
| 103 | <dc:Bounds height="80.0" width="100.0" x="528.0" y="158.0"/> |
| 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.0" y="198.0"/> |
| 107 | <di:waypoint xsi:type="dc:Point" x="528.0" y="198.0"/> |
| 108 | <bpmndi:BPMNLabel> |
| 109 | <dc:Bounds height="6.0" width="6.0" x="446.0" y="198.0"/> |
| 110 | </bpmndi:BPMNLabel> |
| 111 | </bpmndi:BPMNEdge> |
| 112 | <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_305" bpmnElement="toggleSuccess"> |
| 113 | <dc:Bounds height="80.0" width="100.0" x="732.0" y="158.0"/> |
| 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.0" y="198.0"/> |
| 117 | <di:waypoint xsi:type="dc:Point" x="732.0" y="198.0"/> |
| 118 | <bpmndi:BPMNLabel> |
| 119 | <dc:Bounds height="6.0" width="6.0" x="650.0" y="198.0"/> |
| 120 | </bpmndi:BPMNLabel> |
| 121 | </bpmndi:BPMNEdge> |
| 122 | <bpmndi:BPMNShape id="_BPMNShape_EndEvent_230" bpmnElement="EndEvent_1"> |
| 123 | <dc:Bounds height="36.0" width="36.0" x="908.0" y="180.0"/> |
| 124 | <bpmndi:BPMNLabel> |
| 125 | <dc:Bounds height="0.0" width="0.0" x="926.0" y="221.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.0" y="198.0"/> |
| 130 | <di:waypoint xsi:type="dc:Point" x="908.0" y="198.0"/> |
| 131 | <bpmndi:BPMNLabel> |
| 132 | <dc:Bounds height="6.0" width="6.0" x="854.0" y="198.0"/> |
| 133 | </bpmndi:BPMNLabel> |
| 134 | </bpmndi:BPMNEdge> |
| 135 | <bpmndi:BPMNShape id="_BPMNShape_SubProcess_27" bpmnElement="bpmnExceptionHandlingSubProcess" isExpanded="true"> |
| 136 | <dc:Bounds height="150.0" width="418.0" x="324.0" y="312.0"/> |
| 137 | </bpmndi:BPMNShape> |
| 138 | <bpmndi:BPMNShape id="_BPMNShape_StartEvent_72" bpmnElement="StartEvent_2"> |
| 139 | <dc:Bounds height="36.0" width="36.0" x="357.0" y="370.0"/> |
| 140 | <bpmndi:BPMNLabel> |
| 141 | <dc:Bounds height="0.0" width="0.0" x="375.0" y="411.0"/> |
| 142 | </bpmndi:BPMNLabel> |
| 143 | </bpmndi:BPMNShape> |
| 144 | <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_306" bpmnElement="processError"> |
| 145 | <dc:Bounds height="80.0" width="100.0" x="466.0" y="348.0"/> |
| 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.0" y="388.0"/> |
| 149 | <di:waypoint xsi:type="dc:Point" x="466.0" y="388.0"/> |
| 150 | <bpmndi:BPMNLabel> |
| 151 | <dc:Bounds height="6.0" width="6.0" x="415.0" y="388.0"/> |
| 152 | </bpmndi:BPMNLabel> |
| 153 | </bpmndi:BPMNEdge> |
| 154 | <bpmndi:BPMNShape id="_BPMNShape_EndEvent_231" bpmnElement="EndEvent_2"> |
| 155 | <dc:Bounds height="36.0" width="36.0" x="615.0" y="370.0"/> |
| 156 | <bpmndi:BPMNLabel> |
| 157 | <dc:Bounds height="0.0" width="0.0" x="633.0" y="411.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.0" y="388.0"/> |
| 162 | <di:waypoint xsi:type="dc:Point" x="615.0" y="388.0"/> |
| 163 | <bpmndi:BPMNLabel> |
| 164 | <dc:Bounds height="6.0" width="6.0" x="588.0" y="388.0"/> |
| 165 | </bpmndi:BPMNLabel> |
| 166 | </bpmndi:BPMNEdge> |
| 167 | <bpmndi:BPMNShape id="_BPMNShape_SubProcess_28" bpmnElement="javaExceptionSubProcess" isExpanded="true"> |
| 168 | <dc:Bounds height="150.0" width="419.0" x="323.0" y="486.0"/> |
| 169 | </bpmndi:BPMNShape> |
| 170 | <bpmndi:BPMNShape id="_BPMNShape_StartEvent_73" bpmnElement="catchJavaExcep"> |
| 171 | <dc:Bounds height="36.0" width="36.0" x="357.0" y="538.0"/> |
| 172 | <bpmndi:BPMNLabel> |
| 173 | <dc:Bounds height="0.0" width="0.0" x="375.0" y="579.0"/> |
| 174 | </bpmndi:BPMNLabel> |
| 175 | </bpmndi:BPMNShape> |
| 176 | <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_308" bpmnElement="processJavaError"> |
| 177 | <dc:Bounds height="80.0" width="100.0" x="465.0" y="516.0"/> |
| 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.0" y="556.0"/> |
| 181 | <di:waypoint xsi:type="dc:Point" x="465.0" y="556.0"/> |
| 182 | <bpmndi:BPMNLabel> |
| 183 | <dc:Bounds height="6.0" width="6.0" x="415.0" y="556.0"/> |
| 184 | </bpmndi:BPMNLabel> |
| 185 | </bpmndi:BPMNEdge> |
| 186 | <bpmndi:BPMNShape id="_BPMNShape_EndEvent_232" bpmnElement="EndEvent_3"> |
| 187 | <dc:Bounds height="36.0" width="36.0" x="615.0" y="538.0"/> |
| 188 | <bpmndi:BPMNLabel> |
| 189 | <dc:Bounds height="0.0" width="0.0" x="633.0" y="579.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.0" y="556.0"/> |
| 194 | <di:waypoint xsi:type="dc:Point" x="615.0" y="556.0"/> |
| 195 | <bpmndi:BPMNLabel> |
| 196 | <dc:Bounds height="6.0" width="6.0" x="587.0" y="556.0"/> |
| 197 | </bpmndi:BPMNLabel> |
| 198 | </bpmndi:BPMNEdge> |
| 199 | </bpmndi:BPMNPlane> |
| 200 | </bpmndi:BPMNDiagram> |
| 201 | </bpmn2:definitions> |