cpee 1.4.15 → 1.4.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cockpit/js/instance.js +15 -6
- data/cockpit/js/wfadaptor.js +18 -3
- data/cockpit/themes/compact/theme.js +5 -3
- data/cockpit/themes/default/rngs/choose.rng +2 -2
- data/cockpit/themes/default/rngs/parallel.rng +2 -2
- data/cockpit/themes/default/theme.js +5 -3
- data/cockpit/themes/extended/theme.js +1042 -0
- data/cockpit/track.html +118 -0
- data/cpee.gemspec +1 -1
- data/lib/cpee/controller.rb +24 -8
- data/lib/cpee/implementation.rb +3 -6
- data/server/handlerwrappers/default.rb +1 -1
- data/server/resources/properties.init +5 -4
- data/server/resources/properties.schema.active +9 -1
- data/server/resources/properties.schema.finished +8 -0
- data/server/resources/properties.schema.inactive +8 -0
- data/tools/cpee +42 -19
- metadata +4 -109
- data/log/logs/1/test +0 -1
- data/log/logs/3b0cfe66-5a3d-43de-b5a1-d7b9386be65a.xes.yaml +0 -413
- data/server/instances/1/properties.xml +0 -62
- data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/consumer-secret +0 -1
- data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/producer-secret +0 -1
- data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/subscription.xml +0 -23
- data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/consumer-secret +0 -1
- data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/producer-secret +0 -1
- data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/subscription.xml +0 -6
- data/server/instances/10/properties.xml +0 -187
- data/server/instances/11/properties.xml +0 -191
- data/server/instances/12/properties.xml +0 -191
- data/server/instances/13/properties.xml +0 -204
- data/server/instances/14/properties.xml +0 -31
- data/server/instances/15/properties.xml +0 -30
- data/server/instances/16/properties.xml +0 -29
- data/server/instances/17/properties.xml +0 -29
- data/server/instances/18/properties.xml +0 -31
- data/server/instances/19/properties.xml +0 -31
- data/server/instances/2/properties.xml +0 -31
- data/server/instances/20/properties.xml +0 -191
- data/server/instances/21/properties.xml +0 -156
- data/server/instances/22/properties.xml +0 -118
- data/server/instances/23/properties.xml +0 -118
- data/server/instances/24/properties.xml +0 -156
- data/server/instances/25/properties.xml +0 -156
- data/server/instances/26/properties.xml +0 -156
- data/server/instances/27/properties.xml +0 -140
- data/server/instances/28/properties.xml +0 -156
- data/server/instances/29/properties.xml +0 -156
- data/server/instances/3/properties.xml +0 -120
- data/server/instances/30/properties.xml +0 -354
- data/server/instances/31/properties.xml +0 -354
- data/server/instances/313/notifications/crisp/consumer-secret +0 -1
- data/server/instances/313/notifications/crisp/producer-secret +0 -1
- data/server/instances/313/notifications/crisp/subscription.xml +0 -7
- data/server/instances/313/notifications/logging/consumer-secret +0 -1
- data/server/instances/313/notifications/logging/producer-secret +0 -1
- data/server/instances/313/notifications/logging/subscription.xml +0 -7
- data/server/instances/313/notifications/logging_yaml/consumer-secret +0 -1
- data/server/instances/313/notifications/logging_yaml/producer-secret +0 -1
- data/server/instances/313/notifications/logging_yaml/subscription.xml +0 -7
- data/server/instances/313/properties.xml +0 -524
- data/server/instances/32/properties.xml +0 -628
- data/server/instances/33/properties.xml +0 -156
- data/server/instances/4/properties.xml +0 -114
- data/server/instances/5/properties.xml +0 -114
- data/server/instances/6/properties.xml +0 -206
- data/server/instances/662/notifications/crisp/consumer-secret +0 -1
- data/server/instances/662/notifications/crisp/producer-secret +0 -1
- data/server/instances/662/notifications/crisp/subscription.xml +0 -7
- data/server/instances/662/notifications/logging/consumer-secret +0 -1
- data/server/instances/662/notifications/logging/producer-secret +0 -1
- data/server/instances/662/notifications/logging/subscription.xml +0 -7
- data/server/instances/662/notifications/logging_yaml/consumer-secret +0 -1
- data/server/instances/662/notifications/logging_yaml/producer-secret +0 -1
- data/server/instances/662/notifications/logging_yaml/subscription.xml +0 -7
- data/server/instances/662/properties.xml +0 -427
- data/server/instances/663/properties.xml +0 -31
- data/server/instances/664/properties.xml +0 -425
- data/server/instances/665/properties.xml +0 -425
- data/server/instances/666/properties.xml +0 -427
- data/server/instances/667/properties.xml +0 -427
- data/server/instances/668/properties.xml +0 -425
- data/server/instances/669/properties.xml +0 -425
- data/server/instances/670/properties.xml +0 -31
- data/server/instances/671/properties.xml +0 -158
- data/server/instances/672/properties.xml +0 -199
- data/server/instances/673/properties.xml +0 -52
- data/server/instances/674/properties.xml +0 -75
- data/server/instances/675/notifications/10fa09a02f1a981a931ebe75d8cabe48/consumer-secret +0 -1
- data/server/instances/675/notifications/10fa09a02f1a981a931ebe75d8cabe48/producer-secret +0 -1
- data/server/instances/675/notifications/10fa09a02f1a981a931ebe75d8cabe48/subscription.xml +0 -6
- data/server/instances/675/properties.xml +0 -74
- data/server/instances/676/properties.xml +0 -76
- data/server/instances/677/properties.xml +0 -76
- data/server/instances/678/properties.xml +0 -74
- data/server/instances/679/properties.xml +0 -76
- data/server/instances/680/properties.xml +0 -76
- data/server/instances/681/properties.xml +0 -156
- data/server/instances/682/properties.xml +0 -156
- data/server/instances/683/properties.xml +0 -156
- data/server/instances/684/properties.xml +0 -156
- data/server/instances/685/properties.xml +0 -156
- data/server/instances/686/properties.xml +0 -156
- data/server/instances/687/properties.xml +0 -156
- data/server/instances/688/properties.xml +0 -118
- data/server/instances/689/properties.xml +0 -156
- data/server/instances/690/properties.xml +0 -156
- data/server/instances/691/properties.xml +0 -129
- data/server/instances/692/properties.xml +0 -31
- data/server/instances/693/properties.xml +0 -118
- data/server/instances/694/properties.xml +0 -118
- data/server/instances/695/properties.xml +0 -156
- data/server/instances/696/properties.xml +0 -156
- data/server/instances/697/notifications/ruleengine/consumer-secret +0 -1
- data/server/instances/697/notifications/ruleengine/producer-secret +0 -1
- data/server/instances/697/notifications/ruleengine/subscription.xml +0 -16
- data/server/instances/697/properties.xml +0 -156
- data/server/instances/698/notifications/ruleengine/consumer-secret +0 -1
- data/server/instances/698/notifications/ruleengine/producer-secret +0 -1
- data/server/instances/698/notifications/ruleengine/subscription.xml +0 -16
- data/server/instances/698/properties.xml +0 -31
- data/server/instances/7/properties.xml +0 -156
- data/server/instances/8/properties.xml +0 -118
- data/server/instances/9/properties.xml +0 -120
- data/server/server.pid +0 -1
@@ -1,156 +0,0 @@
|
|
1
|
-
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
-
<attributes>
|
3
|
-
<uuid>e86e582c-7b63-46c8-8884-2047cca800e4</uuid>
|
4
|
-
<info>Plain Instance</info>
|
5
|
-
<modeltype>CPEE</modeltype>
|
6
|
-
<theme>default</theme>
|
7
|
-
</attributes>
|
8
|
-
<state>finished</state>
|
9
|
-
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
|
-
<positions/>
|
11
|
-
<dataelements>
|
12
|
-
<persons>0</persons>
|
13
|
-
<card>Visa_12345</card>
|
14
|
-
<airline>Lufthansa</airline>
|
15
|
-
<hotels>["Rathaus","Ibis","Mariott"]</hotels>
|
16
|
-
<from>Vienna</from>
|
17
|
-
<to>Prague</to>
|
18
|
-
<costs>838.0</costs>
|
19
|
-
</dataelements>
|
20
|
-
<endpoints>
|
21
|
-
<bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
|
22
|
-
<bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
|
23
|
-
<approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
|
24
|
-
</endpoints>
|
25
|
-
<dsl>call :a1, :bookAir, parameters: { :label => "Book Airline", :method => :post, :arguments => [⭐(:name => :from, :value => "data.from"), ⭐(:name => :to, :value => "data.to"), ⭐(:name => :persons, :value => "data.persons")] }, finalize: <<-END
|
26
|
-
data.airline = result.value('id')
|
27
|
-
data.costs += result.value('costs').to_f
|
28
|
-
status.update 1, 'Hotel'
|
29
|
-
END
|
30
|
-
parallel do
|
31
|
-
loop pre_test{data.persons > 0} do
|
32
|
-
parallel_branch data.persons do |p|
|
33
|
-
call :a2, :bookHotel, parameters: { :label => "Book Hotel", :method => :post, :arguments => [⭐(:name => :to, :value => "data.to")] }, finalize: <<-END
|
34
|
-
data.hotels << result.value('id')
|
35
|
-
data.costs += result.value('costs').to_f
|
36
|
-
END
|
37
|
-
end
|
38
|
-
manipulate :a3, <<-END
|
39
|
-
data.persons -= 1
|
40
|
-
END
|
41
|
-
end
|
42
|
-
end
|
43
|
-
choose :inclusive do
|
44
|
-
alternative test{data.costs > 700} do
|
45
|
-
call :a4, :approve, parameters: { :label => "Approve Hotel", :method => :post, :arguments => [⭐(:name => :costs, :value => "data.costs")] }
|
46
|
-
end
|
47
|
-
end
|
48
|
-
</dsl>
|
49
|
-
<dslx>
|
50
|
-
<description xmlns="http://cpee.org/ns/description/1.0">
|
51
|
-
<call id="a1" endpoint="bookAir">
|
52
|
-
<parameters>
|
53
|
-
<label>Book Airline</label>
|
54
|
-
<method>:post</method>
|
55
|
-
<arguments>
|
56
|
-
<from>data.from</from>
|
57
|
-
<to>data.to</to>
|
58
|
-
<persons>data.persons</persons>
|
59
|
-
</arguments>
|
60
|
-
</parameters>
|
61
|
-
<finalize output="result">data.airline = result.value('id')
|
62
|
-
data.costs += result.value('costs').to_f
|
63
|
-
status.update 1, 'Hotel'</finalize>
|
64
|
-
</call>
|
65
|
-
<parallel>
|
66
|
-
<loop mode="pre_test" condition="data.persons > 0">
|
67
|
-
<parallel_branch pass="data.persons" local="p">
|
68
|
-
<call id="a2" endpoint="bookHotel">
|
69
|
-
<parameters>
|
70
|
-
<label>Book Hotel</label>
|
71
|
-
<method>:post</method>
|
72
|
-
<arguments>
|
73
|
-
<to>data.to</to>
|
74
|
-
</arguments>
|
75
|
-
</parameters>
|
76
|
-
<finalize output="result">data.hotels << result.value('id')
|
77
|
-
data.costs += result.value('costs').to_f</finalize>
|
78
|
-
</call>
|
79
|
-
</parallel_branch>
|
80
|
-
<manipulate id="a3">data.persons -= 1</manipulate>
|
81
|
-
</loop>
|
82
|
-
</parallel>
|
83
|
-
<choose mode="inclusive">
|
84
|
-
<alternative condition="data.costs > 700">
|
85
|
-
<call id="a4" endpoint="approve">
|
86
|
-
<parameters>
|
87
|
-
<label>Approve Hotel</label>
|
88
|
-
<method>:post</method>
|
89
|
-
<arguments>
|
90
|
-
<costs>data.costs</costs>
|
91
|
-
</arguments>
|
92
|
-
</parameters>
|
93
|
-
</call>
|
94
|
-
</alternative>
|
95
|
-
</choose>
|
96
|
-
</description>
|
97
|
-
</dslx>
|
98
|
-
<status>
|
99
|
-
<id>1</id>
|
100
|
-
<message>Hotel</message>
|
101
|
-
</status>
|
102
|
-
<description>
|
103
|
-
<description xmlns="http://cpee.org/ns/description/1.0">
|
104
|
-
<call id="a1" endpoint="bookAir">
|
105
|
-
<parameters>
|
106
|
-
<label>Book Airline</label>
|
107
|
-
<method>:post</method>
|
108
|
-
<arguments>
|
109
|
-
<from>data.from</from>
|
110
|
-
<to>data.to</to>
|
111
|
-
<persons>data.persons</persons>
|
112
|
-
</arguments>
|
113
|
-
</parameters>
|
114
|
-
<finalize output="result">data.airline = result.value('id')
|
115
|
-
data.costs += result.value('costs').to_f
|
116
|
-
status.update 1, 'Hotel'</finalize>
|
117
|
-
</call>
|
118
|
-
<parallel>
|
119
|
-
<loop mode="pre_test" condition="data.persons > 0">
|
120
|
-
<parallel_branch pass="data.persons" local="p">
|
121
|
-
<call id="a2" endpoint="bookHotel">
|
122
|
-
<parameters>
|
123
|
-
<label>Book Hotel</label>
|
124
|
-
<method>:post</method>
|
125
|
-
<arguments>
|
126
|
-
<to>data.to</to>
|
127
|
-
</arguments>
|
128
|
-
</parameters>
|
129
|
-
<finalize output="result">data.hotels << result.value('id')
|
130
|
-
data.costs += result.value('costs').to_f</finalize>
|
131
|
-
</call>
|
132
|
-
</parallel_branch>
|
133
|
-
<manipulate id="a3">data.persons -= 1</manipulate>
|
134
|
-
</loop>
|
135
|
-
</parallel>
|
136
|
-
<choose mode="inclusive">
|
137
|
-
<alternative condition="data.costs > 700">
|
138
|
-
<call id="a4" endpoint="approve">
|
139
|
-
<parameters>
|
140
|
-
<label>Approve Hotel</label>
|
141
|
-
<method>:post</method>
|
142
|
-
<arguments>
|
143
|
-
<costs>data.costs</costs>
|
144
|
-
</arguments>
|
145
|
-
</parameters>
|
146
|
-
</call>
|
147
|
-
</alternative>
|
148
|
-
</choose>
|
149
|
-
</description>
|
150
|
-
</description>
|
151
|
-
<transformation>
|
152
|
-
<description type="copy"/>
|
153
|
-
<dataelements type="rest"/>
|
154
|
-
<endpoints type="rest"/>
|
155
|
-
</transformation>
|
156
|
-
</properties>
|
@@ -1,156 +0,0 @@
|
|
1
|
-
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
-
<attributes>
|
3
|
-
<uuid>fc3617b8-147b-4f60-8f01-268f3af3cc9d</uuid>
|
4
|
-
<info>Linear</info>
|
5
|
-
<modeltype>CPEE</modeltype>
|
6
|
-
<theme>default</theme>
|
7
|
-
</attributes>
|
8
|
-
<state>finished</state>
|
9
|
-
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
|
-
<positions/>
|
11
|
-
<dataelements>
|
12
|
-
<persons>0</persons>
|
13
|
-
<card>Visa_12345</card>
|
14
|
-
<airline>American Airlines</airline>
|
15
|
-
<hotels>["Ibis","Rathaus","Mariott"]</hotels>
|
16
|
-
<from>Vienna</from>
|
17
|
-
<to>Prague</to>
|
18
|
-
<costs>1170.0</costs>
|
19
|
-
</dataelements>
|
20
|
-
<endpoints>
|
21
|
-
<bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
|
22
|
-
<bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
|
23
|
-
<approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
|
24
|
-
</endpoints>
|
25
|
-
<dsl>call :a1, :bookAir, parameters: { :label => "Book Airline", :method => :post, :arguments => [⭐(:name => :from, :value => "data.from"), ⭐(:name => :to, :value => "data.to"), ⭐(:name => :persons, :value => "data.persons")] }, finalize: <<-END
|
26
|
-
data.airline = result.value('id')
|
27
|
-
data.costs += result.value('costs').to_f
|
28
|
-
status.update 1, 'Hotel'
|
29
|
-
END
|
30
|
-
parallel do
|
31
|
-
loop pre_test{data.persons > 0} do
|
32
|
-
parallel_branch data.persons do |p|
|
33
|
-
call :a2, :bookHotel, parameters: { :label => "Book Hotel", :method => :post, :arguments => [⭐(:name => :to, :value => "data.to")] }, finalize: <<-END
|
34
|
-
data.hotels << result.value('id')
|
35
|
-
data.costs += result.value('costs').to_f
|
36
|
-
END
|
37
|
-
end
|
38
|
-
manipulate :a3, <<-END
|
39
|
-
data.persons -= 1
|
40
|
-
END
|
41
|
-
end
|
42
|
-
end
|
43
|
-
choose :inclusive do
|
44
|
-
alternative test{data.costs > 700} do
|
45
|
-
call :a4, :approve, parameters: { :label => "Approve Hotel", :method => :post, :arguments => [⭐(:name => :costs, :value => "data.costs")] }
|
46
|
-
end
|
47
|
-
end
|
48
|
-
</dsl>
|
49
|
-
<dslx>
|
50
|
-
<description xmlns="http://cpee.org/ns/description/1.0">
|
51
|
-
<call id="a1" endpoint="bookAir">
|
52
|
-
<parameters>
|
53
|
-
<label>Book Airline</label>
|
54
|
-
<method>:post</method>
|
55
|
-
<arguments>
|
56
|
-
<from>data.from</from>
|
57
|
-
<to>data.to</to>
|
58
|
-
<persons>data.persons</persons>
|
59
|
-
</arguments>
|
60
|
-
</parameters>
|
61
|
-
<finalize output="result">data.airline = result.value('id')
|
62
|
-
data.costs += result.value('costs').to_f
|
63
|
-
status.update 1, 'Hotel'</finalize>
|
64
|
-
</call>
|
65
|
-
<parallel>
|
66
|
-
<loop mode="pre_test" condition="data.persons > 0">
|
67
|
-
<parallel_branch pass="data.persons" local="p">
|
68
|
-
<call id="a2" endpoint="bookHotel">
|
69
|
-
<parameters>
|
70
|
-
<label>Book Hotel</label>
|
71
|
-
<method>:post</method>
|
72
|
-
<arguments>
|
73
|
-
<to>data.to</to>
|
74
|
-
</arguments>
|
75
|
-
</parameters>
|
76
|
-
<finalize output="result">data.hotels << result.value('id')
|
77
|
-
data.costs += result.value('costs').to_f</finalize>
|
78
|
-
</call>
|
79
|
-
</parallel_branch>
|
80
|
-
<manipulate id="a3">data.persons -= 1</manipulate>
|
81
|
-
</loop>
|
82
|
-
</parallel>
|
83
|
-
<choose mode="inclusive">
|
84
|
-
<alternative condition="data.costs > 700">
|
85
|
-
<call id="a4" endpoint="approve">
|
86
|
-
<parameters>
|
87
|
-
<label>Approve Hotel</label>
|
88
|
-
<method>:post</method>
|
89
|
-
<arguments>
|
90
|
-
<costs>data.costs</costs>
|
91
|
-
</arguments>
|
92
|
-
</parameters>
|
93
|
-
</call>
|
94
|
-
</alternative>
|
95
|
-
</choose>
|
96
|
-
</description>
|
97
|
-
</dslx>
|
98
|
-
<status>
|
99
|
-
<id>1</id>
|
100
|
-
<message>Hotel</message>
|
101
|
-
</status>
|
102
|
-
<description>
|
103
|
-
<description xmlns="http://cpee.org/ns/description/1.0">
|
104
|
-
<call id="a1" endpoint="bookAir">
|
105
|
-
<parameters>
|
106
|
-
<label>Book Airline</label>
|
107
|
-
<method>:post</method>
|
108
|
-
<arguments>
|
109
|
-
<from>data.from</from>
|
110
|
-
<to>data.to</to>
|
111
|
-
<persons>data.persons</persons>
|
112
|
-
</arguments>
|
113
|
-
</parameters>
|
114
|
-
<finalize output="result">data.airline = result.value('id')
|
115
|
-
data.costs += result.value('costs').to_f
|
116
|
-
status.update 1, 'Hotel'</finalize>
|
117
|
-
</call>
|
118
|
-
<parallel>
|
119
|
-
<loop mode="pre_test" condition="data.persons > 0">
|
120
|
-
<parallel_branch pass="data.persons" local="p">
|
121
|
-
<call id="a2" endpoint="bookHotel">
|
122
|
-
<parameters>
|
123
|
-
<label>Book Hotel</label>
|
124
|
-
<method>:post</method>
|
125
|
-
<arguments>
|
126
|
-
<to>data.to</to>
|
127
|
-
</arguments>
|
128
|
-
</parameters>
|
129
|
-
<finalize output="result">data.hotels << result.value('id')
|
130
|
-
data.costs += result.value('costs').to_f</finalize>
|
131
|
-
</call>
|
132
|
-
</parallel_branch>
|
133
|
-
<manipulate id="a3">data.persons -= 1</manipulate>
|
134
|
-
</loop>
|
135
|
-
</parallel>
|
136
|
-
<choose mode="inclusive">
|
137
|
-
<alternative condition="data.costs > 700">
|
138
|
-
<call id="a4" endpoint="approve">
|
139
|
-
<parameters>
|
140
|
-
<label>Approve Hotel</label>
|
141
|
-
<method>:post</method>
|
142
|
-
<arguments>
|
143
|
-
<costs>data.costs</costs>
|
144
|
-
</arguments>
|
145
|
-
</parameters>
|
146
|
-
</call>
|
147
|
-
</alternative>
|
148
|
-
</choose>
|
149
|
-
</description>
|
150
|
-
</description>
|
151
|
-
<transformation>
|
152
|
-
<description type="copy"/>
|
153
|
-
<dataelements type="rest"/>
|
154
|
-
<endpoints type="rest"/>
|
155
|
-
</transformation>
|
156
|
-
</properties>
|
@@ -1,156 +0,0 @@
|
|
1
|
-
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
-
<attributes>
|
3
|
-
<uuid>7404a62a-0f42-4571-952f-956273eadbbc</uuid>
|
4
|
-
<info>Plain Instance</info>
|
5
|
-
<modeltype>CPEE</modeltype>
|
6
|
-
<theme>default</theme>
|
7
|
-
</attributes>
|
8
|
-
<state>finished</state>
|
9
|
-
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
|
-
<positions/>
|
11
|
-
<dataelements>
|
12
|
-
<persons>0</persons>
|
13
|
-
<card>Visa_12345</card>
|
14
|
-
<airline>Aeroflot</airline>
|
15
|
-
<hotels>["Mariott","Rathaus","Ibis"]</hotels>
|
16
|
-
<from>Vienna</from>
|
17
|
-
<to>Prague</to>
|
18
|
-
<costs>989.0</costs>
|
19
|
-
</dataelements>
|
20
|
-
<endpoints>
|
21
|
-
<bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
|
22
|
-
<bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
|
23
|
-
<approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
|
24
|
-
</endpoints>
|
25
|
-
<dsl>call :a1, :bookAir, parameters: { :label => "Book Airline", :method => :post, :arguments => [⭐(:name => :from, :value => "data.from"), ⭐(:name => :to, :value => "data.to"), ⭐(:name => :persons, :value => "data.persons")] }, finalize: <<-END
|
26
|
-
data.airline = result.value('id')
|
27
|
-
data.costs += result.value('costs').to_f
|
28
|
-
status.update 1, 'Hotel'
|
29
|
-
END
|
30
|
-
parallel do
|
31
|
-
loop pre_test{data.persons > 0} do
|
32
|
-
parallel_branch data.persons do |p|
|
33
|
-
call :a2, :bookHotel, parameters: { :label => "Book Hotel", :method => :post, :arguments => [⭐(:name => :to, :value => "data.to")] }, finalize: <<-END
|
34
|
-
data.hotels << result.value('id')
|
35
|
-
data.costs += result.value('costs').to_f
|
36
|
-
END
|
37
|
-
end
|
38
|
-
manipulate :a3, <<-END
|
39
|
-
data.persons -= 1
|
40
|
-
END
|
41
|
-
end
|
42
|
-
end
|
43
|
-
choose :inclusive do
|
44
|
-
alternative test{data.costs > 700} do
|
45
|
-
call :a4, :approve, parameters: { :label => "Approve Hotel", :method => :post, :arguments => [⭐(:name => :costs, :value => "data.costs")] }
|
46
|
-
end
|
47
|
-
end
|
48
|
-
</dsl>
|
49
|
-
<dslx>
|
50
|
-
<description xmlns="http://cpee.org/ns/description/1.0">
|
51
|
-
<call id="a1" endpoint="bookAir">
|
52
|
-
<parameters>
|
53
|
-
<label>Book Airline</label>
|
54
|
-
<method>:post</method>
|
55
|
-
<arguments>
|
56
|
-
<from>data.from</from>
|
57
|
-
<to>data.to</to>
|
58
|
-
<persons>data.persons</persons>
|
59
|
-
</arguments>
|
60
|
-
</parameters>
|
61
|
-
<finalize output="result">data.airline = result.value('id')
|
62
|
-
data.costs += result.value('costs').to_f
|
63
|
-
status.update 1, 'Hotel'</finalize>
|
64
|
-
</call>
|
65
|
-
<parallel>
|
66
|
-
<loop mode="pre_test" condition="data.persons > 0">
|
67
|
-
<parallel_branch pass="data.persons" local="p">
|
68
|
-
<call id="a2" endpoint="bookHotel">
|
69
|
-
<parameters>
|
70
|
-
<label>Book Hotel</label>
|
71
|
-
<method>:post</method>
|
72
|
-
<arguments>
|
73
|
-
<to>data.to</to>
|
74
|
-
</arguments>
|
75
|
-
</parameters>
|
76
|
-
<finalize output="result">data.hotels << result.value('id')
|
77
|
-
data.costs += result.value('costs').to_f</finalize>
|
78
|
-
</call>
|
79
|
-
</parallel_branch>
|
80
|
-
<manipulate id="a3">data.persons -= 1</manipulate>
|
81
|
-
</loop>
|
82
|
-
</parallel>
|
83
|
-
<choose mode="inclusive">
|
84
|
-
<alternative condition="data.costs > 700">
|
85
|
-
<call id="a4" endpoint="approve">
|
86
|
-
<parameters>
|
87
|
-
<label>Approve Hotel</label>
|
88
|
-
<method>:post</method>
|
89
|
-
<arguments>
|
90
|
-
<costs>data.costs</costs>
|
91
|
-
</arguments>
|
92
|
-
</parameters>
|
93
|
-
</call>
|
94
|
-
</alternative>
|
95
|
-
</choose>
|
96
|
-
</description>
|
97
|
-
</dslx>
|
98
|
-
<status>
|
99
|
-
<id>1</id>
|
100
|
-
<message>Hotel</message>
|
101
|
-
</status>
|
102
|
-
<description>
|
103
|
-
<description xmlns="http://cpee.org/ns/description/1.0">
|
104
|
-
<call id="a1" endpoint="bookAir">
|
105
|
-
<parameters>
|
106
|
-
<label>Book Airline</label>
|
107
|
-
<method>:post</method>
|
108
|
-
<arguments>
|
109
|
-
<from>data.from</from>
|
110
|
-
<to>data.to</to>
|
111
|
-
<persons>data.persons</persons>
|
112
|
-
</arguments>
|
113
|
-
</parameters>
|
114
|
-
<finalize output="result">data.airline = result.value('id')
|
115
|
-
data.costs += result.value('costs').to_f
|
116
|
-
status.update 1, 'Hotel'</finalize>
|
117
|
-
</call>
|
118
|
-
<parallel>
|
119
|
-
<loop mode="pre_test" condition="data.persons > 0">
|
120
|
-
<parallel_branch pass="data.persons" local="p">
|
121
|
-
<call id="a2" endpoint="bookHotel">
|
122
|
-
<parameters>
|
123
|
-
<label>Book Hotel</label>
|
124
|
-
<method>:post</method>
|
125
|
-
<arguments>
|
126
|
-
<to>data.to</to>
|
127
|
-
</arguments>
|
128
|
-
</parameters>
|
129
|
-
<finalize output="result">data.hotels << result.value('id')
|
130
|
-
data.costs += result.value('costs').to_f</finalize>
|
131
|
-
</call>
|
132
|
-
</parallel_branch>
|
133
|
-
<manipulate id="a3">data.persons -= 1</manipulate>
|
134
|
-
</loop>
|
135
|
-
</parallel>
|
136
|
-
<choose mode="inclusive">
|
137
|
-
<alternative condition="data.costs > 700">
|
138
|
-
<call id="a4" endpoint="approve">
|
139
|
-
<parameters>
|
140
|
-
<label>Approve Hotel</label>
|
141
|
-
<method>:post</method>
|
142
|
-
<arguments>
|
143
|
-
<costs>data.costs</costs>
|
144
|
-
</arguments>
|
145
|
-
</parameters>
|
146
|
-
</call>
|
147
|
-
</alternative>
|
148
|
-
</choose>
|
149
|
-
</description>
|
150
|
-
</description>
|
151
|
-
<transformation>
|
152
|
-
<description type="copy"/>
|
153
|
-
<dataelements type="rest"/>
|
154
|
-
<endpoints type="rest"/>
|
155
|
-
</transformation>
|
156
|
-
</properties>
|