cpee 1.3.177 → 1.3.178

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/css/ui.css +20 -3
  3. data/cockpit/{lib → css}/wfadaptor.css +0 -0
  4. data/cockpit/index.html +47 -22
  5. data/cockpit/js/details.js +18 -18
  6. data/cockpit/js/instance.js +50 -9
  7. data/cockpit/js/parameters.js +16 -15
  8. data/cockpit/js/ui.js +1 -4
  9. data/cockpit/js/wfadaptor.cpee.js +3 -20
  10. data/cockpit/{lib → js}/wfadaptor.js +39 -15
  11. data/cockpit/rngtest.html +14 -35
  12. data/cockpit/rngtest.rng +17 -39
  13. data/cockpit/rngtest.xml +7 -6
  14. data/cockpit/test.html +46 -0
  15. data/cockpit/testsets/Infinity.xml +28 -0
  16. data/cockpit/testsets/testsets.xml +1 -0
  17. data/cpee.gemspec +1 -1
  18. data/lib/cpee/controller.rb +8 -8
  19. data/lib/cpee/handler_properties.rb +1 -0
  20. data/lib/cpee/implementation.rb +9 -0
  21. data/lib/engine.xml +3 -3
  22. data/server/resources/topics.xml +3 -0
  23. data/test/{cb.rb → callback.rb} +0 -0
  24. metadata +8 -103
  25. data/cockpit/lib/custommenu.css +0 -84
  26. data/cockpit/lib/custommenu.js +0 -101
  27. data/cockpit/lib/jquery.browser.js +0 -40
  28. data/cockpit/lib/jquery.caret.min.js +0 -10
  29. data/cockpit/lib/jquery.cookie.js +0 -117
  30. data/cockpit/lib/jquery.min.js +0 -4
  31. data/cockpit/lib/jquery.svg.min.js +0 -6
  32. data/cockpit/lib/jquery.svgdom.min.js +0 -6
  33. data/cockpit/lib/parsequery.js +0 -19
  34. data/cockpit/lib/printf.js +0 -368
  35. data/cockpit/lib/relaxngui.js +0 -4
  36. data/cockpit/lib/strftime.min.js +0 -1
  37. data/cockpit/lib/ui.css +0 -261
  38. data/cockpit/lib/ui.js +0 -114
  39. data/cockpit/lib/underscore.min.js +0 -27
  40. data/cockpit/lib/util.js +0 -58
  41. data/cockpit/lib/wfadaptor-doc/demo1.html +0 -517
  42. data/cockpit/lib/wfadaptor-doc/demo2.html +0 -84
  43. data/cockpit/lib/wfadaptor-doc/index.html +0 -54
  44. data/server/instances/1/properties.xml +0 -113
  45. data/server/instances/10/properties.xml +0 -145
  46. data/server/instances/11/properties.xml +0 -169
  47. data/server/instances/12/properties.xml +0 -44
  48. data/server/instances/13/properties.xml +0 -146
  49. data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/consumer-secret +0 -1
  50. data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/producer-secret +0 -1
  51. data/server/instances/14/notifications/5bcce90b170116a77fb25aea4e133acc/subscription.xml +0 -23
  52. data/server/instances/14/properties.xml +0 -332
  53. data/server/instances/15/properties.xml +0 -44
  54. data/server/instances/16/properties.xml +0 -44
  55. data/server/instances/17/properties.xml +0 -44
  56. data/server/instances/18/properties.xml +0 -45
  57. data/server/instances/19/properties.xml +0 -45
  58. data/server/instances/2/properties.xml +0 -230
  59. data/server/instances/20/properties.xml +0 -46
  60. data/server/instances/21/properties.xml +0 -46
  61. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/consumer-secret +0 -1
  62. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/producer-secret +0 -1
  63. data/server/instances/22/notifications/f9c504b8c715ec94a99fc3c6a660c53a/subscription.xml +0 -23
  64. data/server/instances/22/properties.xml +0 -112
  65. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/consumer-secret +0 -1
  66. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/producer-secret +0 -1
  67. data/server/instances/23/notifications/0a5a059f4ae897aee1446d560210dec0/subscription.xml +0 -23
  68. data/server/instances/23/properties.xml +0 -148
  69. data/server/instances/24/properties.xml +0 -66
  70. data/server/instances/25/properties.xml +0 -46
  71. data/server/instances/26/properties.xml +0 -112
  72. data/server/instances/27/properties.xml +0 -212
  73. data/server/instances/28/properties.xml +0 -363
  74. data/server/instances/29/properties.xml +0 -148
  75. data/server/instances/3/properties.xml +0 -109
  76. data/server/instances/30/properties.xml +0 -150
  77. data/server/instances/31/properties.xml +0 -52
  78. data/server/instances/32/properties.xml +0 -52
  79. data/server/instances/33/properties.xml +0 -60
  80. data/server/instances/34/properties.xml +0 -148
  81. data/server/instances/35/properties.xml +0 -148
  82. data/server/instances/36/properties.xml +0 -150
  83. data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/consumer-secret +0 -1
  84. data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/producer-secret +0 -1
  85. data/server/instances/37/notifications/5f979ed943f91ff75d75e551ba0642d6/subscription.xml +0 -33
  86. data/server/instances/37/properties.xml +0 -57
  87. data/server/instances/38/properties.xml +0 -46
  88. data/server/instances/39/properties.xml +0 -58
  89. data/server/instances/4/properties.xml +0 -43
  90. data/server/instances/40/properties.xml +0 -148
  91. data/server/instances/41/properties.xml +0 -46
  92. data/server/instances/42/properties.xml +0 -148
  93. data/server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/consumer-secret +0 -1
  94. data/server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/producer-secret +0 -1
  95. data/server/instances/43/notifications/9e7d05164a8539415d008b5bca3e0672/subscription.xml +0 -34
  96. data/server/instances/43/properties.xml +0 -148
  97. data/server/instances/44/properties.xml +0 -148
  98. data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/consumer-secret +0 -1
  99. data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/producer-secret +0 -1
  100. data/server/instances/45/notifications/442ed76f5da42dc9c57713840d713510/subscription.xml +0 -34
  101. data/server/instances/45/properties.xml +0 -148
  102. data/server/instances/46/properties.xml +0 -46
  103. data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/consumer-secret +0 -1
  104. data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/producer-secret +0 -1
  105. data/server/instances/47/notifications/63fba892899cc92fca381a666089e8d9/subscription.xml +0 -34
  106. data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/consumer-secret +0 -1
  107. data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/producer-secret +0 -1
  108. data/server/instances/47/notifications/e0cdacd3147aa31b0478a3ab1155db6c/subscription.xml +0 -34
  109. data/server/instances/47/properties.xml +0 -148
  110. data/server/instances/5/properties.xml +0 -23
  111. data/server/instances/6/properties.xml +0 -203
  112. data/server/instances/7/properties.xml +0 -149
  113. data/server/instances/8/properties.xml +0 -145
  114. data/server/instances/9/properties.xml +0 -145
  115. data/server/server.pid +0 -1
  116. data/test/delete.rb +0 -27
  117. data/test/load.rb +0 -55
  118. data/test/testset.xml +0 -297
