cpee 1.4.10 → 1.4.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/js/instance.js +21 -1
  3. data/cockpit/testsets/Async.xml +42 -0
  4. data/cockpit/testsets/testsets.xml +1 -0
  5. data/cockpit/themes/compact/theme.js +4 -0
  6. data/cockpit/themes/default/theme.js +4 -0
  7. data/cpee.gemspec +1 -1
  8. data/lib/cpee.xml +1 -1
  9. data/lib/cpee/implementation.rb +2 -0
  10. data/log/logs/1/test +1 -0
  11. data/server/instances/1/properties.xml +31 -158
  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/10/notifications/182434032285ca1d06a8b6554b8889c8/subscription.xml +23 -0
  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 +187 -0
  19. data/server/instances/11/properties.xml +191 -0
  20. data/server/instances/12/properties.xml +191 -0
  21. data/server/instances/13/properties.xml +204 -0
  22. data/server/instances/14/properties.xml +31 -0
  23. data/server/instances/15/properties.xml +30 -0
  24. data/server/instances/16/properties.xml +29 -0
  25. data/server/instances/17/properties.xml +29 -0
  26. data/server/instances/18/properties.xml +31 -0
  27. data/server/instances/19/properties.xml +31 -0
  28. data/server/instances/2/properties.xml +12 -137
  29. data/server/instances/20/properties.xml +191 -0
  30. data/server/instances/21/properties.xml +156 -0
  31. data/server/instances/22/properties.xml +118 -0
  32. data/server/instances/23/properties.xml +118 -0
  33. data/server/instances/24/properties.xml +156 -0
  34. data/server/instances/25/properties.xml +156 -0
  35. data/server/instances/26/properties.xml +156 -0
  36. data/server/instances/27/properties.xml +140 -0
  37. data/server/instances/28/properties.xml +156 -0
  38. data/server/instances/29/properties.xml +156 -0
  39. data/server/instances/3/properties.xml +80 -116
  40. data/server/instances/30/properties.xml +354 -0
  41. data/server/instances/31/properties.xml +354 -0
  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 +628 -0
  53. data/server/instances/33/properties.xml +156 -0
  54. data/server/instances/4/properties.xml +114 -0
  55. data/server/instances/5/properties.xml +114 -0
  56. data/server/instances/6/properties.xml +206 -0
  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/663/properties.xml +31 -0
  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/671/properties.xml +158 -0
  76. data/server/instances/672/properties.xml +199 -0
  77. data/server/instances/673/properties.xml +52 -0
  78. data/server/instances/674/properties.xml +75 -0
  79. data/server/instances/675/notifications/10fa09a02f1a981a931ebe75d8cabe48/consumer-secret +1 -0
  80. data/server/instances/675/notifications/10fa09a02f1a981a931ebe75d8cabe48/producer-secret +1 -0
  81. data/server/instances/675/notifications/10fa09a02f1a981a931ebe75d8cabe48/subscription.xml +6 -0
  82. data/server/instances/675/properties.xml +74 -0
  83. data/server/instances/676/properties.xml +76 -0
  84. data/server/instances/677/properties.xml +76 -0
  85. data/server/instances/678/properties.xml +74 -0
  86. data/server/instances/679/notifications/1b946ec6292b2dacfbad69f6f5e2b085/consumer-secret +1 -0
  87. data/server/instances/679/notifications/1b946ec6292b2dacfbad69f6f5e2b085/producer-secret +1 -0
  88. data/server/instances/679/notifications/1b946ec6292b2dacfbad69f6f5e2b085/subscription.xml +38 -0
  89. data/server/instances/679/properties.xml +76 -0
  90. data/server/instances/680/properties.xml +76 -0
  91. data/server/instances/7/properties.xml +156 -0
  92. data/server/instances/8/properties.xml +118 -0
  93. data/server/instances/9/properties.xml +120 -0
  94. data/server/server.pid +1 -1
  95. data/server/server.rb +0 -1
  96. metadata +84 -8
  97. data/cockpit/config.json +0 -6
  98. data/cockpit/testsets/CPEE.xml +0 -8
  99. data/cockpit/testsets/Signavio.xml +0 -8
  100. data/server/resources/base.xml +0 -78
  101. data/server/resources/test.rb +0 -19
  102. data/server/resources/test.xml +0 -33
