This repository has been archived by the owner on Apr 30, 2020. It is now read-only.
forked from mswiderski/kogito-travel-agency-tutorial
/
flightBooking.bpmn2
106 lines (106 loc) · 6.64 KB
/
flightBooking.bpmn2
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0" encoding="UTF-8"?>
<!-- origin at X=0.0 Y=0.0 -->
<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" xmlns:java="http://www.java.com/javaTypes" xmlns:tns="http://www.jboss.org/drools" xmlns="http://www.jboss.org/drools" xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd http://www.jboss.org/drools drools.xsd http://www.bpsim.org/schemas/1.0 bpsim.xsd" id="Definition" exporter="org.eclipse.bpmn2.modeler.core" exporterVersion="1.5.0.Final-v20180515-1642-B1" expressionLanguage="http://www.mvel.org/2.0" targetNamespace="http://www.jboss.org/drools" typeLanguage="http://www.java.com/javaTypes">
<bpmn2:itemDefinition id="ItemDefinition_51" isCollection="false" structureRef="org.acme.travels.Trip"/>
<bpmn2:itemDefinition id="ItemDefinition_302" isCollection="false" structureRef="org.acme.travels.Traveller"/>
<bpmn2:itemDefinition id="ItemDefinition_523" isCollection="false" structureRef="org.acme.travels.Flight"/>
<bpmn2:itemDefinition id="ItemDefinition_665" isCollection="false" structureRef="org.acme.travels.service.FlightBookingService"/>
<bpmn2:message id="Message_1" itemRef="ItemDefinition_51" name="Message 1"/>
<bpmn2:message id="Message_2" itemRef="ItemDefinition_523" name="Message 2"/>
<bpmn2:interface id="Interface_1" implementationRef="org.acme.travels.service.FlightBookingService" name="org.acme.travels.service.FlightBookingService">
<bpmn2:operation id="Operation_1" name="bookFlight">
<bpmn2:inMessageRef>Message_1</bpmn2:inMessageRef>
<bpmn2:outMessageRef>Message_2</bpmn2:outMessageRef>
</bpmn2:operation>
</bpmn2:interface>
<bpmn2:process id="flightBooking" tns:packageName="org.acme.travels" name="FlightBooking" isExecutable="true" processType="Private">
<bpmn2:extensionElements>
<tns:import name="org.acme.travels.Trip"/>
<tns:import name="org.acme.travels.Traveller"/>
<tns:import name="org.acme.travels.Flight"/>
<tns:import name="org.acme.travels.service.FlightBookingService"/>
</bpmn2:extensionElements>
<bpmn2:property id="trip" itemSubjectRef="ItemDefinition_51" name="trip"/>
<bpmn2:property id="traveller" itemSubjectRef="ItemDefinition_302" name="traveller"/>
<bpmn2:property id="flight" itemSubjectRef="ItemDefinition_523" name="flight"/>
<bpmn2:startEvent id="StartEvent_1" name="StartProcess">
<bpmn2:extensionElements>
<tns:metaData name="elementname">
<tns:metaValue><![CDATA[StartProcess]]></tns:metaValue>
</tns:metaData>
</bpmn2:extensionElements>
<bpmn2:outgoing>SequenceFlow_2</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:serviceTask id="ServiceTask_1" name="Book flight" implementation="java" operationRef="Operation_1">
<bpmn2:extensionElements>
<tns:metaData name="elementname">
<tns:metaValue><![CDATA[Book flight]]></tns:metaValue>
</tns:metaData>
</bpmn2:extensionElements>
<bpmn2:incoming>SequenceFlow_2</bpmn2:incoming>
<bpmn2:outgoing>SequenceFlow_1</bpmn2:outgoing>
<bpmn2:ioSpecification id="InputOutputSpecification_5">
<bpmn2:dataInput id="DataInput_1" itemSubjectRef="ItemDefinition_51" name="Parameter"/>
<bpmn2:dataOutput id="DataOutput_1" itemSubjectRef="ItemDefinition_523" name="Result"/>
<bpmn2:inputSet id="InputSet_5" name="Input Set 5">
<bpmn2:dataInputRefs>DataInput_1</bpmn2:dataInputRefs>
</bpmn2:inputSet>
<bpmn2:outputSet id="OutputSet_5" name="Output Set 5">
<bpmn2:dataOutputRefs>DataOutput_1</bpmn2:dataOutputRefs>
</bpmn2:outputSet>
</bpmn2:ioSpecification>
<bpmn2:dataInputAssociation id="DataInputAssociation_2">
<bpmn2:sourceRef>trip</bpmn2:sourceRef>
<bpmn2:targetRef>DataInput_1</bpmn2:targetRef>
</bpmn2:dataInputAssociation>
<bpmn2:dataOutputAssociation id="DataOutputAssociation_2">
<bpmn2:sourceRef>DataOutput_1</bpmn2:sourceRef>
<bpmn2:targetRef>flight</bpmn2:targetRef>
</bpmn2:dataOutputAssociation>
</bpmn2:serviceTask>
<bpmn2:endEvent id="EndEvent_1" name="End Event 1">
<bpmn2:extensionElements>
<tns:metaData name="elementname">
<tns:metaValue><![CDATA[End Event 1]]></tns:metaValue>
</tns:metaData>
</bpmn2:extensionElements>
<bpmn2:incoming>SequenceFlow_1</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:sequenceFlow id="SequenceFlow_1" tns:priority="1" sourceRef="ServiceTask_1" targetRef="EndEvent_1"/>
<bpmn2:sequenceFlow id="SequenceFlow_2" tns:priority="1" sourceRef="StartEvent_1" targetRef="ServiceTask_1"/>
</bpmn2:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_Process_1" bpmnElement="flightBooking">
<bpmndi:BPMNShape id="BPMNShape_StartEvent_1" bpmnElement="StartEvent_1">
<dc:Bounds height="36.0" width="36.0" x="70.0" y="91.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="11.0" width="52.0" x="62.0" y="127.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_ServiceTask_1" bpmnElement="ServiceTask_1" isExpanded="true">
<dc:Bounds height="50.0" width="110.0" x="165.0" y="84.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="11.0" width="43.0" x="198.0" y="103.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="BPMNShape_EndEvent_1" bpmnElement="EndEvent_1">
<dc:Bounds height="36.0" width="36.0" x="343.0" y="91.0"/>
<bpmndi:BPMNLabel>
<dc:Bounds height="11.0" width="50.0" x="336.0" y="127.0"/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_1" bpmnElement="SequenceFlow_1" sourceElement="BPMNShape_ServiceTask_1" targetElement="BPMNShape_EndEvent_1">
<di:waypoint xsi:type="dc:Point" x="275.0" y="109.0"/>
<di:waypoint xsi:type="dc:Point" x="309.0" y="109.0"/>
<di:waypoint xsi:type="dc:Point" x="343.0" y="109.0"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="BPMNEdge_SequenceFlow_2" bpmnElement="SequenceFlow_2" sourceElement="BPMNShape_StartEvent_1" targetElement="BPMNShape_ServiceTask_1">
<di:waypoint xsi:type="dc:Point" x="106.0" y="109.0"/>
<di:waypoint xsi:type="dc:Point" x="135.0" y="109.0"/>
<di:waypoint xsi:type="dc:Point" x="165.0" y="109.0"/>
<bpmndi:BPMNLabel/>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>