xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 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="_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"> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 3 | <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, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 6 | <bpmn2:outgoing>SequenceFlow_1kx7ea5</bpmn2:outgoing> |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 7 | <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.* |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 8 | def preProcessRequestData = new FalloutHandler() |
| 9 | preProcessRequestData.preProcessRequest(execution) |
| 10 | |
| 11 | ]]></bpmn2:script> |
| 12 | </bpmn2:scriptTask> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 13 | <bpmn2:startEvent id="StartEvent_1"> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 14 | <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, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 18 | <bpmn2:incoming>SequenceFlow_1u8shdz</bpmn2:incoming> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 19 | <bpmn2:outgoing>SequenceFlow_9</bpmn2:outgoing> |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 20 | <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.* |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 21 | def falloutHandler = new FalloutHandler() |
| 22 | falloutHandler.postProcessResponse(execution)]]></bpmn2:script> |
| 23 | </bpmn2:scriptTask> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 24 | <bpmn2:sequenceFlow id="SequenceFlow_9" name="" sourceRef="ScriptTask_2" targetRef="EndEvent_6" /> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 25 | <bpmn2:endEvent id="EndEvent_6"> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 26 | <bpmn2:incoming>SequenceFlow_9</bpmn2:incoming> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 27 | </bpmn2:endEvent> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 28 | <bpmn2:scriptTask id="ScriptTask_6" name=" MSO Update (infra active req) " scriptFormat="groovy"> |
| 29 | <bpmn2:incoming>SequenceFlow_1kx7ea5</bpmn2:incoming> |
| 30 | <bpmn2:outgoing>SequenceFlow_1u8shdz</bpmn2:outgoing> |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 31 | <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.* |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 32 | def falloutHandler = new FalloutHandler() |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 33 | falloutHandler.updateInfraRequestDB(execution)]]></bpmn2:script> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 34 | </bpmn2:scriptTask> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 35 | <bpmn2:subProcess id="SubProcess_1" name="Event Handler" triggeredByEvent="true"> |
| 36 | <bpmn2:scriptTask id="ScriptTask_4" name="Handle Event" scriptFormat="groovy"> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 37 | <bpmn2:incoming>SequenceFlow_1ko8ggw</bpmn2:incoming> |
| 38 | <bpmn2:outgoing>SequenceFlow_1pm9r7h</bpmn2:outgoing> |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 39 | <bpmn2:script><![CDATA[import org.onap.so.bpmn.common.scripts.* |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 40 | execution.setVariable("FH_success", false) |
| 41 | def falloutHandler = new FalloutHandler() |
| 42 | |
| 43 | // This does not (and cannot) throw exceptions |
| 44 | falloutHandler.postProcessResponse(execution) |
| 45 | |
| 46 | // Clear any WorkflowException object that might be in the execution, but keep a copy in FH_WorkflowException |
| 47 | def wfe = execution.getVariable("WorkflowException") |
| 48 | execution.setVariable("WorkflowException", null) |
| 49 | execution.setVariable("FH_WorkflowException", wfe)]]></bpmn2:script> |
| 50 | </bpmn2:scriptTask> |
| 51 | <bpmn2:startEvent id="StartEvent_2"> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 52 | <bpmn2:outgoing>SequenceFlow_1ko8ggw</bpmn2:outgoing> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 53 | <bpmn2:errorEventDefinition id="ErrorEventDefinition_8" /> |
| 54 | </bpmn2:startEvent> |
| 55 | <bpmn2:endEvent id="EndEvent_2" name="Error End"> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 56 | <bpmn2:incoming>SequenceFlow_1pm9r7h</bpmn2:incoming> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 57 | <bpmn2:terminateEventDefinition /> |
| 58 | </bpmn2:endEvent> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 59 | <bpmn2:sequenceFlow id="SequenceFlow_1ko8ggw" sourceRef="StartEvent_2" targetRef="ScriptTask_4" /> |
| 60 | <bpmn2:sequenceFlow id="SequenceFlow_1pm9r7h" sourceRef="ScriptTask_4" targetRef="EndEvent_2" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 61 | </bpmn2:subProcess> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 62 | <bpmn2:sequenceFlow id="SequenceFlow_1kx7ea5" sourceRef="ScriptTask_8" targetRef="ScriptTask_6" /> |
| 63 | <bpmn2:sequenceFlow id="SequenceFlow_1u8shdz" sourceRef="ScriptTask_6" targetRef="ScriptTask_2" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 64 | </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, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 70 | <dc:Bounds x="128" y="162" width="36" height="36" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 71 | <bpmndi:BPMNLabel> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 72 | <dc:Bounds x="134" y="199" width="24" height="12" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 73 | </bpmndi:BPMNLabel> |
| 74 | </bpmndi:BPMNShape> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 75 | <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_10" bpmnElement="SequenceFlow_10" sourceElement="_BPMNShape_StartEvent_52" targetElement="_BPMNShape_ScriptTask_99"> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 76 | <di:waypoint xsi:type="dc:Point" x="164" y="180" /> |
| 77 | <di:waypoint xsi:type="dc:Point" x="279" y="180" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 78 | <bpmndi:BPMNLabel> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 79 | <dc:Bounds x="176.5" y="165" width="90" height="0" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 80 | </bpmndi:BPMNLabel> |
| 81 | </bpmndi:BPMNEdge> |
| 82 | <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_99" bpmnElement="ScriptTask_8"> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 83 | <dc:Bounds x="279" y="140" width="100" height="80" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 84 | </bpmndi:BPMNShape> |
| 85 | <bpmndi:BPMNShape id="_BPMNShape_SubProcess_14" bpmnElement="SubProcess_1" isExpanded="true"> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 86 | <dc:Bounds x="220" y="365" width="329" height="167" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 87 | </bpmndi:BPMNShape> |
| 88 | <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_100" bpmnElement="ScriptTask_4"> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 89 | <dc:Bounds x="333" y="409" width="100" height="80" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 90 | </bpmndi:BPMNShape> |
| 91 | <bpmndi:BPMNShape id="_BPMNShape_StartEvent_54" bpmnElement="StartEvent_2"> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 92 | <dc:Bounds x="249" y="431" width="36" height="36" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 93 | <bpmndi:BPMNLabel> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 94 | <dc:Bounds x="222" y="475" width="90" height="0" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 95 | </bpmndi:BPMNLabel> |
| 96 | </bpmndi:BPMNShape> |
| 97 | <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_101" bpmnElement="ScriptTask_2"> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 98 | <dc:Bounds x="589" y="140" width="100" height="80" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 99 | </bpmndi:BPMNShape> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 100 | <bpmndi:BPMNShape id="_BPMNShape_EndEvent_129" bpmnElement="EndEvent_6"> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 101 | <dc:Bounds x="856" y="162" width="36" height="36" /> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 102 | <bpmndi:BPMNLabel> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 103 | <dc:Bounds x="845" y="203" width="57" height="12" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 104 | </bpmndi:BPMNLabel> |
| 105 | </bpmndi:BPMNShape> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 106 | <bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_9" bpmnElement="SequenceFlow_9" sourceElement="_BPMNShape_ScriptTask_101" targetElement="_BPMNShape_EndEvent_129"> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 107 | <di:waypoint xsi:type="dc:Point" x="689" y="180" /> |
| 108 | <di:waypoint xsi:type="dc:Point" x="856" y="180" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 109 | <bpmndi:BPMNLabel> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 110 | <dc:Bounds x="727.5" y="165" width="90" height="0" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 111 | </bpmndi:BPMNLabel> |
| 112 | </bpmndi:BPMNEdge> |
| 113 | <bpmndi:BPMNShape id="_BPMNShape_ScriptTask_252" bpmnElement="ScriptTask_6"> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 114 | <dc:Bounds x="431" y="141" width="100" height="80" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 115 | </bpmndi:BPMNShape> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 116 | <bpmndi:BPMNShape id="EndEvent_0b9vn2u_di" bpmnElement="EndEvent_2"> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 117 | <dc:Bounds x="477" y="431" width="36" height="36" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 118 | <bpmndi:BPMNLabel> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 119 | <dc:Bounds x="473" y="475" width="47" height="12" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 120 | </bpmndi:BPMNLabel> |
| 121 | </bpmndi:BPMNShape> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 122 | <bpmndi:BPMNEdge id="SequenceFlow_1ko8ggw_di" bpmnElement="SequenceFlow_1ko8ggw"> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 123 | <di:waypoint xsi:type="dc:Point" x="285" y="449" /> |
| 124 | <di:waypoint xsi:type="dc:Point" x="333" y="449" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 125 | <bpmndi:BPMNLabel> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 126 | <dc:Bounds x="264" y="424" width="90" height="0" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 127 | </bpmndi:BPMNLabel> |
| 128 | </bpmndi:BPMNEdge> |
Determe, Sebastien (sd378r) | 94ee925 | 2017-05-02 03:53:18 -0700 | [diff] [blame] | 129 | <bpmndi:BPMNEdge id="SequenceFlow_1pm9r7h_di" bpmnElement="SequenceFlow_1pm9r7h"> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 130 | <di:waypoint xsi:type="dc:Point" x="433" y="449" /> |
| 131 | <di:waypoint xsi:type="dc:Point" x="477" y="449" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 132 | <bpmndi:BPMNLabel> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 133 | <dc:Bounds x="410" y="424" width="90" height="0" /> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 134 | </bpmndi:BPMNLabel> |
| 135 | </bpmndi:BPMNEdge> |
Boslet, Cory | 4b23ea7 | 2019-12-09 08:49:08 -0500 | [diff] [blame] | 136 | <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> |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 150 | </bpmndi:BPMNPlane> |
| 151 | </bpmndi:BPMNDiagram> |
| 152 | </bpmn2:definitions> |