@@ -0,0 +1,204 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <uuid>250c640a-95b4-47a6-84e3-9ba493c1cc7e</uuid>
4
+ <info>Enter info here</info>
5
+ <modeltype>CPEE</modeltype>
6
+ <theme>default</theme>
7
+ </attributes>
8
+ <state>ready</state>
9
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
+ <positions/>
11
+ <dataelements>
12
+ <feedback>true</feedback>
13
+ </dataelements>
14
+ <endpoints>
15
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
16
+ </endpoints>
17
+ <dsl>parallel do
18
+ parallel_branch do
19
+ loop pre_test{data.feedback} do
20
+ call :design, :timeout, parameters: { :label =&gt; "testerer", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }
21
+ call :validate, :timeout, parameters: { :label =&gt; "", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }
22
+ call :publish, :timeout, parameters: { :label =&gt; "", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 1)] }
23
+ end
24
+ end
25
+ parallel_branch do
26
+ loop pre_test{data.feedback} do
27
+ call :prepare, :timeout, parameters: { :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }
28
+ call :fab, :timeout, parameters: { :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }
29
+ call :evaluate, :timeout, parameters: { :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }
30
+ end
31
+ end
32
+ end
33
+ call :a1, nil, parameters: { :label =&gt; "", :method =&gt; :post, :arguments =&gt; nil }
34
+ </dsl>
35
+ <dslx>
36
+ <description xmlns="http://cpee.org/ns/description/1.0">
37
+ <parallel>
38
+ <parallel_branch>
39
+ <loop mode="pre_test" condition="data.feedback">
40
+ <call id="design" endpoint="timeout">
41
+ <parameters>
42
+ <label>testerer</label>
43
+ <method>:post</method>
44
+ <arguments>
45
+ <timeout>4</timeout>
46
+ </arguments>
47
+ </parameters>
48
+ </call>
49
+ <call id="validate" endpoint="timeout">
50
+ <parameters>
51
+ <label/>
52
+ <method>:post</method>
53
+ <arguments>
54
+ <timeout>2</timeout>
55
+ </arguments>
56
+ </parameters>
57
+ </call>
58
+ <call id="publish" endpoint="timeout">
59
+ <parameters>
60
+ <label/>
61
+ <method>:post</method>
62
+ <arguments>
63
+ <timeout>1</timeout>
64
+ </arguments>
65
+ </parameters>
66
+ </call>
67
+ </loop>
68
+ </parallel_branch>
69
+ <parallel_branch>
70
+ <loop mode="pre_test" condition="data.feedback">
71
+ <call id="prepare" endpoint="timeout">
72
+ <parameters>
73
+ <!--{{{-->
74
+ <method>:post</method>
75
+ <arguments>
76
+ <timeout>4</timeout>
77
+ </arguments>
78
+ </parameters>
79
+ <!--}}}-->
80
+ </call>
81
+ <call id="fab" endpoint="timeout">
82
+ <parameters>
83
+ <!--{{{-->
84
+ <method>:post</method>
85
+ <arguments>
86
+ <timeout>4</timeout>
87
+ </arguments>
88
+ </parameters>
89
+ <!--}}}-->
90
+ </call>
91
+ <call id="evaluate" endpoint="timeout">
92
+ <parameters>
93
+ <!--{{{-->
94
+ <method>:post</method>
95
+ <arguments>
96
+ <timeout>4</timeout>
97
+ </arguments>
98
+ </parameters>
99
+ <!--}}}-->
100
+ </call>
101
+ </loop>
102
+ </parallel_branch>
103
+ </parallel>
104
+ <call id="a1" endpoint="">
105
+ <parameters>
106
+ <label/>
107
+ <method>:post</method>
108
+ <arguments/>
109
+ </parameters>
110
+ <finalize output="result"/>
111
+ <update output="result"/>
112
+ </call>
113
+ </description>
114
+ </dslx>
115
+ <status>
116
+ <id>0</id>
117
+ <message>undefined</message>
118
+ </status>
119
+ <description>
120
+ <description xmlns="http://cpee.org/ns/description/1.0">
121
+ <parallel>
122
+ <parallel_branch>
123
+ <loop mode="pre_test" condition="data.feedback">
124
+ <call id="design" endpoint="timeout">
125
+ <parameters>
126
+ <label>testerer</label>
127
+ <method>:post</method>
128
+ <arguments>
129
+ <timeout>4</timeout>
130
+ </arguments>
131
+ </parameters>
132
+ </call>
133
+ <call id="validate" endpoint="timeout">
134
+ <parameters>
135
+ <label/>
136
+ <method>:post</method>
137
+ <arguments>
138
+ <timeout>2</timeout>
139
+ </arguments>
140
+ </parameters>
141
+ </call>
142
+ <call id="publish" endpoint="timeout">
143
+ <parameters>
144
+ <label/>
145
+ <method>:post</method>
146
+ <arguments>
147
+ <timeout>1</timeout>
148
+ </arguments>
149
+ </parameters>
150
+ </call>
151
+ </loop>
152
+ </parallel_branch>
153
+ <parallel_branch>
154
+ <loop mode="pre_test" condition="data.feedback">
155
+ <call id="prepare" endpoint="timeout">
156
+ <parameters>
157
+ <!--{{{-->
158
+ <method>:post</method>
159
+ <arguments>
160
+ <timeout>4</timeout>
161
+ </arguments>
162
+ </parameters>
163
+ <!--}}}-->
164
+ </call>
165
+ <call id="fab" endpoint="timeout">
166
+ <parameters>
167
+ <!--{{{-->
168
+ <method>:post</method>
169
+ <arguments>
170
+ <timeout>4</timeout>
171
+ </arguments>
172
+ </parameters>
173
+ <!--}}}-->
174
+ </call>
175
+ <call id="evaluate" endpoint="timeout">
176
+ <parameters>
177
+ <!--{{{-->
178
+ <method>:post</method>
179
+ <arguments>
180
+ <timeout>4</timeout>
181
+ </arguments>
182
+ </parameters>
183
+ <!--}}}-->
184
+ </call>
185
+ </loop>
186
+ </parallel_branch>
187
+ </parallel>
188
+ <call id="a1" endpoint="">
189
+ <parameters>
190
+ <label/>
191
+ <method>:post</method>
192
+ <arguments/>
193
+ </parameters>
194
+ <finalize output="result"/>
195
+ <update output="result"/>
196
+ </call>
197
+ </description>
198
+ </description>
199
+ <transformation>
200
+ <description type="copy"/>
201
+ <dataelements type="rest"/>
202
+ <endpoints type="rest"/>
203
+ </transformation>
204
+ </properties>
@@ -0,0 +1,31 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <uuid>5f4a8545-5b26-4eb5-9b81-1378f835ffef</uuid>
4
+ <info/>
5
+ <modeltype>CPEE</modeltype>
6
+ <theme>default</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/>
16
+ <dslx>
17
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
18
+ </dslx>
19
+ <status>
20
+ <id>0</id>
21
+ <message>undefined</message>
22
+ </status>
23
+ <description>
24
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
25
+ </description>
26
+ <transformation>
27
+ <description type="copy"/>
28
+ <dataelements type="none"/>
29
+ <endpoints type="none"/>
30
+ </transformation>
31
+ </properties>
@@ -0,0 +1,30 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <uuid>bd252a11-194b-4600-ab74-3cda8e8395d9</uuid>
4
+ <modeltype>CPEE</modeltype>
5
+ <theme>default</theme>
6
+ </attributes>
7
+ <state>ready</state>
8
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
9
+ <positions/>
10
+ <dataelements/>
11
+ <endpoints>
12
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
13
+ </endpoints>
14
+ <dsl/>
15
+ <dslx>
16
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
17
+ </dslx>
18
+ <status>
19
+ <id>0</id>
20
+ <message>undefined</message>
21
+ </status>
22
+ <description>
23
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
24
+ </description>
25
+ <transformation>
26
+ <description type="copy"/>
27
+ <dataelements type="none"/>
28
+ <endpoints type="none"/>
29
+ </transformation>
30
+ </properties>
@@ -0,0 +1,29 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <uuid>f9ff0bfc-7ae9-4947-80a6-e04ce54a7254</uuid>
4
+ <theme>default</theme>
5
+ </attributes>
6
+ <state>ready</state>
7
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
8
+ <positions/>
9
+ <dataelements/>
10
+ <endpoints>
11
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
12
+ </endpoints>
13
+ <dsl/>
14
+ <dslx>
15
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
16
+ </dslx>
17
+ <status>
18
+ <id>0</id>
19
+ <message>undefined</message>
20
+ </status>
21
+ <description>
22
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
23
+ </description>
24
+ <transformation>
25
+ <description type="copy"/>
26
+ <dataelements type="none"/>
27
+ <endpoints type="none"/>
28
+ </transformation>
29
+ </properties>
@@ -0,0 +1,29 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <uuid>548a4c91-42dd-4383-a1ed-be56213c4ac3</uuid>
4
+ <theme>default</theme>
5
+ </attributes>
6
+ <state>ready</state>
7
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
8
+ <positions/>
9
+ <dataelements/>
10
+ <endpoints>
11
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
12
+ </endpoints>
13
+ <dsl/>
14
+ <dslx>
15
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
16
+ </dslx>
17
+ <status>
18
+ <id>0</id>
19
+ <message>undefined</message>
20
+ </status>
21
+ <description>
22
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
23
+ </description>
24
+ <transformation>
25
+ <description type="copy"/>
26
+ <dataelements type="none"/>
27
+ <endpoints type="none"/>
28
+ </transformation>
29
+ </properties>
@@ -0,0 +1,31 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <uuid>8b7b7aca-82bd-4ea0-9247-79c93bdc8afc</uuid>
4
+ <info>Enter info here</info>
5
+ <modeltype>CPEE</modeltype>
6
+ <theme>default</theme>
7
+ </attributes>
8
+ <state>ready</state>
9
+ <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
+ <positions/>
11
+ <dataelements/>
12
+ <endpoints>
13
+ <aaa/>
14
+ </endpoints>
15
+ <dsl/>
16
+ <dslx>
17
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
18
+ </dslx>
19
+ <status>
20
+ <id>0</id>
21
+ <message>undefined</message>
22
+ </status>
23
+ <description>
24
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
25
+ </description>
26
+ <transformation>
27
+ <description type="copy"/>
28
+ <dataelements type="none"/>
29
+ <endpoints type="none"/>
30
+ </transformation>
31
+ </properties>
@@ -0,0 +1,31 @@
1
+ <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
+ <attributes>
3
+ <uuid>9f7215bc-9c27-4558-b29b-33cc0aabaff6</uuid>
4
+ <info/>
5
+ <modeltype>CPEE</modeltype>
6
+ <theme>default</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/>
16
+ <dslx>
17
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
18
+ </dslx>
19
+ <status>
20
+ <id>0</id>
21
+ <message>undefined</message>
22
+ </status>
23
+ <description>
24
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
25
+ </description>
26
+ <transformation>
27
+ <description type="copy"/>
28
+ <dataelements type="none"/>
29
+ <endpoints type="none"/>
30
+ </transformation>
31
+ </properties>
@@ -1,156 +1,31 @@
1
1
  <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
