1 <?xml version="1.0" encoding="UTF-8"?>
2 <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:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.9.0">
3 <bpmn:process id="AppCClient" name="AppCClient" isExecutable="true">
4 <bpmn:startEvent id="StartEvent_1" name="Start">
5 <bpmn:outgoing>SequenceFlow_1wz1rfg</bpmn:outgoing>
7 <bpmn:sequenceFlow id="SequenceFlow_1wz1rfg" sourceRef="StartEvent_1" targetRef="PreProcessRequest" />
8 <bpmn:scriptTask id="PreProcessRequest" name="PreProcessRequest" scriptFormat="groovy">
9 <bpmn:incoming>SequenceFlow_1wz1rfg</bpmn:incoming>
10 <bpmn:outgoing>SequenceFlow_14vlkf4</bpmn:outgoing>
11 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
12 def acc = new AppCClient()
13 acc.preProcessRequest(execution)]]></bpmn:script>
15 <bpmn:endEvent id="EndEvent_1k6463v">
16 <bpmn:incoming>SequenceFlow_1j937vi</bpmn:incoming>
18 <bpmn:sequenceFlow id="SequenceFlow_14vlkf4" sourceRef="PreProcessRequest" targetRef="Task_12dmd3n" />
19 <bpmn:sequenceFlow id="SequenceFlow_1j937vi" sourceRef="Task_12dmd3n" targetRef="EndEvent_1k6463v" />
20 <bpmn:scriptTask id="Task_12dmd3n" name="Call APP-C VNF Start" scriptFormat="groovy">
21 <bpmn:incoming>SequenceFlow_14vlkf4</bpmn:incoming>
22 <bpmn:outgoing>SequenceFlow_1j937vi</bpmn:outgoing>
23 <bpmn:script><![CDATA[import org.onap.appc.client.lcm.model.Action
24 import org.openecomp.mso.bpmn.common.scripts.*
25 def acc = new AppCClient()
26 acc.runAppcCommand(execution)]]></bpmn:script>
28 <bpmn:subProcess id="SubProcess_1qgfsqz" triggeredByEvent="true">
29 <bpmn:startEvent id="StartEvent_0d3qxzd">
30 <bpmn:outgoing>SequenceFlow_1wi3avf</bpmn:outgoing>
31 <bpmn:errorEventDefinition />
33 <bpmn:endEvent id="EndEvent_187ulsw">
34 <bpmn:incoming>SequenceFlow_1gq753e</bpmn:incoming>
36 <bpmn:sequenceFlow id="SequenceFlow_1gq753e" sourceRef="Task_0a36o0m" targetRef="EndEvent_187ulsw" />
37 <bpmn:sequenceFlow id="SequenceFlow_1wi3avf" sourceRef="StartEvent_0d3qxzd" targetRef="Task_0a36o0m" />
38 <bpmn:scriptTask id="Task_0a36o0m" name="Process Error" scriptFormat="groovy">
39 <bpmn:incoming>SequenceFlow_1wi3avf</bpmn:incoming>
40 <bpmn:outgoing>SequenceFlow_1gq753e</bpmn:outgoing>
41 <bpmn:script><![CDATA[import org.openecomp.mso.bpmn.common.scripts.*
43 ExceptionUtil ex = new ExceptionUtil()
44 ex.processSubflowsBPMNException(execution)]]></bpmn:script>
48 <bpmndi:BPMNDiagram id="BPMNDiagram_1">
49 <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="AppCClient">
50 <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
51 <dc:Bounds x="173" y="102" width="36" height="36" />
53 <dc:Bounds x="179" y="138" width="24" height="12" />
56 <bpmndi:BPMNEdge id="SequenceFlow_1wz1rfg_di" bpmnElement="SequenceFlow_1wz1rfg">
57 <di:waypoint xsi:type="dc:Point" x="209" y="120" />
58 <di:waypoint xsi:type="dc:Point" x="306" y="119" />
60 <dc:Bounds x="257.5" y="98.5" width="0" height="12" />
63 <bpmndi:BPMNShape id="ScriptTask_0369vot_di" bpmnElement="PreProcessRequest">
64 <dc:Bounds x="306" y="79" width="100" height="80" />
66 <bpmndi:BPMNShape id="EndEvent_1k6463v_di" bpmnElement="EndEvent_1k6463v">
67 <dc:Bounds x="844" y="102" width="36" height="36" />
69 <dc:Bounds x="817" y="142" width="90" height="12" />
72 <bpmndi:BPMNEdge id="SequenceFlow_14vlkf4_di" bpmnElement="SequenceFlow_14vlkf4">
73 <di:waypoint xsi:type="dc:Point" x="406" y="119" />
74 <di:waypoint xsi:type="dc:Point" x="471" y="119" />
75 <di:waypoint xsi:type="dc:Point" x="471" y="120" />
76 <di:waypoint xsi:type="dc:Point" x="520" y="120" />
78 <dc:Bounds x="441" y="113.5" width="90" height="12" />
81 <bpmndi:BPMNEdge id="SequenceFlow_1j937vi_di" bpmnElement="SequenceFlow_1j937vi">
82 <di:waypoint xsi:type="dc:Point" x="620" y="120" />
83 <di:waypoint xsi:type="dc:Point" x="740" y="120" />
84 <di:waypoint xsi:type="dc:Point" x="740" y="120" />
85 <di:waypoint xsi:type="dc:Point" x="844" y="120" />
87 <dc:Bounds x="710" y="114" width="90" height="12" />
90 <bpmndi:BPMNShape id="ScriptTask_08gicz7_di" bpmnElement="Task_12dmd3n">
91 <dc:Bounds x="520" y="80" width="100" height="80" />
93 <bpmndi:BPMNShape id="SubProcess_0l79snr_di" bpmnElement="SubProcess_1qgfsqz" isExpanded="true">
94 <dc:Bounds x="124" y="271" width="340" height="159" />
96 <bpmndi:BPMNShape id="StartEvent_0d8xcpk_di" bpmnElement="StartEvent_0d3qxzd">
97 <dc:Bounds x="150" y="332" width="36" height="36" />
99 <dc:Bounds x="168" y="372" width="0" height="12" />
102 <bpmndi:BPMNShape id="EndEvent_187ulsw_di" bpmnElement="EndEvent_187ulsw">
103 <dc:Bounds x="394" y="332" width="36" height="36" />
105 <dc:Bounds x="412" y="372" width="0" height="12" />
108 <bpmndi:BPMNEdge id="SequenceFlow_1gq753e_di" bpmnElement="SequenceFlow_1gq753e">
109 <di:waypoint xsi:type="dc:Point" x="334" y="350" />
110 <di:waypoint xsi:type="dc:Point" x="394" y="350" />
112 <dc:Bounds x="364" y="329" width="0" height="12" />
115 <bpmndi:BPMNEdge id="SequenceFlow_1wi3avf_di" bpmnElement="SequenceFlow_1wi3avf">
116 <di:waypoint xsi:type="dc:Point" x="186" y="350" />
117 <di:waypoint xsi:type="dc:Point" x="234" y="350" />
119 <dc:Bounds x="210" y="329" width="0" height="12" />
122 <bpmndi:BPMNShape id="ScriptTask_1wumcac_di" bpmnElement="Task_0a36o0m">
123 <dc:Bounds x="234" y="310" width="100" height="80" />
126 </bpmndi:BPMNDiagram>