aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCommonBPMN/src/main/resources/subprocess/BuildingBlock/HomingV2.bpmn
blob: 9481ad892e4d0f64b174eae7c3f86df95b9b804e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.10.0">
  <bpmn:process id="HomingV2" name="HomingV2" isExecutable="true">
    <bpmn:startEvent id="start">
      <bpmn:outgoing>SequenceFlow_0gpuwes</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:subProcess id="subprocessBpmnError" name="Error Handling Subprocess" triggeredByEvent="true">
      <bpmn:endEvent id="endBpmnError">
        <bpmn:incoming>SequenceFlow_14dg22y</bpmn:incoming>
        <bpmn:terminateEventDefinition />
      </bpmn:endEvent>
      <bpmn:startEvent id="catchBpmnError">
        <bpmn:outgoing>SequenceFlow_0g3mn4b</bpmn:outgoing>
        <bpmn:errorEventDefinition />
      </bpmn:startEvent>
      <bpmn:scriptTask id="processBpmnError" name="Process Error" scriptFormat="groovy">
        <bpmn:incoming>SequenceFlow_0g3mn4b</bpmn:incoming>
        <bpmn:outgoing>SequenceFlow_14dg22y</bpmn:outgoing>
        <bpmn:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
ExceptionUtil ex = new ExceptionUtil()
ex.processSubflowsBPMNException(execution)]]></bpmn:script>
      </bpmn:scriptTask>
      <bpmn:sequenceFlow id="SequenceFlow_14dg22y" sourceRef="processBpmnError" targetRef="endBpmnError" />
      <bpmn:sequenceFlow id="SequenceFlow_0g3mn4b" sourceRef="catchBpmnError" targetRef="processBpmnError" />
    </bpmn:subProcess>
    <bpmn:subProcess id="subprocessJavaException" triggeredByEvent="true">
      <bpmn:scriptTask id="processJavaException" name="Process Error" scriptFormat="groovy">
        <bpmn:incoming>seq</bpmn:incoming>
        <bpmn:outgoing>SequenceFlow_1epbfhx</bpmn:outgoing>
        <bpmn:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