2
  <attributes>
3
- <uuid>ead087ef-ee6d-4ae3-b8b6-189ace13b39c</uuid>
4
- <info>Enter info here</info>
3
+ <info/>
5
4
  <modeltype>CPEE</modeltype>
6
5
  <theme>default</theme>
6
+ <uuid/>
7
7
  </attributes>
8
- <state>finished</state>
8
+ <state>ready</state>
9
9
  <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
10
  <positions/>
11
- <dataelements>
12
- <persons>0</persons>
13
- <card>Visa_12345</card>
14
- <airline>AUA</airline>
15
- <hotels>["Ibis","Ibis","Ibis"]</hotels>
16
- <from>Vienna</from>
17
- <to>Prague</to>
18
- <costs>1145.0</costs>
19
- </dataelements>
11
+ <dataelements/>
20
12
  <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>
13
+ <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
24
14
  </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>
15
+ <dsl/>
49
16
  <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>
17
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
97
18
  </dslx>
98
19
  <status>
99
- <id>1</id>
100
- <message>Hotel</message>
20
+ <id>0</id>
21
+ <message>undefined</message>
101
22
  </status>
102
23
  <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>
24
+ <description xmlns="http://cpee.org/ns/description/1.0"/>
150
25
  </description>
151
26
  <transformation>
152
27
  <description type="copy"/>
153
- <dataelements type="rest"/>
154
- <endpoints type="rest"/>
28
+ <dataelements type="none"/>
29
+ <endpoints type="none"/>
155
30
  </transformation>
156
31
  </properties>