cpee 1.4.7 → 1.4.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. checksums.yaml +5 -5
  2. data/cpee.gemspec +1 -1
  3. data/lib/cpee/controller.rb +41 -7
  4. data/lib/cpee/handler_properties.rb +9 -9
  5. data/lib/cpee/instantiation.rb +12 -6
  6. data/lib/instantiation.xml +1 -0
  7. data/log/elasticsearch.rb +120 -0
  8. data/log/logs/1/test +1 -0
  9. data/log/xes_yaml.rb +3 -20
  10. data/server/handlerwrappers/default.rb +10 -10
  11. data/server/instances/1/properties.xml +34 -122
  12. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/consumer-secret +1 -0
  13. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/producer-secret +1 -0
  14. data/server/instances/{76/notifications/a59df784fab648f5327915fc6cf012ab → 10/notifications/182434032285ca1d06a8b6554b8889c8}/subscription.xml +6 -21
  15. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/consumer-secret +1 -0
  16. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/producer-secret +1 -0
  17. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/subscription.xml +6 -0
  18. data/server/instances/10/properties.xml +141 -127
  19. data/server/instances/11/properties.xml +162 -179
  20. data/server/instances/12/properties.xml +163 -87
  21. data/server/instances/13/properties.xml +131 -2002
  22. data/server/instances/14/properties.xml +9 -2044
  23. data/server/instances/15/properties.xml +8 -2039
  24. data/server/instances/16/properties.xml +8 -2069
  25. data/server/instances/17/properties.xml +11 -2065
  26. data/server/instances/18/properties.xml +10 -2109
  27. data/server/instances/19/properties.xml +5 -90
  28. data/server/instances/2/properties.xml +10 -135
  29. data/server/instances/20/properties.xml +169 -9
  30. data/server/instances/21/properties.xml +122 -82
  31. data/server/instances/22/properties.xml +53 -2042
  32. data/server/instances/23/properties.xml +75 -68
  33. data/server/instances/24/properties.xml +82 -2033
  34. data/server/instances/25/properties.xml +121 -37
  35. data/server/instances/26/properties.xml +9 -9
  36. data/server/instances/27/properties.xml +48 -2044
  37. data/server/instances/28/properties.xml +83 -2058
  38. data/server/instances/29/properties.xml +83 -2072
  39. data/server/instances/3/properties.xml +76 -211
  40. data/server/instances/30/properties.xml +293 -112
  41. data/server/instances/31/properties.xml +332 -9
  42. data/server/instances/313/notifications/crisp/consumer-secret +1 -0
  43. data/server/instances/313/notifications/crisp/producer-secret +1 -0
  44. data/server/instances/313/notifications/crisp/subscription.xml +7 -0
  45. data/server/instances/313/notifications/logging/consumer-secret +1 -0
  46. data/server/instances/313/notifications/logging/producer-secret +1 -0
  47. data/server/instances/313/notifications/logging/subscription.xml +7 -0
  48. data/server/instances/313/notifications/logging_yaml/consumer-secret +1 -0
  49. data/server/instances/313/notifications/logging_yaml/producer-secret +1 -0
  50. data/server/instances/313/notifications/logging_yaml/subscription.xml +7 -0
  51. data/server/instances/313/properties.xml +524 -0
  52. data/server/instances/32/properties.xml +582 -65
  53. data/server/instances/33/properties.xml +113 -99
  54. data/server/instances/4/properties.xml +92 -9
  55. data/server/instances/5/properties.xml +49 -1505
  56. data/server/instances/6/properties.xml +186 -11
  57. data/server/instances/662/notifications/crisp/consumer-secret +1 -0
  58. data/server/instances/662/notifications/crisp/producer-secret +1 -0
  59. data/server/instances/662/notifications/crisp/subscription.xml +7 -0
  60. data/server/instances/662/notifications/logging/consumer-secret +1 -0
  61. data/server/instances/662/notifications/logging/producer-secret +1 -0
  62. data/server/instances/662/notifications/logging/subscription.xml +7 -0
  63. data/server/instances/662/notifications/logging_yaml/consumer-secret +1 -0
  64. data/server/instances/662/notifications/logging_yaml/producer-secret +1 -0
  65. data/server/instances/662/notifications/logging_yaml/subscription.xml +7 -0
  66. data/server/instances/662/properties.xml +427 -0
  67. data/server/instances/{46 → 663}/properties.xml +1 -1
  68. data/server/instances/664/properties.xml +425 -0
  69. data/server/instances/665/properties.xml +425 -0
  70. data/server/instances/666/properties.xml +427 -0
  71. data/server/instances/667/properties.xml +427 -0
  72. data/server/instances/668/properties.xml +425 -0
  73. data/server/instances/669/properties.xml +425 -0
  74. data/server/instances/670/properties.xml +31 -0
  75. data/server/instances/{75 → 671}/properties.xml +12 -12
  76. data/server/instances/672/properties.xml +199 -0
  77. data/server/instances/673/properties.xml +52 -0
  78. data/server/instances/7/properties.xml +82 -1691
  79. data/server/instances/8/properties.xml +53 -1738
  80. data/server/instances/9/properties.xml +95 -680
  81. metadata +42 -52
  82. data/server/instances/34/properties.xml +0 -183
  83. data/server/instances/35/properties.xml +0 -183
  84. data/server/instances/36/properties.xml +0 -185
  85. data/server/instances/37/properties.xml +0 -183
  86. data/server/instances/38/properties.xml +0 -183
  87. data/server/instances/39/properties.xml +0 -183
  88. data/server/instances/40/properties.xml +0 -183
  89. data/server/instances/41/properties.xml +0 -183
  90. data/server/instances/42/properties.xml +0 -183
  91. data/server/instances/43/properties.xml +0 -183
  92. data/server/instances/44/properties.xml +0 -183
  93. data/server/instances/45/properties.xml +0 -185
  94. data/server/instances/47/properties.xml +0 -185
  95. data/server/instances/48/properties.xml +0 -185
  96. data/server/instances/49/properties.xml +0 -185
  97. data/server/instances/50/properties.xml +0 -183
  98. data/server/instances/51/properties.xml +0 -183
  99. data/server/instances/52/properties.xml +0 -2129
  100. data/server/instances/53/properties.xml +0 -2129
  101. data/server/instances/54/properties.xml +0 -319
  102. data/server/instances/55/properties.xml +0 -2114
  103. data/server/instances/56/properties.xml +0 -2114
  104. data/server/instances/57/properties.xml +0 -2119
  105. data/server/instances/58/properties.xml +0 -2119
  106. data/server/instances/59/properties.xml +0 -2119
  107. data/server/instances/60/properties.xml +0 -2119
  108. data/server/instances/61/properties.xml +0 -2114
  109. data/server/instances/62/properties.xml +0 -2116
  110. data/server/instances/63/properties.xml +0 -2116
  111. data/server/instances/64/properties.xml +0 -2116
  112. data/server/instances/65/properties.xml +0 -76
  113. data/server/instances/66/properties.xml +0 -97
  114. data/server/instances/67/properties.xml +0 -184
  115. data/server/instances/68/properties.xml +0 -158
  116. data/server/instances/69/properties.xml +0 -156
  117. data/server/instances/70/properties.xml +0 -156
  118. data/server/instances/71/properties.xml +0 -156
  119. data/server/instances/72/properties.xml +0 -156
  120. data/server/instances/73/properties.xml +0 -156
  121. data/server/instances/74/properties.xml +0 -156
  122. data/server/instances/76/notifications/a59df784fab648f5327915fc6cf012ab/consumer-secret +0 -1
  123. data/server/instances/76/notifications/a59df784fab648f5327915fc6cf012ab/producer-secret +0 -1
  124. data/server/instances/76/properties.xml +0 -156
  125. data/server/resources/base.xml +0 -78
  126. data/server/resources/test.rb +0 -19
  127. data/server/resources/test.xml +0 -33
