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" id="_MagIIMOUEeW8asg-vCEgWQ" targetNamespace="http://camunda.org/schema/1.0/bpmn" exporter="Camunda Modeler" exporterVersion="1.4.0" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
3 <bpmn2:process id="DecomposeService" name="DecomposeService" isExecutable="true">
4 <bpmn2:startEvent id="createSI_startEvent" name="Start Flow">
5 <bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
7 <bpmn2:sequenceFlow id="SequenceFlow_1" name="" sourceRef="createSI_startEvent" targetRef="preProcessRequest_ScriptTask" />
8 <bpmn2:endEvent id="EndEvent_3">
9 <bpmn2:incoming>SequenceFlow_0tj2l1j</bpmn2:incoming>
11 <bpmn2:subProcess id="SubProcess_06d8lk8" name="Java Exception Handling Sub Process" triggeredByEvent="true">
12 <bpmn2:startEvent id="StartEvent_0yljq9y">
13 <bpmn2:outgoing>SequenceFlow_0tgrn11</bpmn2:outgoing>
14 <bpmn2:errorEventDefinition errorRef="Error_1" />
16 <bpmn2:endEvent id="EndEvent_117lkk3">
17 <bpmn2:incoming>SequenceFlow_0g4aus9</bpmn2:incoming>
19 <bpmn2:sequenceFlow id="SequenceFlow_0tgrn11" sourceRef="StartEvent_0yljq9y" targetRef="processJavaError" />
20 <bpmn2:scriptTask id="processJavaError" name="Process Error" scriptFormat="groovy">
21 <bpmn2:incoming>SequenceFlow_0tgrn11</bpmn2:incoming>
22 <bpmn2:outgoing>SequenceFlow_0g4aus9</bpmn2:outgoing>
23 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
24 ExceptionUtil exceptionUtil = new ExceptionUtil()
25 exceptionUtil.processJavaException(execution)]]></bpmn2:script>
27 <bpmn2:sequenceFlow id="SequenceFlow_0g4aus9" sourceRef="processJavaError" targetRef="EndEvent_117lkk3" />
29 <bpmn2:scriptTask id="decomposeService_ScriptTask" name="Decompose Service" scriptFormat="groovy">
30 <bpmn2:incoming>SequenceFlow_12vj619</bpmn2:incoming>
31 <bpmn2:outgoing>SequenceFlow_0tj2l1j</bpmn2:outgoing>
32 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
33 def dds = new DecomposeService()
34 dds.actuallyDecomposeService(execution)]]></bpmn2:script>
36 <bpmn2:sequenceFlow id="SequenceFlow_0tj2l1j" sourceRef="decomposeService_ScriptTask" targetRef="EndEvent_3" />
37 <bpmn2:scriptTask id="preProcessRequest_ScriptTask" name="PreProcess Incoming Request" scriptFormat="groovy">
38 <bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
39 <bpmn2:outgoing>SequenceFlow_0yxffj2</bpmn2:outgoing>
40 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
41 def dds = new DecomposeService()
42 dds.preProcessRequest(execution)
45 <bpmn2:sequenceFlow id="SequenceFlow_0yxffj2" sourceRef="preProcessRequest_ScriptTask" targetRef="queryCatalogDB_ScriptTask" />
46 <bpmn2:sequenceFlow id="SequenceFlow_12vj619" sourceRef="queryCatalogDB_ScriptTask" targetRef="decomposeService_ScriptTask" />
47 <bpmn2:scriptTask id="queryCatalogDB_ScriptTask" name="Query Catalog DB" scriptFormat="groovy">
48 <bpmn2:incoming>SequenceFlow_0yxffj2</bpmn2:incoming>
49 <bpmn2:outgoing>SequenceFlow_12vj619</bpmn2:outgoing>
50 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
51 def dds = new DecomposeService()
52 dds.queryCatalogDb(execution)]]></bpmn2:script>
55 <bpmn2:error id="Error_2" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
56 <bpmn2:error id="Error_1" name="java.lang.Exception" errorCode="java.lang.Exception" />
57 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
58 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="DecomposeService">
59 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_47" bpmnElement="createSI_startEvent">
60 <dc:Bounds x="152" y="79" width="36" height="36" />
62 <dc:Bounds x="147" y="120" width="48" height="14" />
65 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="_BPMNShape_StartEvent_47" targetElement="_BPMNShape_ScriptTask_61">
66 <di:waypoint xsi:type="dc:Point" x="188" y="97" />
67 <di:waypoint xsi:type="dc:Point" x="301" y="97" />
69 <dc:Bounds x="245" y="82" width="0" height="0" />
72 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_177" bpmnElement="EndEvent_3">
73 <dc:Bounds x="898" y="79" width="36" height="36" />
75 <dc:Bounds x="916" y="120" width="0" height="0" />
78 <bpmndi:BPMNShape id="SubProcess_06d8lk8_di" bpmnElement="SubProcess_06d8lk8" isExpanded="true">
79 <dc:Bounds x="142" y="243" width="417" height="161" />
81 <bpmndi:BPMNShape id="StartEvent_0yljq9y_di" bpmnElement="StartEvent_0yljq9y">
82 <dc:Bounds x="179" y="310" width="36" height="36" />
84 <dc:Bounds x="197" y="351" width="0" height="0" />
87 <bpmndi:BPMNShape id="EndEvent_117lkk3_di" bpmnElement="EndEvent_117lkk3">
88 <dc:Bounds x="465" y="310" width="36" height="36" />
90 <dc:Bounds x="483" y="351" width="0" height="0" />
93 <bpmndi:BPMNEdge id="SequenceFlow_0tgrn11_di" bpmnElement="SequenceFlow_0tgrn11">
94 <di:waypoint xsi:type="dc:Point" x="215" y="328" />
95 <di:waypoint xsi:type="dc:Point" x="290" y="328" />
97 <dc:Bounds x="253" y="313" width="0" height="0" />
100 <bpmndi:BPMNShape id="ScriptTask_0twd3su_di" bpmnElement="decomposeService_ScriptTask">
101 <dc:Bounds x="708" y="57" width="100" height="80" />
103 <bpmndi:BPMNEdge id="SequenceFlow_0tj2l1j_di" bpmnElement="SequenceFlow_0tj2l1j">
104 <di:waypoint xsi:type="dc:Point" x="808" y="97" />
105 <di:waypoint xsi:type="dc:Point" x="898" y="97" />
107 <dc:Bounds x="853" y="82" width="0" height="0" />
110 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_61" bpmnElement="preProcessRequest_ScriptTask">
111 <dc:Bounds x="301" y="57" width="100" height="80" />
113 <bpmndi:BPMNEdge id="SequenceFlow_0yxffj2_di" bpmnElement="SequenceFlow_0yxffj2">
114 <di:waypoint xsi:type="dc:Point" x="401" y="97" />
115 <di:waypoint xsi:type="dc:Point" x="513" y="97" />
117 <dc:Bounds x="457" y="82" width="0" height="0" />
120 <bpmndi:BPMNShape id="ScriptTask_0b5155c_di" bpmnElement="processJavaError">
121 <dc:Bounds x="290" y="288" width="100" height="80" />
123 <bpmndi:BPMNEdge id="SequenceFlow_0g4aus9_di" bpmnElement="SequenceFlow_0g4aus9">
124 <di:waypoint xsi:type="dc:Point" x="390" y="328" />
125 <di:waypoint xsi:type="dc:Point" x="465" y="328" />
127 <dc:Bounds x="428" y="313" width="0" height="0" />
130 <bpmndi:BPMNEdge id="SequenceFlow_12vj619_di" bpmnElement="SequenceFlow_12vj619">
131 <di:waypoint xsi:type="dc:Point" x="613" y="97" />
132 <di:waypoint xsi:type="dc:Point" x="708" y="97" />
134 <dc:Bounds x="661" y="82" width="0" height="0" />
137 <bpmndi:BPMNShape id="ScriptTask_17xngtx_di" bpmnElement="queryCatalogDB_ScriptTask">
138 <dc:Bounds x="513" y="57" width="100" height="80" />
141 </bpmndi:BPMNDiagram>