xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 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.4.0"> |
| 3 | <bpmn:process id="GenerateVfModuleName" name="GenerateVfModuleName" isExecutable="true"> |
| 4 | <bpmn:startEvent id="StartEvent_1"> |
| 5 | <bpmn:outgoing>SequenceFlow_1opqmjl</bpmn:outgoing> |
| 6 | </bpmn:startEvent> |
| 7 | <bpmn:scriptTask id="InitializeVariables" name="Initialize Variables" scriptFormat="groovy"> |
| 8 | <bpmn:incoming>SequenceFlow_1opqmjl</bpmn:incoming> |
| 9 | <bpmn:outgoing>SequenceFlow_0aqc89s</bpmn:outgoing> |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 10 | <bpmn:script><![CDATA[import org.onap.so.bpmn.common.scripts.* |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 11 | def generateVfModuleName = new GenerateVfModuleName() |
| 12 | generateVfModuleName.preProcessRequest(execution)]]></bpmn:script> |
| 13 | </bpmn:scriptTask> |
| 14 | <bpmn:scriptTask id="QueryAAIForIndex" name="Query AAI for Index" scriptFormat="groovy"> |
| 15 | <bpmn:incoming>SequenceFlow_0aqc89s</bpmn:incoming> |
| 16 | <bpmn:outgoing>SequenceFlow_1afb896</bpmn:outgoing> |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 17 | <bpmn:script><![CDATA[import org.onap.so.bpmn.common.scripts.* |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 18 | def generateVfModuleName = new GenerateVfModuleName() |
| 19 | generateVfModuleName.queryAAI(execution)]]></bpmn:script> |
| 20 | </bpmn:scriptTask> |
| 21 | <bpmn:sequenceFlow id="SequenceFlow_1opqmjl" sourceRef="StartEvent_1" targetRef="InitializeVariables" /> |
| 22 | <bpmn:sequenceFlow id="SequenceFlow_0aqc89s" sourceRef="InitializeVariables" targetRef="QueryAAIForIndex" /> |
| 23 | <bpmn:sequenceFlow id="SequenceFlow_1afb896" sourceRef="QueryAAIForIndex" targetRef="PostProcessAAIResponse" /> |
| 24 | <bpmn:sequenceFlow id="SequenceFlow_0o6nle0" sourceRef="PostProcessAAIResponse" targetRef="EndEvent_0mj5vyw" /> |
| 25 | <bpmn:endEvent id="EndEvent_0mj5vyw"> |
| 26 | <bpmn:incoming>SequenceFlow_0o6nle0</bpmn:incoming> |
| 27 | <bpmn:terminateEventDefinition /> |
| 28 | </bpmn:endEvent> |
| 29 | <bpmn:scriptTask id="PostProcessAAIResponse" name="Generate Name Based on Lowest Index" scriptFormat="groovy"> |
| 30 | <bpmn:incoming>SequenceFlow_1afb896</bpmn:incoming> |
| 31 | <bpmn:outgoing>SequenceFlow_0o6nle0</bpmn:outgoing> |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 32 | <bpmn:script><![CDATA[import org.onap.so.bpmn.common.scripts.* |
xg353y | b6b7bef | 2017-04-11 13:30:42 +0200 | [diff] [blame] | 33 | def generateVfModuleName = new GenerateVfModuleName() |
| 34 | generateVfModuleName.generateName(execution)]]></bpmn:script> |
| 35 | </bpmn:scriptTask> |
| 36 | </bpmn:process> |
| 37 | <bpmndi:BPMNDiagram id="BPMNDiagram_1"> |
| 38 | <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="GenerateVfModuleName"> |
| 39 | <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1"> |
| 40 | <dc:Bounds x="173" y="102" width="36" height="36" /> |
| 41 | </bpmndi:BPMNShape> |
| 42 | <bpmndi:BPMNShape id="ScriptTask_0jnmm07_di" bpmnElement="InitializeVariables"> |
| 43 | <dc:Bounds x="327" y="80" width="100" height="80" /> |
| 44 | </bpmndi:BPMNShape> |
| 45 | <bpmndi:BPMNShape id="ScriptTask_1pyh00w_di" bpmnElement="QueryAAIForIndex"> |
| 46 | <dc:Bounds x="518" y="80" width="100" height="80" /> |
| 47 | </bpmndi:BPMNShape> |
| 48 | <bpmndi:BPMNEdge id="SequenceFlow_1opqmjl_di" bpmnElement="SequenceFlow_1opqmjl"> |
| 49 | <di:waypoint xsi:type="dc:Point" x="209" y="120" /> |
| 50 | <di:waypoint xsi:type="dc:Point" x="327" y="120" /> |
| 51 | <bpmndi:BPMNLabel> |
| 52 | <dc:Bounds x="268" y="95" width="0" height="0" /> |
| 53 | </bpmndi:BPMNLabel> |
| 54 | </bpmndi:BPMNEdge> |
| 55 | <bpmndi:BPMNEdge id="SequenceFlow_0aqc89s_di" bpmnElement="SequenceFlow_0aqc89s"> |
| 56 | <di:waypoint xsi:type="dc:Point" x="427" y="120" /> |
| 57 | <di:waypoint xsi:type="dc:Point" x="518" y="120" /> |
| 58 | <bpmndi:BPMNLabel> |
| 59 | <dc:Bounds x="473" y="95" width="0" height="0" /> |
| 60 | </bpmndi:BPMNLabel> |
| 61 | </bpmndi:BPMNEdge> |
| 62 | <bpmndi:BPMNEdge id="SequenceFlow_1afb896_di" bpmnElement="SequenceFlow_1afb896"> |
| 63 | <di:waypoint xsi:type="dc:Point" x="618" y="120" /> |
| 64 | <di:waypoint xsi:type="dc:Point" x="696" y="120" /> |
| 65 | <bpmndi:BPMNLabel> |
| 66 | <dc:Bounds x="657" y="105" width="0" height="0" /> |
| 67 | </bpmndi:BPMNLabel> |
| 68 | </bpmndi:BPMNEdge> |
| 69 | <bpmndi:BPMNEdge id="SequenceFlow_0o6nle0_di" bpmnElement="SequenceFlow_0o6nle0"> |
| 70 | <di:waypoint xsi:type="dc:Point" x="796" y="120" /> |
| 71 | <di:waypoint xsi:type="dc:Point" x="903" y="120" /> |
| 72 | <bpmndi:BPMNLabel> |
| 73 | <dc:Bounds x="850" y="105" width="0" height="0" /> |
| 74 | </bpmndi:BPMNLabel> |
| 75 | </bpmndi:BPMNEdge> |
| 76 | <bpmndi:BPMNShape id="EndEvent_0dr0y6r_di" bpmnElement="EndEvent_0mj5vyw"> |
| 77 | <dc:Bounds x="903" y="102" width="36" height="36" /> |
| 78 | <bpmndi:BPMNLabel> |
| 79 | <dc:Bounds x="921" y="138" width="0" height="0" /> |
| 80 | </bpmndi:BPMNLabel> |
| 81 | </bpmndi:BPMNShape> |
| 82 | <bpmndi:BPMNShape id="ScriptTask_00yhljy_di" bpmnElement="PostProcessAAIResponse"> |
| 83 | <dc:Bounds x="696" y="80" width="100" height="80" /> |
| 84 | </bpmndi:BPMNShape> |
| 85 | </bpmndi:BPMNPlane> |
| 86 | </bpmndi:BPMNDiagram> |
| 87 | </bpmn:definitions> |