@@ -1,156 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>0df4196c-1713-4259-b70e-45dd5bbe0f09</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>FlyNiki</airline>
15
- <hotels>["Rathaus","Mariott","Mariott"]</hotels>
16
- <from>Vienna</from>
17
- <to>Prague</to>
18
- <costs>871.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 =&gt; "Book Airline", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :from, :value =&gt; "data.from"), ⭐(:name =&gt; :to, :value =&gt; "data.to"), ⭐(:name =&gt; :persons, :value =&gt; "data.persons")] }, finalize: &lt;&lt;-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 &gt; 0} do
32
- parallel_branch data.persons do |p|
33
- call :a2, :bookHotel, parameters: { :label =&gt; "Book Hotel", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :to, :value =&gt; "data.to")] }, finalize: &lt;&lt;-END
34
- data.hotels &lt;&lt; result.value('id')
35
- data.costs += result.value('costs').to_f
36
- END
37
- end
38
- manipulate :a3, &lt;&lt;-END
39
- data.persons -= 1
40
- END
41
- end
42
- end
43
- choose :inclusive do
44
- alternative test{data.costs &gt; 700} do
45
- call :a4, :approve, parameters: { :label =&gt; "Approve Hotel", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :costs, :value =&gt; "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 &gt; 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 &lt;&lt; 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 &gt; 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 &gt; 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 &lt;&lt; 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 &gt; 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>b5469607-e27a-4abd-b760-837384c1f35d</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>["Rathaus","Ibis","Ibis"]</hotels>
16
- <from>Vienna</from>
17
- <to>Prague</to>
18
- <costs>765.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 =&gt; "Book Airline", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :from, :value =&gt; "data.from"), ⭐(:name =&gt; :to, :value =&gt; "data.to"), ⭐(:name =&gt; :persons, :value =&gt; "data.persons")] }, finalize: &lt;&lt;-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 &gt; 0} do
32
- parallel_branch data.persons do |p|
33
- call :a2, :bookHotel, parameters: { :label =&gt; "Book Hotel", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :to, :value =&gt; "data.to")] }, finalize: &lt;&lt;-END
34
- data.hotels &lt;&lt; result.value('id')
35
- data.costs += result.value('costs').to_f
36
- END
37
- end
38
- manipulate :a3, &lt;&lt;-END
39
- data.persons -= 1
40
- END
41
- end
42
- end
43
- choose :inclusive do
44
- alternative test{data.costs &gt; 700} do
45
- call :a4, :approve, parameters: { :label =&gt; "Approve Hotel", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :costs, :value =&gt; "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 &gt; 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 &lt;&lt; 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 &gt; 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 &gt; 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 &lt;&lt; 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 &gt; 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>af103b85-97cb-4aeb-b1ed-00da3b5958ab</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>["Mariott","Mariott","Ibis"]</hotels>
16
- <from>Vienna</from>
17
- <to>Prague</to>
18
- <costs>1021.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 =&gt; "Book Airline", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :from, :value =&gt; "data.from"), ⭐(:name =&gt; :to, :value =&gt; "data.to"), ⭐(:name =&gt; :persons, :value =&gt; "data.persons")] }, finalize: &lt;&lt;-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 &gt; 0} do
32
- parallel_branch data.persons do |p|
33
- call :a2, :bookHotel, parameters: { :label =&gt; "Book Hotel", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :to, :value =&gt; "data.to")] }, finalize: &lt;&lt;-END
34
- data.hotels &lt;&lt; result.value('id')
35
- data.costs += result.value('costs').to_f
36
- END
37
- end
38
- manipulate :a3, &lt;&lt;-END
39
- data.persons -= 1
40
- END
41
- end
42
- end
43
- choose :inclusive do
44
- alternative test{data.costs &gt; 700} do
45
- call :a4, :approve, parameters: { :label =&gt; "Approve Hotel", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :costs, :value =&gt; "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 &gt; 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 &lt;&lt; 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 &gt; 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 &gt; 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 &lt;&lt; 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 &gt; 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>