cpee 1.3.214 → 1.3.215
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cockpit/css/wfadaptor.css +73 -5
- data/cockpit/js/instance.js +43 -24
- data/cockpit/js/wfadaptor.js +56 -26
- data/cockpit/testsets/Coopis Testset.xml +4 -1
- data/cockpit/testsets/ICSOC Testset.xml +6 -0
- data/cockpit/themes/adventure/theme.js +1 -0
- data/cockpit/themes/default/symbols/alternative.svg +1 -1
- data/cockpit/themes/default/symbols/call.svg +1 -1
- data/cockpit/themes/default/symbols/callcorrelationreceive.svg +2 -2
- data/cockpit/themes/default/symbols/callcorrelationsend.svg +2 -2
- data/cockpit/themes/default/symbols/callinstantiation.svg +1 -1
- data/cockpit/themes/default/symbols/callmanipulate.svg +2 -2
- data/cockpit/themes/default/symbols/callmanipulateworklist.svg +2 -2
- data/cockpit/themes/default/symbols/callworklist.svg +1 -1
- data/cockpit/themes/default/symbols/choose.svg +1 -1
- data/cockpit/themes/default/symbols/choose_exclusive.svg +1 -1
- data/cockpit/themes/default/symbols/choose_inclusive.svg +1 -1
- data/cockpit/themes/default/symbols/critical.svg +1 -1
- data/cockpit/themes/default/symbols/escape.svg +2 -2
- data/cockpit/themes/default/symbols/loop.svg +1 -1
- data/cockpit/themes/default/symbols/manipulate.svg +1 -1
- data/cockpit/themes/default/symbols/otherwise.svg +1 -1
- data/cockpit/themes/default/symbols/parallel.svg +1 -1
- data/cockpit/themes/default/symbols/parallel_branch.svg +1 -1
- data/cockpit/themes/default/symbols/scripts.svg +1 -1
- data/cockpit/themes/default/theme.js +66 -52
- data/cockpit/themes/labels/symbols/alternative.svg +1 -1
- data/cockpit/themes/labels/symbols/call.svg +1 -1
- data/cockpit/themes/labels/symbols/callcorrelationreceive.svg +2 -2
- data/cockpit/themes/labels/symbols/callcorrelationsend.svg +3 -3
- data/cockpit/themes/labels/symbols/callinstantiation.svg +1 -1
- data/cockpit/themes/labels/symbols/callmanipulate.svg +2 -2
- data/cockpit/themes/labels/symbols/callmanipulateworklist.svg +2 -2
- data/cockpit/themes/labels/symbols/callworklist.svg +1 -1
- data/cockpit/themes/labels/symbols/choose.svg +1 -1
- data/cockpit/themes/labels/symbols/choose_exclusive.svg +1 -1
- data/cockpit/themes/labels/symbols/choose_inclusive.svg +1 -1
- data/cockpit/themes/labels/symbols/critical.svg +1 -1
- data/cockpit/themes/labels/symbols/escape.svg +2 -2
- data/cockpit/themes/labels/symbols/loop.svg +1 -1
- data/cockpit/themes/labels/symbols/manipulate.svg +1 -1
- data/cockpit/themes/labels/symbols/otherwise.svg +1 -1
- data/cockpit/themes/labels/symbols/parallel.svg +1 -1
- data/cockpit/themes/labels/symbols/parallel_branch.svg +1 -1
- data/cockpit/themes/labels/symbols/scripts.svg +1 -1
- data/cockpit/themes/labels/theme.js +66 -52
- data/cpee.gemspec +1 -1
- data/log/logoverlay.xml +1 -1
- data/log/server.rb +21 -8
- data/log/yaml/server.rb +6 -0
- data/log/yaml/yaml.rb +5 -5
- data/server/instances/21/properties.xml +156 -0
- data/server/instances/22/properties.xml +118 -0
- data/server/instances/23/properties.xml +118 -0
- data/server/instances/24/properties.xml +156 -0
- data/server/instances/25/properties.xml +156 -0
- data/server/instances/26/properties.xml +156 -0
- data/server/instances/27/notifications/f43a34bc3d85f852bece416443f1a528/consumer-secret +1 -0
- data/server/instances/27/notifications/f43a34bc3d85f852bece416443f1a528/producer-secret +1 -0
- data/server/instances/27/notifications/f43a34bc3d85f852bece416443f1a528/subscription.xml +38 -0
- data/server/instances/27/properties.xml +140 -0
- data/server/instances/6/properties.xml +11 -11
- data/server/instances/7/properties.xml +111 -75
- data/server/server.pid +1 -0
- metadata +13 -2
@@ -0,0 +1 @@
|
|
1
|
+
be35142ce0edbd0bc806e92c8aa1ce08
|
@@ -0,0 +1 @@
|
|
1
|
+
5f1deda01e42d5fc9daf9045fefee4fe
|
@@ -0,0 +1,38 @@
|
|
1
|
+
<subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
|
2
|
+
<topic id="activity">
|
3
|
+
<event>calling</event>
|
4
|
+
<event>status</event>
|
5
|
+
<event>manipulating</event>
|
6
|
+
<event>failed</event>
|
7
|
+
<event>done</event>
|
8
|
+
</topic>
|
9
|
+
<topic id="position">
|
10
|
+
<event>change</event>
|
11
|
+
</topic>
|
12
|
+
<topic id="description">
|
13
|
+
<event>change</event>
|
14
|
+
<event>error</event>
|
15
|
+
</topic>
|
16
|
+
<topic id="state">
|
17
|
+
<event>change</event>
|
18
|
+
</topic>
|
19
|
+
<topic id="dataelements">
|
20
|
+
<event>change</event>
|
21
|
+
</topic>
|
22
|
+
<topic id="endpoints">
|
23
|
+
<event>change</event>
|
24
|
+
</topic>
|
25
|
+
<topic id="attributes">
|
26
|
+
<event>change</event>
|
27
|
+
</topic>
|
28
|
+
<topic id="transformation">
|
29
|
+
<event>change</event>
|
30
|
+
</topic>
|
31
|
+
<topic id="handlerwrapper">
|
32
|
+
<event>error</event>
|
33
|
+
<event>change</event>
|
34
|
+
</topic>
|
35
|
+
<topic id="handlers">
|
36
|
+
<event>change</event>
|
37
|
+
</topic>
|
38
|
+
</subscription>
|
@@ -0,0 +1,140 @@
|
|
1
|
+
<properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
|
2
|
+
<attributes>
|
3
|
+
<uuid>a7592c1a-91e5-400a-9797-334ecd7afdf6</uuid>
|
4
|
+
<info>Enter info here</info>
|
5
|
+
<modeltype>CPEE</modeltype>
|
6
|
+
<theme>labels</theme>
|
7
|
+
</attributes>
|
8
|
+
<state>ready</state>
|
9
|
+
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
|
+
<positions/>
|
11
|
+
<dataelements/>
|
12
|
+
<endpoints>
|
13
|
+
<timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
|
14
|
+
</endpoints>
|
15
|
+
<dsl>call :a1, nil, parameters: { :label => "Mangler", :method => :post, :arguments => nil }
|
16
|
+
call :a2, :Mangler, parameters: { :label => "testa", :method => :post, :arguments => nil }
|
17
|
+
call :a3, nil, parameters: { :label => "", :method => :post, :arguments => nil }
|
18
|
+
call :a4, nil, parameters: { :label => "", :method => :post, :arguments => nil }
|
19
|
+
call :a5, nil, parameters: { :label => "", :method => :post, :arguments => nil }
|
20
|
+
parallel :wait => -1 do
|
21
|
+
end
|
22
|
+
choose :inclusive do
|
23
|
+
alternative "" do
|
24
|
+
end
|
25
|
+
end
|
26
|
+
</dsl>
|
27
|
+
<dslx>
|
28
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
29
|
+
<call id="a1" endpoint="">
|
30
|
+
<parameters>
|
31
|
+
<label>Mangler</label>
|
32
|
+
<method>:post</method>
|
33
|
+
<arguments/>
|
34
|
+
</parameters>
|
35
|
+
<finalize output="result"/>
|
36
|
+
<update output="result"/>
|
37
|
+
</call>
|
38
|
+
<call id="a2" endpoint="Mangler">
|
39
|
+
<parameters>
|
40
|
+
<label>testa</label>
|
41
|
+
<method>:post</method>
|
42
|
+
<arguments/>
|
43
|
+
</parameters>
|
44
|
+
<finalize output="result"/>
|
45
|
+
<update output="result"/>
|
46
|
+
</call>
|
47
|
+
<call id="a3" endpoint="">
|
48
|
+
<parameters>
|
49
|
+
<label/>
|
50
|
+
<method>:post</method>
|
51
|
+
<arguments/>
|
52
|
+
</parameters>
|
53
|
+
</call>
|
54
|
+
<call id="a4" endpoint="">
|
55
|
+
<parameters>
|
56
|
+
<label/>
|
57
|
+
<method>:post</method>
|
58
|
+
<arguments/>
|
59
|
+
</parameters>
|
60
|
+
<finalize output="result"/>
|
61
|
+
<update output="result"/>
|
62
|
+
</call>
|
63
|
+
<call id="a5" endpoint="">
|
64
|
+
<parameters>
|
65
|
+
<label/>
|
66
|
+
<method>:post</method>
|
67
|
+
<arguments/>
|
68
|
+
</parameters>
|
69
|
+
<finalize output="result"/>
|
70
|
+
<update output="result"/>
|
71
|
+
</call>
|
72
|
+
<parallel wait="-1"/>
|
73
|
+
<choose mode="inclusive">
|
74
|
+
<alternative condition=""/>
|
75
|
+
<otherwise/>
|
76
|
+
</choose>
|
77
|
+
</description>
|
78
|
+
</dslx>
|
79
|
+
<status>
|
80
|
+
<id>0</id>
|
81
|
+
<message>undefined</message>
|
82
|
+
</status>
|
83
|
+
<description>
|
84
|
+
<description xmlns="http://cpee.org/ns/description/1.0">
|
85
|
+
<call id="a1" endpoint="">
|
86
|
+
<parameters>
|
87
|
+
<label>Mangler</label>
|
88
|
+
<method>:post</method>
|
89
|
+
<arguments/>
|
90
|
+
</parameters>
|
91
|
+
<finalize output="result"/>
|
92
|
+
<update output="result"/>
|
93
|
+
</call>
|
94
|
+
<call id="a2" endpoint="Mangler">
|
95
|
+
<parameters>
|
96
|
+
<label>testa</label>
|
97
|
+
<method>:post</method>
|
98
|
+
<arguments/>
|
99
|
+
</parameters>
|
100
|
+
<finalize output="result"/>
|
101
|
+
<update output="result"/>
|
102
|
+
</call>
|
103
|
+
<call id="a3" endpoint="">
|
104
|
+
<parameters>
|
105
|
+
<label/>
|
106
|
+
<method>:post</method>
|
107
|
+
<arguments/>
|
108
|
+
</parameters>
|
109
|
+
</call>
|
110
|
+
<call id="a4" endpoint="">
|
111
|
+
<parameters>
|
112
|
+
<label/>
|
113
|
+
<method>:post</method>
|
114
|
+
<arguments/>
|
115
|
+
</parameters>
|
116
|
+
<finalize output="result"/>
|
117
|
+
<update output="result"/>
|
118
|
+
</call>
|
119
|
+
<call id="a5" endpoint="">
|
120
|
+
<parameters>
|
121
|
+
<label/>
|
122
|
+
<method>:post</method>
|
123
|
+
<arguments/>
|
124
|
+
</parameters>
|
125
|
+
<finalize output="result"/>
|
126
|
+
<update output="result"/>
|
127
|
+
</call>
|
128
|
+
<parallel wait="-1"/>
|
129
|
+
<choose mode="inclusive">
|
130
|
+
<alternative condition=""/>
|
131
|
+
<otherwise/>
|
132
|
+
</choose>
|
133
|
+
</description>
|
134
|
+
</description>
|
135
|
+
<transformation>
|
136
|
+
<description type="copy"/>
|
137
|
+
<dataelements type="none"/>
|
138
|
+
<endpoints type="none"/>
|
139
|
+
</transformation>
|
140
|
+
</properties>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<uuid>a5e56666-9168-4d33-b63e-81c9039c6700</uuid>
|
4
4
|
<info>Linear</info>
|
5
5
|
<modeltype>CPEE</modeltype>
|
6
|
-
<theme>
|
6
|
+
<theme>labels</theme>
|
7
7
|
</attributes>
|
8
8
|
<state>ready</state>
|
9
9
|
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
@@ -19,10 +19,10 @@
|
|
19
19
|
<dsl>call :a1, :timeout, parameters: { :method => :post, :arguments => [⭐(:name => :timeout, :value => 2)] }, finalize: <<-END
|
20
20
|
data.x += "a1,"
|
21
21
|
END
|
22
|
-
call :a2, :timeout, parameters: { :method => :post, :arguments => [⭐(:name => :timeout, :value => 4)] }, finalize: <<-END
|
22
|
+
call :a2, :timeout, parameters: { :label => "test", :method => :post, :arguments => [⭐(:name => :timeout, :value => 4)] }, finalize: <<-END
|
23
23
|
data.x += "a2,"
|
24
24
|
END
|
25
|
-
call :a3, :timeout, parameters: { :method => :post, :arguments => [⭐(:name => :timeout, :value => 4)] }, finalize: <<-END
|
25
|
+
call :a3, :timeout, parameters: { :label => "test", :method => :post, :arguments => [⭐(:name => :timeout, :value => 4)] }, finalize: <<-END
|
26
26
|
data.x += "a3,"
|
27
27
|
END
|
28
28
|
</dsl>
|
@@ -42,25 +42,25 @@ END
|
|
42
42
|
</call>
|
43
43
|
<call id="a2" endpoint="timeout">
|
44
44
|
<parameters>
|
45
|
-
|
45
|
+
<label>test</label>
|
46
46
|
<method>:post</method>
|
47
47
|
<arguments>
|
48
48
|
<timeout>4</timeout>
|
49
49
|
</arguments>
|
50
50
|
</parameters>
|
51
|
-
<!--}}}-->
|
52
51
|
<finalize output="result">data.x += "a2,"</finalize>
|
52
|
+
<update output="result"/>
|
53
53
|
</call>
|
54
54
|
<call id="a3" endpoint="timeout">
|
55
55
|
<parameters>
|
56
|
-
|
56
|
+
<label>test</label>
|
57
57
|
<method>:post</method>
|
58
58
|
<arguments>
|
59
59
|
<timeout>4</timeout>
|
60
60
|
</arguments>
|
61
61
|
</parameters>
|
62
|
-
<!--}}}-->
|
63
62
|
<finalize output="result">data.x += "a3,"</finalize>
|
63
|
+
<update output="result"/>
|
64
64
|
</call>
|
65
65
|
</description>
|
66
66
|
</dslx>
|
@@ -84,25 +84,25 @@ END
|
|
84
84
|
</call>
|
85
85
|
<call id="a2" endpoint="timeout">
|
86
86
|
<parameters>
|
87
|
-
|
87
|
+
<label>test</label>
|
88
88
|
<method>:post</method>
|
89
89
|
<arguments>
|
90
90
|
<timeout>4</timeout>
|
91
91
|
</arguments>
|
92
92
|
</parameters>
|
93
|
-
<!--}}}-->
|
94
93
|
<finalize output="result">data.x += "a2,"</finalize>
|
94
|
+
<update output="result"/>
|
95
95
|
</call>
|
96
96
|
<call id="a3" endpoint="timeout">
|
97
97
|
<parameters>
|
98
|
-
|
98
|
+
<label>test</label>
|
99
99
|
<method>:post</method>
|
100
100
|
<arguments>
|
101
101
|
<timeout>4</timeout>
|
102
102
|
</arguments>
|
103
103
|
</parameters>
|
104
|
-
<!--}}}-->
|
105
104
|
<finalize output="result">data.x += "a3,"</finalize>
|
105
|
+
<update output="result"/>
|
106
106
|
</call>
|
107
107
|
</description>
|
108
108
|
</description>
|
@@ -7,64 +7,92 @@
|
|
7
7
|
</attributes>
|
8
8
|
<state>stopped</state>
|
9
9
|
<handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
|
10
|
-
<positions
|
11
|
-
<a1>after</a1>
|
12
|
-
</positions>
|
10
|
+
<positions/>
|
13
11
|
<dataelements>
|
14
|
-
<
|
12
|
+
<persons>3</persons>
|
13
|
+
<card>Visa_12345</card>
|
14
|
+
<airline>null</airline>
|
15
|
+
<hotels>[]</hotels>
|
16
|
+
<from>Vienna</from>
|
17
|
+
<to>Prague</to>
|
18
|
+
<costs>0</costs>
|
15
19
|
</dataelements>
|
16
20
|
<endpoints>
|
17
|
-
<
|
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>
|
18
24
|
</endpoints>
|
19
|
-
<dsl>call :a1, :
|
20
|
-
data.
|
21
|
-
|
22
|
-
|
23
|
-
data.x += "a2,"
|
24
|
-
END
|
25
|
-
call :a3, :timeout, parameters: { :label => "Step 3", :method => :post, :arguments => [⭐(:name => :timeout, :value => 4)] }, finalize: <<-END
|
26
|
-
data.x += "a3,"
|
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'
|
27
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 "data.costs > 700" do
|
45
|
+
call :a4, :approve, parameters: { :label => "Approve Hotel":method => :post, :arguments => [⭐(:name => :costs, :value => data.costs)] }
|
46
|
+
end
|
47
|
+
end
|
28
48
|
</dsl>
|
29
49
|
<dslx>
|
30
50
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
31
|
-
|
32
|
-
<call id="a1" endpoint="timeout">
|
33
|
-
<parameters>
|
34
|
-
<!--{{{-->
|
35
|
-
<label>Step 1</label>
|
36
|
-
<method>:post</method>
|
37
|
-
<arguments>
|
38
|
-
<timeout>2</timeout>
|
39
|
-
</arguments>
|
40
|
-
</parameters>
|
41
|
-
<!--}}}-->
|
42
|
-
<finalize output="result">data.x += "a1,"</finalize>
|
43
|
-
</call>
|
44
|
-
<call id="a2" endpoint="timeout">
|
45
|
-
<parameters>
|
46
|
-
<!--{{{-->
|
47
|
-
<label>Step 2</label>
|
48
|
-
<method>:post</method>
|
49
|
-
<arguments>
|
50
|
-
<timeout>4</timeout>
|
51
|
-
</arguments>
|
52
|
-
</parameters>
|
53
|
-
<!--}}}-->
|
54
|
-
<finalize output="result">data.x += "a2,"</finalize>
|
55
|
-
</call>
|
56
|
-
<call id="a3" endpoint="timeout">
|
51
|
+
<call id="a1" endpoint="bookAir">
|
57
52
|
<parameters>
|
58
|
-
<!--{{{-->
|
59
|
-
<label>Step 3</label>
|
60
53
|
<method>:post</method>
|
54
|
+
<label>Book Airline</label>
|
61
55
|
<arguments>
|
62
|
-
<
|
56
|
+
<from>data.from</from>
|
57
|
+
<to>data.to</to>
|
58
|
+
<persons>data.persons</persons>
|
63
59
|
</arguments>
|
64
60
|
</parameters>
|
65
|
-
|
66
|
-
|
61
|
+
<finalize output="result">data.airline = result.value('id')
|
62
|
+
data.costs += result.value('costs').to_f
|
63
|
+
status.update 1, 'Hotel'</finalize>
|
67
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
|
+
<method>:post</method>
|
71
|
+
<label>Book Hotel</label>
|
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
|
+
<method>:post</method>
|
88
|
+
<label>Approve Hotel</label>
|
89
|
+
<arguments>
|
90
|
+
<costs>data.costs</costs>
|
91
|
+
</arguments>
|
92
|
+
</parameters>
|
93
|
+
</call>
|
94
|
+
</alternative>
|
95
|
+
</choose>
|
68
96
|
</description>
|
69
97
|
</dslx>
|
70
98
|
<status>
|
@@ -73,43 +101,51 @@ END
|
|
73
101
|
</status>
|
74
102
|
<description>
|
75
103
|
<description xmlns="http://cpee.org/ns/description/1.0">
|
76
|
-
|
77
|
-
<call id="a1" endpoint="timeout">
|
78
|
-
<parameters>
|
79
|
-
<!--{{{-->
|
80
|
-
<label>Step 1</label>
|
81
|
-
<method>:post</method>
|
82
|
-
<arguments>
|
83
|
-
<timeout>2</timeout>
|
84
|
-
</arguments>
|
85
|
-
</parameters>
|
86
|
-
<!--}}}-->
|
87
|
-
<finalize output="result">data.x += "a1,"</finalize>
|
88
|
-
</call>
|
89
|
-
<call id="a2" endpoint="timeout">
|
90
|
-
<parameters>
|
91
|
-
<!--{{{-->
|
92
|
-
<label>Step 2</label>
|
93
|
-
<method>:post</method>
|
94
|
-
<arguments>
|
95
|
-
<timeout>4</timeout>
|
96
|
-
</arguments>
|
97
|
-
</parameters>
|
98
|
-
<!--}}}-->
|
99
|
-
<finalize output="result">data.x += "a2,"</finalize>
|
100
|
-
</call>
|
101
|
-
<call id="a3" endpoint="timeout">
|
104
|
+
<call id="a1" endpoint="bookAir">
|
102
105
|
<parameters>
|
103
|
-
<!--{{{-->
|
104
|
-
<label>Step 3</label>
|
105
106
|
<method>:post</method>
|
107
|
+
<label>Book Airline</label>
|
106
108
|
<arguments>
|
107
|
-
<
|
109
|
+
<from>data.from</from>
|
110
|
+
<to>data.to</to>
|
111
|
+
<persons>data.persons</persons>
|
108
112
|
</arguments>
|
109
113
|
</parameters>
|
110
|
-
|
111
|
-
|
114
|
+
<finalize output="result">data.airline = result.value('id')
|
115
|
+
data.costs += result.value('costs').to_f
|
116
|
+
status.update 1, 'Hotel'</finalize>
|
112
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
|
+
<method>:post</method>
|
124
|
+
<label>Book Hotel</label>
|
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
|
+
<method>:post</method>
|
141
|
+
<label>Approve Hotel</label>
|
142
|
+
<arguments>
|
143
|
+
<costs>data.costs</costs>
|
144
|
+
</arguments>
|
145
|
+
</parameters>
|
146
|
+
</call>
|
147
|
+
</alternative>
|
148
|
+
</choose>
|
113
149
|
</description>
|
114
150
|
</description>
|
115
151
|
<transformation>
|