@@ -1,33 +0,0 @@
1
- <subscription xmlns="http://riddl.org/ns/common-patterns/notifications-producer/1.0">
2
- <topic id="activity">
3
- <event>calling</event>
4
- <event>manipulating</event>
5
- <event>failed</event>
6
- <event>done</event>
7
- </topic>
8
- <topic id="position">
9
- <event>change</event>
10
- </topic>
11
- <topic id="description">
12
- <event>change</event>
13
- <event>error</event>
14
- </topic>
15
- <topic id="state">
16
- <event>change</event>
17
- </topic>
18
- <topic id="dataelements">
19
- <event>change</event>
20
- </topic>
21
- <topic id="endpoints">
22
- <event>change</event>
23
- </topic>
24
- <topic id="transformation">
25
- <event>change</event>
26
- </topic>
27
- <topic id="handlerwrapper">
28
- <event>result</event>
29
- </topic>
30
- <topic id="handlers">
31
- <event>change</event>
32
- </topic>
33
- </subscription>
@@ -1,57 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <info>Enter info here</info>
4
- <modeltype>CPEE</modeltype>
5
- </attributes>
6
- <state>finished</state>
7
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
8
- <positions/>
9
- <dataelements>
10
- <b>9</b>
11
- <a>9</a>
12
- </dataelements>
13
- <endpoints>
14
- <cb>http://gruppe.wst.univie.ac.at/~mangler/services/callback.simple.php</cb>
15
- </endpoints>
16
- <dsl>call :a1, :cb, { :label =&gt; "Update", :method =&gt; :post, :parameters =&gt; nil }, &lt;&lt;-END, &lt;&lt;-END
17
- data.a = result.value
18
- END
19
- data.b = result.value
20
- END
21
- </dsl>
22
- <dslx>
23
- <description xmlns="http://cpee.org/ns/description/1.0">
24
- <call id="a1" endpoint="cb">
25
- <parameters>
26
- <label>"Update"</label>
27
- <method>:post</method>
28
- <parameters/>
29
- </parameters>
30
- <finalize>data.a = result.value</finalize>
31
- <update>data.b = result.value</update>
32
- </call>
33
- </description>
34
- </dslx>
35
- <status>
36
- <id>0</id>
37
- <message>undefined</message>
38
- </status>
39
- <description>
40
- <description xmlns="http://cpee.org/ns/description/1.0">
41
- <call id="a1" endpoint="cb">
42
- <parameters>
43
- <label>"Update"</label>
44
- <method>:post</method>
45
- <parameters/>
46
- </parameters>
47
- <finalize>data.a = result.value</finalize>
48
- <update>data.b = result.value</update>
49
- </call>
50
- </description>
51
- </description>
52
- <transformation>
53
- <description type="copy"/>
54
- <dataelements type="none"/>
55
- <endpoints type="none"/>
56
- </transformation>
57
- </properties>
@@ -1,46 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <info>Enter info here</info>
4
- <modeltype>CPEE</modeltype>
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>call :a1, :cb, { :label =&gt; "", :method =&gt; :post, :parameters =&gt; nil }
14
- </dsl>
15
- <dslx>
16
- <description xmlns="http://cpee.org/ns/description/1.0">
17
- <call id="a1" endpoint="cb">
18
- <parameters>
19
- <label>""</label>
20
- <method>:post</method>
21
- <parameters/>
22
- </parameters>
23
- </call>
24
- </description>
25
- </dslx>
26
- <status>
27
- <id>0</id>
28
- <message>undefined</message>
29
- </status>
30
- <description>
31
- <description xmlns="http://cpee.org/ns/description/1.0">
32
- <call id="a1" endpoint="cb">
33
- <parameters>
34
- <label>""</label>
35
- <method>:post</method>
36
- <parameters/>
37
- </parameters>
38
- </call>
39
- </description>
40
- </description>
41
- <transformation>
42
- <description type="copy"/>
43
- <dataelements type="none"/>
44
- <endpoints type="none"/>
45
- </transformation>
46
- </properties>
@@ -1,58 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <info>Enter info here</info>
4
- <modeltype>CPEE</modeltype>
5
- </attributes>
6
- <state>stopped</state>
7
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
8
- <positions>
9
- <a1>at</a1>
10
- </positions>
11
- <dataelements>
12
- <b>8</b>
13
- </dataelements>
14
- <endpoints>
15
- <cb>http://gruppe.wst.univie.ac.at/~mangler/services/callback.simple.php</cb>
16
- </endpoints>
17
- <dsl>call :a1, :cb, { :label =&gt; "Update", :method =&gt; :post, :parameters =&gt; nil }, &lt;&lt;-END, &lt;&lt;-END
18
- data.a = result.value
19
- END
20
- data.b = result.value
21
- END
22
- </dsl>
23
- <dslx>
24
- <description xmlns="http://cpee.org/ns/description/1.0">
25
- <call id="a1" endpoint="cb">
26
- <parameters>
27
- <label>"Update"</label>
28
- <method>:post</method>
29
- <parameters/>
30
- </parameters>
31
- <finalize>data.a = result.value</finalize>
32
- <update>data.b = result.value</update>
33
- </call>
34
- </description>
35
- </dslx>
36
- <status>
37
- <id>0</id>
38
- <message>undefined</message>
39
- </status>
40
- <description>
41
- <description xmlns="http://cpee.org/ns/description/1.0">
42
- <call id="a1" endpoint="cb">
43
- <parameters>
44
- <label>"Update"</label>
45
- <method>:post</method>
46
- <parameters/>
47
- </parameters>
48
- <finalize>data.a = result.value</finalize>
49
- <update>data.b = result.value</update>
50
- </call>
51
- </description>
52
- </description>
53
- <transformation>
54
- <description type="copy"/>
55
- <dataelements type="none"/>
56
- <endpoints type="none"/>
57
- </transformation>
58
- </properties>
@@ -1,43 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- This file is part of CPEE.
4
-
5
- CPEE is free software: you can redistribute it and/or modify it under the terms
6
- of the GNU General Public License as published by the Free Software Foundation,
7
- either version 3 of the License, or (at your option) any later version.
8
-
9
- CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
10
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
- PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
-
13
- You should have received a copy of the GNU General Public License along with
14
- CPEE (file COPYING in the main directory). If not, see
15
- <http://www.gnu.org/licenses/>.
16
- -->
17
-
18
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
19
- <info/>
20
- <state>ready</state>
21
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
22
- <positions/>
23
- <dataelements/>
24
- <endpoints>
25
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
26
- </endpoints>
27
- <dsl/>
28
- <dslx>
29
- <description xmlns="http://cpee.org/ns/description/1.0"/>
30
- </dslx>
31
- <status>
32
- <id>0</id>
33
- <message>undefined</message>
34
- </status>
35
- <description>
36
- <description xmlns="http://cpee.org/ns/description/1.0"/>
37
- </description>
38
- <transformation>
39
- <description type='copy'/>
40
- <dataelements type='xslt'/>
41
- <endpoints type='xslt'/>
42
- </transformation>
43
- </properties>
@@ -1,148 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <info>Enter info here</info>
4
- <modeltype>CPEE</modeltype>
5
- </attributes>
6
- <state>ready</state>
7
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
8
- <positions/>
9
- <dataelements>
10
- <persons>3</persons>
11
- <card>Visa_12345</card>
12
- <airline>null</airline>
13
- <hotels>[]</hotels>
14
- <from>Vienna</from>
15
- <to>Prague</to>
16
- <costs>0</costs>
17
- </dataelements>
18
- <endpoints>
19
- <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
20
- <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
21
- <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
22
- </endpoints>
23
- <dsl>call :a1, :bookAir, { :method =&gt; :post, :parameters =&gt; {:from =&gt; data.from, :to =&gt; data.to, :persons =&gt; data.persons} }, &lt;&lt;-END
24
- data.airline = result.value('id')
25
- data.costs += result.value('costs').to_f
26
- status.update 1, 'Hotel'
27
- END
28
- parallel do
29
- loop pre_test{data.persons &gt; 0} do
30
- parallel_branch data.persons do |p|
31
- call :a2, :bookHotel, { :method =&gt; :post, :parameters =&gt; {:to =&gt; data.to} }, &lt;&lt;-END
32
- data.hotels &lt;&lt; result.value('id')
33
- data.costs += result.value('costs').to_f
34
- END
35
- end
36
- manipulate :a3, &lt;&lt;-END
37
- data.persons -= 1
38
- END
39
- end
40
- end
41
- choose :inclusive do
42
- alternative "data.costs &gt; 700" do
43
- call :a4, :approve, { :method =&gt; :post, :parameters =&gt; {:costs =&gt; data.costs} }
44
- end
45
- end
46
- </dsl>
47
- <dslx>
48
- <description xmlns="http://cpee.org/ns/description/1.0">
49
- <call id="a1" endpoint="bookAir">
50
- <parameters>
51
- <method>:post</method>
52
- <parameters>
53
- <from>data.from</from>
54
- <to>data.to</to>
55
- <persons>data.persons</persons>
56
- </parameters>
57
- </parameters>
58
- <finalize output="result"> data.airline = result.value('id')
59
- data.costs += result.value('costs').to_f
60
- status.update 1, 'Hotel'</finalize>
61
- </call>
62
- <parallel>
63
- <loop pre_test="data.persons &gt; 0">
64
- <parallel_branch pass="data.persons" local="p">
65
- <call id="a2" endpoint="bookHotel">
66
- <parameters>
67
- <method>:post</method>
68
- <parameters>
69
- <to>data.to</to>
70
- </parameters>
71
- </parameters>
72
- <finalize output="result"> data.hotels &lt;&lt; result.value('id')
73
- data.costs += result.value('costs').to_f</finalize>
74
- </call>
75
- </parallel_branch>
76
- <manipulate id="a3"> data.persons -= 1</manipulate>
77
- </loop>
78
- </parallel>
79
- <choose>
80
- <alternative condition="data.costs &gt; 700">
81
- <call id="a4" endpoint="approve">
82
- <parameters>
83
- <method>:post</method>
84
- <parameters>
85
- <costs>data.costs</costs>
86
- </parameters>
87
- </parameters>
88
- </call>
89
- </alternative>
90
- </choose>
91
- </description>
92
- </dslx>
93
- <status>
94
- <id>0</id>
95
- <message>undefined</message>
96
- </status>
97
- <description>
98
- <description xmlns="http://cpee.org/ns/description/1.0">
99
- <call id="a1" endpoint="bookAir">
100
- <parameters>
101
- <method>:post</method>
102
- <parameters>
103
- <from>data.from</from>
104
- <to>data.to</to>
105
- <persons>data.persons</persons>
106
- </parameters>
107
- </parameters>
108
- <finalize output="result"> data.airline = result.value('id')
109
- data.costs += result.value('costs').to_f
110
- status.update 1, 'Hotel'</finalize>
111
- </call>
112
- <parallel>
113
- <loop pre_test="data.persons &gt; 0">
114
- <parallel_branch pass="data.persons" local="p">
115
- <call id="a2" endpoint="bookHotel">
116
- <parameters>
117
- <method>:post</method>
118
- <parameters>
119
- <to>data.to</to>
120
- </parameters>
121
- </parameters>
122
- <finalize output="result"> data.hotels &lt;&lt; result.value('id')
123
- data.costs += result.value('costs').to_f</finalize>
124
- </call>
125
- </parallel_branch>
126
- <manipulate id="a3"> data.persons -= 1</manipulate>
127
- </loop>
128
- </parallel>
129
- <choose>
130
- <alternative condition="data.costs &gt; 700">
131
- <call id="a4" endpoint="approve">
132
- <parameters>
133
- <method>:post</method>
134
- <parameters>
135
- <costs>data.costs</costs>
136
- </parameters>
137
- </parameters>
138
- </call>
139
- </alternative>
140
- </choose>
141
- </description>
142
- </description>
143
- <transformation>
144
- <description type="copy"/>
145
- <dataelements type="rest"/>
146
- <endpoints type="rest"/>
147
- </transformation>
148
- </properties>
@@ -1,46 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- This file is part of CPEE.
4
-
5
- CPEE is free software: you can redistribute it and/or modify it under the terms
6
- of the GNU General Public License as published by the Free Software Foundation,
7
- either version 3 of the License, or (at your option) any later version.
8
-
9
- CPEE is distributed in the hope that it will be useful, but WITHOUT ANY
10
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11
- PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
-
13
- You should have received a copy of the GNU General Public License along with
14
- CPEE (file COPYING in the main directory). If not, see
15
- <http://www.gnu.org/licenses/>.
16
- -->
17
-
18
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
19
- <attributes>
20
- <info/>
21
- <modeltype>CPEE</modeltype>
22
- </attributes>
23
- <state>ready</state>
24
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
25
- <positions/>
26
- <dataelements/>
27
- <endpoints>
28
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
29
- </endpoints>
30
- <dsl/>
31
- <dslx>
32
- <description xmlns="http://cpee.org/ns/description/1.0"/>
33
- </dslx>
34
- <status>
35
- <id>0</id>
36
- <message>undefined</message>
37
- </status>
38
- <description>
39
- <description xmlns="http://cpee.org/ns/description/1.0"/>
40
- </description>
41
- <transformation>
42
- <description type='copy'/>
43
- <dataelements type='none'/>
44
- <endpoints type='none'/>
45
- </transformation>
46
- </properties>
@@ -1,148 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <info>Enter info here</info>
4
- <modeltype>CPEE</modeltype>
5
- </attributes>
6
- <state>ready</state>
7
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
8
- <positions/>
9
- <dataelements>
10
- <persons>3</persons>
11
- <card>Visa_12345</card>
12
- <airline>null</airline>
13
- <hotels>[]</hotels>
14
- <from>Vienna</from>
15
- <to>Prague</to>
16
- <costs>0</costs>
17
- </dataelements>
18
- <endpoints>
19
- <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
20
- <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
21
- <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
22
- </endpoints>
23
- <dsl>call :a1, :bookAir, { :method =&gt; :post, :parameters =&gt; {:from =&gt; data.from, :to =&gt; data.to, :persons =&gt; data.persons} }, &lt;&lt;-END
24
- data.airline = result.value('id')
25
- data.costs += result.value('costs').to_f
26
- status.update 1, 'Hotel'
27
- END
28
- parallel do
29
- loop pre_test{data.persons &gt; 0} do
30
- parallel_branch data.persons do |p|
31
- call :a2, :bookHotel, { :method =&gt; :post, :parameters =&gt; {:to =&gt; data.to} }, &lt;&lt;-END
32
- data.hotels &lt;&lt; result.value('id')
33
- data.costs += result.value('costs').to_f
34
- END
35
- end
36
- manipulate :a3, &lt;&lt;-END
37
- data.persons -= 1
38
- END
39
- end
40
- end
41
- choose :inclusive do
42
- alternative "data.costs &gt; 700" do
43
- call :a4, :approve, { :method =&gt; :post, :parameters =&gt; {:costs =&gt; data.costs} }
44
- end
45
- end
46
- </dsl>
47
- <dslx>
48
- <description xmlns="http://cpee.org/ns/description/1.0">
49
- <call id="a1" endpoint="bookAir">
50
- <parameters>
51
- <method>:post</method>
52
- <parameters>
53
- <from>data.from</from>
54
- <to>data.to</to>
55
- <persons>data.persons</persons>
56
- </parameters>
57
- </parameters>
58
- <finalize output="result"> data.airline = result.value('id')
59
- data.costs += result.value('costs').to_f
60
- status.update 1, 'Hotel'</finalize>
61
- </call>
62
- <parallel>
63
- <loop pre_test="data.persons &gt; 0">
64
- <parallel_branch pass="data.persons" local="p">
65
- <call id="a2" endpoint="bookHotel">
66
- <parameters>
67
- <method>:post</method>
68
- <parameters>
69
- <to>data.to</to>
70
- </parameters>
71
- </parameters>
72
- <finalize output="result"> data.hotels &lt;&lt; result.value('id')
73
- data.costs += result.value('costs').to_f</finalize>
74
- </call>
75
- </parallel_branch>
76
- <manipulate id="a3"> data.persons -= 1</manipulate>
77
- </loop>
78
- </parallel>
79
- <choose>
80
- <alternative condition="data.costs &gt; 700">
81
- <call id="a4" endpoint="approve">
82
- <parameters>
83
- <method>:post</method>
84
- <parameters>
85
- <costs>data.costs</costs>
86
- </parameters>
87
- </parameters>
88
- </call>
89
- </alternative>
90
- </choose>
91
- </description>
92
- </dslx>
93
- <status>
94
- <id>0</id>
95
- <message>undefined</message>
96
- </status>
97
- <description>
98
- <description xmlns="http://cpee.org/ns/description/1.0">
99
- <call id="a1" endpoint="bookAir">
100
- <parameters>
101
- <method>:post</method>
102
- <parameters>
103
- <from>data.from</from>
104
- <to>data.to</to>
105
- <persons>data.persons</persons>
106
- </parameters>
107
- </parameters>
108
- <finalize output="result"> data.airline = result.value('id')
109
- data.costs += result.value('costs').to_f
110
- status.update 1, 'Hotel'</finalize>
111
- </call>
112
- <parallel>
113
- <loop pre_test="data.persons &gt; 0">
114
- <parallel_branch pass="data.persons" local="p">
115
- <call id="a2" endpoint="bookHotel">
116
- <parameters>
117
- <method>:post</method>
118
- <parameters>
119
- <to>data.to</to>
120
- </parameters>
121
- </parameters>
122
- <finalize output="result"> data.hotels &lt;&lt; result.value('id')
123
- data.costs += result.value('costs').to_f</finalize>
124
- </call>
125
- </parallel_branch>
126
- <manipulate id="a3"> data.persons -= 1</manipulate>
127
- </loop>
128
- </parallel>
129
- <choose>
130
- <alternative condition="data.costs &gt; 700">
131
- <call id="a4" endpoint="approve">
132
- <parameters>
133
- <method>:post</method>
134
- <parameters>
135
- <costs>data.costs</costs>
136
- </parameters>
137
- </parameters>
138
- </call>
139
- </alternative>
140
- </choose>
141
- </description>
142
- </description>
143
- <transformation>
144
- <description type="copy"/>
145
- <dataelements type="rest"/>
146
- <endpoints type="rest"/>
147
- </transformation>
148
- </properties>