Containerization feature of SO
[so.git] / bpmn / MSOCommonBPMN / src / main / resources / subprocess / BuildingBlock / DecomposeService.bpmn
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>
6     </bpmn2:startEvent>
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>
10     </bpmn2:endEvent>
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" />
15       </bpmn2:startEvent>
16       <bpmn2:endEvent id="EndEvent_117lkk3">
17         <bpmn2:incoming>SequenceFlow_0g4aus9</bpmn2:incoming>
18       </bpmn2:endEvent>
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>
26       </bpmn2:scriptTask>
27       <bpmn2:sequenceFlow id="SequenceFlow_0g4aus9" sourceRef="processJavaError" targetRef="EndEvent_117lkk3" />
28     </bpmn2:subProcess>
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>
35     </bpmn2:scriptTask>
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)
43 ]]></bpmn2:script>
44     </bpmn2:scriptTask>
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>
53     </bpmn2:scriptTask>
54   </bpmn2:process>
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" />
61         <bpmndi:BPMNLabel>
62           <dc:Bounds x="147" y="120" width="48" height="14" />
63         </bpmndi:BPMNLabel>
64       </bpmndi:BPMNShape>
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" />
68         <bpmndi:BPMNLabel>
69           <dc:Bounds x="245" y="82" width="0" height="0" />
70         </bpmndi:BPMNLabel>
71       </bpmndi:BPMNEdge>
72       <bpmndi:BPMNShape id="_BPMNShape_EndEvent_177" bpmnElement="EndEvent_3">
73         <dc:Bounds x="898" y="79" width="36" height="36" />
74         <bpmndi:BPMNLabel>
75           <dc:Bounds x="916" y="120" width="0" height="0" />
76         </bpmndi:BPMNLabel>
77       </bpmndi:BPMNShape>
78       <bpmndi:BPMNShape id="SubProcess_06d8lk8_di" bpmnElement="SubProcess_06d8lk8" isExpanded="true">
79         <dc:Bounds x="142" y="243" width="417" height="161" />
80       </bpmndi:BPMNShape>
81       <bpmndi:BPMNShape id="StartEvent_0yljq9y_di" bpmnElement="StartEvent_0yljq9y">
82         <dc:Bounds x="179" y="310" width="36" height="36" />
83         <bpmndi:BPMNLabel>
84           <dc:Bounds x="197" y="351" width="0" height="0" />
85         </bpmndi:BPMNLabel>
86       </bpmndi:BPMNShape>
87       <bpmndi:BPMNShape id="EndEvent_117lkk3_di" bpmnElement="EndEvent_117lkk3">
88         <dc:Bounds x="465" y="310" width="36" height="36" />
89         <bpmndi:BPMNLabel>
90           <dc:Bounds x="483" y="351" width="0" height="0" />
91         </bpmndi:BPMNLabel>
92       </bpmndi:BPMNShape>
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" />
96         <bpmndi:BPMNLabel>
97           <dc:Bounds x="253" y="313" width="0" height="0" />
98         </bpmndi:BPMNLabel>
99       </bpmndi:BPMNEdge>
100       <bpmndi:BPMNShape id="ScriptTask_0twd3su_di" bpmnElement="decomposeService_ScriptTask">
101         <dc:Bounds x="708" y="57" width="100" height="80" />
102       </bpmndi:BPMNShape>
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" />
106         <bpmndi:BPMNLabel>
107           <dc:Bounds x="853" y="82" width="0" height="0" />
108         </bpmndi:BPMNLabel>
109       </bpmndi:BPMNEdge>
110       <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_61" bpmnElement="preProcessRequest_ScriptTask">
111         <dc:Bounds x="301" y="57" width="100" height="80" />
112       </bpmndi:BPMNShape>
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" />
116         <bpmndi:BPMNLabel>
117           <dc:Bounds x="457" y="82" width="0" height="0" />
118         </bpmndi:BPMNLabel>
119       </bpmndi:BPMNEdge>
120       <bpmndi:BPMNShape id="ScriptTask_0b5155c_di" bpmnElement="processJavaError">
121         <dc:Bounds x="290" y="288" width="100" height="80" />
122       </bpmndi:BPMNShape>
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" />
126         <bpmndi:BPMNLabel>
127           <dc:Bounds x="428" y="313" width="0" height="0" />
128         </bpmndi:BPMNLabel>
129       </bpmndi:BPMNEdge>
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" />
133         <bpmndi:BPMNLabel>
134           <dc:Bounds x="661" y="82" width="0" height="0" />
135         </bpmndi:BPMNLabel>
136       </bpmndi:BPMNEdge>
137       <bpmndi:BPMNShape id="ScriptTask_17xngtx_di" bpmnElement="queryCatalogDB_ScriptTask">
138         <dc:Bounds x="513" y="57" width="100" height="80" />
139       </bpmndi:BPMNShape>
140     </bpmndi:BPMNPlane>
141   </bpmndi:BPMNDiagram>
142 </bpmn2:definitions>