aboutsummaryrefslogtreecommitdiffstats
path: root/bpmn/MSOCommonBPMN/src/main/resources/subprocess/GenerateVfModuleName.bpmn
blob: 092001b56af433e8104763fff09f74fa6aa09403 (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
<?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:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.4.0">
  <bpmn:process id="GenerateVfModuleName" name="GenerateVfModuleName" isExecutable="true">
    <bpmn:startEvent id="StartEvent_1">
      <bpmn:outgoing>SequenceFlow_1opqmjl</bpmn:outgoing>
    </bpmn:startEvent>
    <bpmn:scriptTask id="InitializeVariables" name="Initialize Variables" scriptFormat="groovy">
      <bpmn:incoming>SequenceFlow_1opqmjl</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_0aqc89s</bpmn:outgoing>
      <bpmn:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
def generateVfModuleName = new GenerateVfModuleName()
generateVfModuleName.preProcessRequest(execution)]]></bpmn:script>
    </bpmn:scriptTask>
    <bpmn:scriptTask id="QueryAAIForIndex" name="Query AAI for Index" scriptFormat="groovy">
      <bpmn:incoming>SequenceFlow_0aqc89s</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1afb896</bpmn:outgoing>
      <bpmn:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
def generateVfModuleName = new GenerateVfModuleName()
generateVfModuleName.queryAAI(execution)]]></bpmn:script>
    </bpmn:scriptTask>
    <bpmn:sequenceFlow id="SequenceFlow_1opqmjl" sourceRef="StartEvent_1" targetRef="InitializeVariables" />
    <bpmn:sequenceFlow id="SequenceFlow_0aqc89s" sourceRef="InitializeVariables" targetRef="QueryAAIForIndex" />
    <bpmn:sequenceFlow id="SequenceFlow_1afb896" sourceRef="QueryAAIForIndex" targetRef="PostProcessAAIResponse" />
    <bpmn:sequenceFlow id="SequenceFlow_0o6nle0" sourceRef="PostProcessAAIResponse" targetRef="EndEvent_0mj5vyw" />
    <bpmn:endEvent id="EndEvent_0mj5vyw">
      <bpmn:incoming>SequenceFlow_0o6nle0</bpmn:incoming>
      <bpmn:terminateEventDefinition />
    </bpmn:endEvent>
    <bpmn:scriptTask id="PostProcessAAIResponse" name="Generate Name Based on Lowest Index" scriptFormat="groovy">
      <bpmn:incoming>SequenceFlow_1afb896</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_0o6nle0</bpmn:outgoing>
      <bpmn:script><![CDATA[import org.onap.so.bpmn.common.scripts.*
def generateVfModuleName = new GenerateVfModuleName()
generateVfModuleName.generateName(execution)]]></bpmn:script>
    </bpmn:scriptTask>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="GenerateVfModuleName">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="173" y="102" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="ScriptTask_0jnmm07_di" bpmnElement="InitializeVariables">
        <dc:Bounds x="327" y="80" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="ScriptTask_1pyh00w_di" bpmnElement="QueryAAIForIndex">
        <dc:Bounds x="518" y="80" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1opqmjl_di" bpmnElement="SequenceFlow_1opqmjl">
        <di:waypoint xsi:type="dc:Point" x="209" y="120" />
        <di:waypoint xsi:type="dc:Point" x="327" y="120" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="268" y="95" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0aqc89s_di" bpmnElement="SequenceFlow_0aqc89s">
        <di:waypoint xsi:type="dc:Point" x="427" y="120" />
        <di:waypoint xsi:type="dc:Point" x="518" y="120" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="473" y="95" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_1afb896_di" bpmnElement="SequenceFlow_1afb896">
        <di:waypoint xsi:type="dc:Point" x="618" y="120" />
        <di:waypoint xsi:type="dc:Point" x="696" y="120" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="657" y="105" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0o6nle0_di" bpmnElement="SequenceFlow_0o6nle0">
        <di:waypoint xsi:type="dc:Point" x="796" y="120" />
        <di:waypoint xsi:type="dc:Point" x="903" y="120" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="850" y="105" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="EndEvent_0dr0y6r_di" bpmnElement="EndEvent_0mj5vyw">
        <dc:Bounds x="903" y="102" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="921" y="138" width="0" height="0" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="ScriptTask_00yhljy_di" bpmnElement="PostProcessAAIResponse">
        <dc:Bounds x="696" y="80" width="100" height="80" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>