blob: 0c7a8ac063b843b6f29dee065d0909a18d954a75 [file] [log] [blame]
xg353yb6b7bef2017-04-11 13:30:42 +02001<?xml version="1.0" encoding="UTF-8"?>
Boslet, Cory4b23ea72019-12-09 08:49:08 -05002<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="_3SPHsLr9EeWak-hhutJWuQ" 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">
xg353yb6b7bef2017-04-11 13:30:42 +02003 <bpmn2:process id="FalloutHandler" name="Fallout Handler" isExecutable="true">
4 <bpmn2:scriptTask id="ScriptTask_8" name="Pre-Process Request" scriptFormat="groovy">
5 <bpmn2:incoming>SequenceFlow_10</bpmn2:incoming>
Boslet, Cory4b23ea72019-12-09 08:49:08 -05006 <bpmn2:outgoing>SequenceFlow_1kx7ea5</bpmn2:outgoing>
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -04007 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
xg353yb6b7bef2017-04-11 13:30:42 +02008def preProcessRequestData = new FalloutHandler()
9preProcessRequestData.preProcessRequest(execution)
10
11]]></bpmn2:script>
12 </bpmn2:scriptTask>
Boslet, Cory4b23ea72019-12-09 08:49:08 -050013 <bpmn2:startEvent id="StartEvent_1">
xg353yb6b7bef2017-04-11 13:30:42 +020014 <bpmn2:outgoing>SequenceFlow_10</bpmn2:outgoing>
15 </bpmn2:startEvent>
16 <bpmn2:sequenceFlow id="SequenceFlow_10" name="" sourceRef="StartEvent_1" targetRef="ScriptTask_8" />
17 <bpmn2:scriptTask id="ScriptTask_2" name="Post Process Response" scriptFormat="groovy">
Boslet, Cory4b23ea72019-12-09 08:49:08 -050018 <bpmn2:incoming>SequenceFlow_1u8shdz</bpmn2:incoming>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070019 <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing>
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040020 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
xg353yb6b7bef2017-04-11 13:30:42 +020021def falloutHandler = new FalloutHandler()
22falloutHandler.postProcessResponse(execution)]]></bpmn2:script>
23 </bpmn2:scriptTask>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070024 <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="ScriptTask_2" targetRef="EndEvent_6" />
Boslet, Cory4b23ea72019-12-09 08:49:08 -050025 <bpmn2:endEvent id="EndEvent_6">
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070026 <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming>
xg353yb6b7bef2017-04-11 13:30:42 +020027 </bpmn2:endEvent>
Boslet, Cory4b23ea72019-12-09 08:49:08 -050028 <bpmn2:scriptTask id="ScriptTask_6" name="&#10;MSO&#10;Update&#10;(infra active req)&#10;" scriptFormat="groovy">
29 <bpmn2:incoming>SequenceFlow_1kx7ea5</bpmn2:incoming>
30 <bpmn2:outgoing>SequenceFlow_1u8shdz</bpmn2:outgoing>
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040031 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
xg353yb6b7bef2017-04-11 13:30:42 +020032def falloutHandler = new FalloutHandler()
Boslet, Cory4b23ea72019-12-09 08:49:08 -050033falloutHandler.updateInfraRequestDB(execution)]]></bpmn2:script>
xg353yb6b7bef2017-04-11 13:30:42 +020034 </bpmn2:scriptTask>
xg353yb6b7bef2017-04-11 13:30:42 +020035 <bpmn2:subProcess id="SubProcess_1" name="Event Handler" triggeredByEvent="true">
36 <bpmn2:scriptTask id="ScriptTask_4" name="Handle Event" scriptFormat="groovy">
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070037 <bpmn2:incoming>SequenceFlow_1ko8ggw</bpmn2:incoming>
38 <bpmn2:outgoing>SequenceFlow_1pm9r7h</bpmn2:outgoing>
Benjamin, Max (mb388a)5a6a6de2018-07-30 15:56:09 -040039 <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
xg353yb6b7bef2017-04-11 13:30:42 +020040execution.setVariable("FH_success", false)
41def falloutHandler = new FalloutHandler()
42
43// This does not (and cannot) throw exceptions
44falloutHandler.postProcessResponse(execution)
45
46// Clear any WorkflowException object that might be in the execution, but keep a copy in FH_WorkflowException
47def wfe = execution.getVariable("WorkflowException")
48execution.setVariable("WorkflowException", null)
49execution.setVariable("FH_WorkflowException", wfe)]]></bpmn2:script>
50 </bpmn2:scriptTask>
51 <bpmn2:startEvent id="StartEvent_2">
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070052 <bpmn2:outgoing>SequenceFlow_1ko8ggw</bpmn2:outgoing>
xg353yb6b7bef2017-04-11 13:30:42 +020053 <bpmn2:errorEventDefinition id="ErrorEventDefinition_8" />
54 </bpmn2:startEvent>
55 <bpmn2:endEvent id="EndEvent_2" name="Error End">
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070056 <bpmn2:incoming>SequenceFlow_1pm9r7h</bpmn2:incoming>
xg353yb6b7bef2017-04-11 13:30:42 +020057 <bpmn2:terminateEventDefinition />
58 </bpmn2:endEvent>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -070059 <bpmn2:sequenceFlow id="SequenceFlow_1ko8ggw" sourceRef="StartEvent_2" targetRef="ScriptTask_4" />
60 <bpmn2:sequenceFlow id="SequenceFlow_1pm9r7h" sourceRef="ScriptTask_4" targetRef="EndEvent_2" />
xg353yb6b7bef2017-04-11 13:30:42 +020061 </bpmn2:subProcess>
Boslet, Cory4b23ea72019-12-09 08:49:08 -050062 <bpmn2:sequenceFlow id="SequenceFlow_1kx7ea5" sourceRef="ScriptTask_8" targetRef="ScriptTask_6" />
63 <bpmn2:sequenceFlow id="SequenceFlow_1u8shdz" sourceRef="ScriptTask_6" targetRef="ScriptTask_2" />
xg353yb6b7bef2017-04-11 13:30:42 +020064 </bpmn2:process>
65 <bpmn2:error id="Error_1" name="MSOWorkflowException" errorCode="MSOWorkflowException" />
66 <bpmn2:error id="Error_2" name="Java Lang Exception" errorCode="java.lang.Exception" />
67 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
68 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="FalloutHandler">
69 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_52" bpmnElement="StartEvent_1">
Boslet, Cory4b23ea72019-12-09 08:49:08 -050070 <dc:Bounds x="128" y="162" width="36" height="36" />
xg353yb6b7bef2017-04-11 13:30:42 +020071 <bpmndi:BPMNLabel>
Boslet, Cory4b23ea72019-12-09 08:49:08 -050072 <dc:Bounds x="134" y="199" width="24" height="12" />
xg353yb6b7bef2017-04-11 13:30:42 +020073 </bpmndi:BPMNLabel>
74 </bpmndi:BPMNShape>
xg353yb6b7bef2017-04-11 13:30:42 +020075 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="_BPMNShape_StartEvent_52" targetElement="_BPMNShape_ScriptTask_99">
Boslet, Cory4b23ea72019-12-09 08:49:08 -050076 <di:waypoint xsi:type="dc:Point" x="164" y="180" />
77 <di:waypoint xsi:type="dc:Point" x="279" y="180" />
xg353yb6b7bef2017-04-11 13:30:42 +020078 <bpmndi:BPMNLabel>
Boslet, Cory4b23ea72019-12-09 08:49:08 -050079 <dc:Bounds x="176.5" y="165" width="90" height="0" />
xg353yb6b7bef2017-04-11 13:30:42 +020080 </bpmndi:BPMNLabel>
81 </bpmndi:BPMNEdge>
82 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_99" bpmnElement="ScriptTask_8">
Boslet, Cory4b23ea72019-12-09 08:49:08 -050083 <dc:Bounds x="279" y="140" width="100" height="80" />
xg353yb6b7bef2017-04-11 13:30:42 +020084 </bpmndi:BPMNShape>
85 <bpmndi:BPMNShape id="_BPMNShape_SubProcess_14" bpmnElement="SubProcess_1" isExpanded="true">
Boslet, Cory4b23ea72019-12-09 08:49:08 -050086 <dc:Bounds x="220" y="365" width="329" height="167" />
xg353yb6b7bef2017-04-11 13:30:42 +020087 </bpmndi:BPMNShape>
88 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_100" bpmnElement="ScriptTask_4">
Boslet, Cory4b23ea72019-12-09 08:49:08 -050089 <dc:Bounds x="333" y="409" width="100" height="80" />
xg353yb6b7bef2017-04-11 13:30:42 +020090 </bpmndi:BPMNShape>
91 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_54" bpmnElement="StartEvent_2">
Boslet, Cory4b23ea72019-12-09 08:49:08 -050092 <dc:Bounds x="249" y="431" width="36" height="36" />
xg353yb6b7bef2017-04-11 13:30:42 +020093 <bpmndi:BPMNLabel>
Boslet, Cory4b23ea72019-12-09 08:49:08 -050094 <dc:Bounds x="222" y="475" width="90" height="0" />
xg353yb6b7bef2017-04-11 13:30:42 +020095 </bpmndi:BPMNLabel>
96 </bpmndi:BPMNShape>
97 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_101" bpmnElement="ScriptTask_2">
Boslet, Cory4b23ea72019-12-09 08:49:08 -050098 <dc:Bounds x="589" y="140" width="100" height="80" />
xg353yb6b7bef2017-04-11 13:30:42 +020099 </bpmndi:BPMNShape>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700100 <bpmndi:BPMNShape id="_BPMNShape_EndEvent_129" bpmnElement="EndEvent_6">
Boslet, Cory4b23ea72019-12-09 08:49:08 -0500101 <dc:Bounds x="856" y="162" width="36" height="36" />
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700102 <bpmndi:BPMNLabel>
Boslet, Cory4b23ea72019-12-09 08:49:08 -0500103 <dc:Bounds x="845" y="203" width="57" height="12" />
xg353yb6b7bef2017-04-11 13:30:42 +0200104 </bpmndi:BPMNLabel>
105 </bpmndi:BPMNShape>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700106 <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ScriptTask_101" targetElement="_BPMNShape_EndEvent_129">
Boslet, Cory4b23ea72019-12-09 08:49:08 -0500107 <di:waypoint xsi:type="dc:Point" x="689" y="180" />
108 <di:waypoint xsi:type="dc:Point" x="856" y="180" />
xg353yb6b7bef2017-04-11 13:30:42 +0200109 <bpmndi:BPMNLabel>
Boslet, Cory4b23ea72019-12-09 08:49:08 -0500110 <dc:Bounds x="727.5" y="165" width="90" height="0" />
xg353yb6b7bef2017-04-11 13:30:42 +0200111 </bpmndi:BPMNLabel>
112 </bpmndi:BPMNEdge>
113 <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_252" bpmnElement="ScriptTask_6">
Boslet, Cory4b23ea72019-12-09 08:49:08 -0500114 <dc:Bounds x="431" y="141" width="100" height="80" />
xg353yb6b7bef2017-04-11 13:30:42 +0200115 </bpmndi:BPMNShape>
xg353yb6b7bef2017-04-11 13:30:42 +0200116 <bpmndi:BPMNShape id="EndEvent_0b9vn2u_di" bpmnElement="EndEvent_2">
Boslet, Cory4b23ea72019-12-09 08:49:08 -0500117 <dc:Bounds x="477" y="431" width="36" height="36" />
xg353yb6b7bef2017-04-11 13:30:42 +0200118 <bpmndi:BPMNLabel>
Boslet, Cory4b23ea72019-12-09 08:49:08 -0500119 <dc:Bounds x="473" y="475" width="47" height="12" />
xg353yb6b7bef2017-04-11 13:30:42 +0200120 </bpmndi:BPMNLabel>
121 </bpmndi:BPMNShape>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700122 <bpmndi:BPMNEdge id="SequenceFlow_1ko8ggw_di" bpmnElement="SequenceFlow_1ko8ggw">
Boslet, Cory4b23ea72019-12-09 08:49:08 -0500123 <di:waypoint xsi:type="dc:Point" x="285" y="449" />
124 <di:waypoint xsi:type="dc:Point" x="333" y="449" />
xg353yb6b7bef2017-04-11 13:30:42 +0200125 <bpmndi:BPMNLabel>
Boslet, Cory4b23ea72019-12-09 08:49:08 -0500126 <dc:Bounds x="264" y="424" width="90" height="0" />
xg353yb6b7bef2017-04-11 13:30:42 +0200127 </bpmndi:BPMNLabel>
128 </bpmndi:BPMNEdge>
Determe, Sebastien (sd378r)94ee9252017-05-02 03:53:18 -0700129 <bpmndi:BPMNEdge id="SequenceFlow_1pm9r7h_di" bpmnElement="SequenceFlow_1pm9r7h">
Boslet, Cory4b23ea72019-12-09 08:49:08 -0500130 <di:waypoint xsi:type="dc:Point" x="433" y="449" />
131 <di:waypoint xsi:type="dc:Point" x="477" y="449" />
xg353yb6b7bef2017-04-11 13:30:42 +0200132 <bpmndi:BPMNLabel>
Boslet, Cory4b23ea72019-12-09 08:49:08 -0500133 <dc:Bounds x="410" y="424" width="90" height="0" />
xg353yb6b7bef2017-04-11 13:30:42 +0200134 </bpmndi:BPMNLabel>
135 </bpmndi:BPMNEdge>
Boslet, Cory4b23ea72019-12-09 08:49:08 -0500136 <bpmndi:BPMNEdge id="SequenceFlow_1kx7ea5_di" bpmnElement="SequenceFlow_1kx7ea5">
137 <di:waypoint xsi:type="dc:Point" x="379" y="180" />
138 <di:waypoint xsi:type="dc:Point" x="431" y="181" />
139 <bpmndi:BPMNLabel>
140 <dc:Bounds x="405" y="159.5" width="0" height="12" />
141 </bpmndi:BPMNLabel>
142 </bpmndi:BPMNEdge>
143 <bpmndi:BPMNEdge id="SequenceFlow_1u8shdz_di" bpmnElement="SequenceFlow_1u8shdz">
144 <di:waypoint xsi:type="dc:Point" x="531" y="181" />
145 <di:waypoint xsi:type="dc:Point" x="589" y="180" />
146 <bpmndi:BPMNLabel>
147 <dc:Bounds x="560" y="159.5" width="0" height="12" />
148 </bpmndi:BPMNLabel>
149 </bpmndi:BPMNEdge>
xg353yb6b7bef2017-04-11 13:30:42 +0200150 </bpmndi:BPMNPlane>
151 </bpmndi:BPMNDiagram>
152</bpmn2:definitions>