ExceptionUtil ex = new ExceptionUtil()
ex.processJavaException(execution)]]></bpmn:script>
      </bpmn:scriptTask>
      <bpmn:startEvent id="catchJavaException">
        <bpmn:outgoing>seq</bpmn:outgoing>
        <bpmn:errorEventDefinition errorRef="Error_0jmwlex" />
      </bpmn:startEvent>
      <bpmn:endEvent id="endJavaException">
        <bpmn:incoming>SequenceFlow_1epbfhx</bpmn:incoming>
        <bpmn:terminateEventDefinition />
      </bpmn:endEvent>
      <bpmn:sequenceFlow id="seq" name="" sourceRef="catchJavaException" targetRef="processJavaException" />
      <bpmn:sequenceFlow id="SequenceFlow_1epbfhx" name="" sourceRef="processJavaException" targetRef="endJavaException" />
    </bpmn:subProcess>
    <bpmn:callActivity id="callReceiveAsync" name="Receive Async Callback" camunda:modelerTemplate="receiveWorkflowMessage" calledElement="ReceiveWorkflowMessage">
      <bpmn:extensionElements>
        <camunda:in source="true" target="isDebugLogEnabled" />
        <camunda:out source="WorkflowException" target="WorkflowException" />
        <camunda:out source="WorkflowResponse" target="asyncResponse" />
        <camunda:in source="asyncCorrelator" target="RCVWFMSG_correlator" />
        <camunda:in source="asyncMessageType" target="RCVWFMSG_messageType" />
        <camunda:in source="asyncTimeout" target="RCVWFMSG_timeout" />
      </bpmn:extensionElements>
      <bpmn:incoming>sequence_2</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_0m9c6gt</bpmn:outgoing>
    </bpmn:callActivity>
    <bpmn:endEvent id="end">
      <bpmn:incoming>updateExecution</bpmn:incoming>
      <bpmn:terminateEventDefinition />
    </bpmn:endEvent>
    <bpmn:sequenceFlow id="SequenceFlow_0gpuwes" sourceRef="start" targetRef="callSniro" />
    <bpmn:sequenceFlow id="sequence_2" sourceRef="callSniro" targetRef="callReceiveAsync" />
    <bpmn:sequenceFlow id="SequenceFlow_0m9c6gt" sourceRef="callReceiveAsync" targetRef="processSolution" />
    <bpmn:sequenceFlow id="updateExecution" sourceRef="processSolution" targetRef="end" />
    <bpmn:serviceTask id="callSniro" name="&#10;Call&#10;Sniro&#10;" camunda:expression="${SniroHoming.callSniro(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)))}">
      <bpmn:incoming>SequenceFlow_0gpuwes</bpmn:incoming>
      <bpmn:outgoing>sequence_2</bpmn:outgoing>
    </bpmn:serviceTask>
    <bpmn:serviceTask id="processSolution" name="&#10;Process Solution&#10;" camunda:expression="${SniroHoming.processSolution(InjectExecution.execute(execution, execution.getVariable(&#34;gBuildingBlockExecution&#34;)), asyncResponse)}">
      <bpmn:incoming>SequenceFlow_0m9c6gt</bpmn:incoming>
      <bpmn:outgoing>updateExecution</bpmn:outgoing>
    </bpmn:serviceTask>
  </bpmn:process>
  <bpmn:error id="Error_0jmwlex" name="Java Exception" errorCode="java.lang.Exception" />
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="HomingV2">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="start">
        <dc:Bounds x="135" y="225" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="108" y="261" width="90" height="20" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="SubProcess_1se9fyh_di" bpmnElement="subprocessBpmnError" isExpanded="true">
        <dc:Bounds x="246" y="399" width="409" height="168" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="SubProcess_0rphl19_di" bpmnElement="subprocessJavaException" isExpanded="true">
        <dc:Bounds x="276" y="582" width="350" height="159" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="CallActivity_1o5l6xd_di" bpmnElement="callReceiveAsync">
        <dc:Bounds x="447" y="203" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_0jdabkl_di" bpmnElement="end">
        <dc:Bounds x="852" y="225" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="824" y="265" width="0" height="12" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0gpuwes_di" bpmnElement="SequenceFlow_0gpuwes">
        <di:waypoint xsi:type="dc:Point" x="171" y="243" />
        <di:waypoint xsi:type="dc:Point" x="305" y="243" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="238" y="222" width="0" height="12" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_1ohpzke_di" bpmnElement="sequence_2">
        <di:waypoint xsi:type="dc:Point" x="405" y="243" />
        <di:waypoint xsi:type="dc:Point" x="447" y="243" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="426" y="222" width="0" height="12" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0m9c6gt_di" bpmnElement="SequenceFlow_0m9c6gt">
        <di:waypoint xsi:type="dc:Point" x="547" y="243" />
        <di:waypoint xsi:type="dc:Point" x="589" y="243" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="568" y="222" width="0" height="12" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0f9pput_di" bpmnElement="updateExecution">
        <di:waypoint xsi:type="dc:Point" x="689" y="243" />
        <di:waypoint xsi:type="dc:Point" x="852" y="243" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="770.5" y="222" width="0" height="12" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="EndEvent_0q9vsib_di" bpmnElement="endBpmnError">
        <dc:Bounds x="571" y="473" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="544" y="514" width="0" height="12" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="StartEvent_1p10ecj_di" bpmnElement="catchBpmnError">
        <dc:Bounds x="291" y="473" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="264" y="514" width="0" height="12" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="ScriptTask_112ioi2_di" bpmnElement="processBpmnError">
        <dc:Bounds x="398" y="451" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="ScriptTask_0nil5vh_di" bpmnElement="processJavaException">
        <dc:Bounds x="402" y="630" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="StartEvent_0ekzjqo_di" bpmnElement="catchJavaException">
        <dc:Bounds x="310" y="652" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="283" y="693" width="0" height="12" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_0mrji6a_di" bpmnElement="endJavaException">
        <dc:Bounds x="559" y="652" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="532" y="693" width="0" height="12" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_14dg22y_di" bpmnElement="SequenceFlow_14dg22y">
        <di:waypoint xsi:type="dc:Point" x="498" y="491" />
        <di:waypoint xsi:type="dc:Point" x="571" y="491" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="490.5" y="476" width="0" height="12" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0g3mn4b_di" bpmnElement="SequenceFlow_0g3mn4b">
        <di:waypoint xsi:type="dc:Point" x="327" y="491" />
        <di:waypoint xsi:type="dc:Point" x="355" y="491" />
        <di:waypoint xsi:type="dc:Point" x="355" y="491" />
        <di:waypoint xsi:type="dc:Point" x="398" y="491" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="325" y="491" width="0" height="12" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_1bsc30u_di" bpmnElement="seq">
        <di:waypoint xsi:type="dc:Point" x="346" y="670" />
        <di:waypoint xsi:type="dc:Point" x="402" y="670" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="329" y="655" width="0" height="12" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_1epbfhx_di" bpmnElement="SequenceFlow_1epbfhx">
        <di:waypoint xsi:type="dc:Point" x="502" y="670" />
        <di:waypoint xsi:type="dc:Point" x="559" y="670" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="486.5" y="655" width="0" height="12" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="ServiceTask_1mclgnq_di" bpmnElement="callSniro">
        <dc:Bounds x="305" y="203" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="ServiceTask_08lua6t_di" bpmnElement="processSolution">
        <dc:Bounds x="589" y="203" width="100" height="80" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>