cpee 1.3.201 → 1.3.202

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/css/wfadaptor.css +6 -0
  3. data/cockpit/index.html +0 -21
  4. data/cockpit/testsets/Lego Crane.xml +113 -0
  5. data/cockpit/testsets/Lego Ejector.xml +2 -2
  6. data/cockpit/testsets/Lego Plate.xml +36 -0
  7. data/cockpit/testsets/testsets.xml +2 -1
  8. data/cockpit/themes/default/theme.js +1 -1
  9. data/cpee.gemspec +1 -1
  10. data/server/handlerwrappers/default.rb +9 -9
  11. data/server/instances/1/properties.xml +33 -33
  12. data/server/instances/10/properties.xml +10 -128
  13. data/server/instances/11/properties.xml +34 -122
  14. data/server/instances/12/properties.xml +24 -22
  15. data/server/instances/13/properties.xml +32 -120
  16. data/server/instances/14/properties.xml +107 -69
  17. data/server/instances/15/properties.xml +40 -85
  18. data/server/instances/16/properties.xml +36 -87
  19. data/server/instances/17/properties.xml +9 -128
  20. data/server/instances/18/notifications/b4e45a42c61d03b052d768c1693af99f/consumer-secret +1 -0
  21. data/server/instances/18/notifications/b4e45a42c61d03b052d768c1693af99f/producer-secret +1 -0
  22. data/server/instances/{69/notifications/4fa830eafc09f4c0d0070a3453cac985 → 18/notifications/b4e45a42c61d03b052d768c1693af99f}/subscription.xml +7 -3
  23. data/server/instances/18/properties.xml +24 -24
  24. data/server/instances/2/properties.xml +9 -808
  25. data/server/instances/3/properties.xml +39 -7
  26. data/server/instances/4/properties.xml +30 -117
  27. data/server/instances/5/properties.xml +28 -115
  28. data/server/instances/6/properties.xml +11 -129
  29. data/server/instances/7/properties.xml +30 -117
  30. data/server/instances/8/properties.xml +10 -128
  31. data/server/instances/9/properties.xml +39 -7
  32. data/server/resources/transformation_dslx.xsl +35 -28
  33. data/server/weel.rb +1 -0
  34. metadata +8 -69
  35. data/server/instances/19/properties.xml +0 -115
  36. data/server/instances/20/properties.xml +0 -114
  37. data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/consumer-secret +0 -1
  38. data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/producer-secret +0 -1
  39. data/server/instances/21/notifications/0851248d60c898cadd743d0dd5b6d273/subscription.xml +0 -6
  40. data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/consumer-secret +0 -1
  41. data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/producer-secret +0 -1
  42. data/server/instances/21/notifications/b7bac3f3010d433ce5d8f29338a06f9a/subscription.xml +0 -23
  43. data/server/instances/21/properties.xml +0 -150
  44. data/server/instances/22/properties.xml +0 -114
  45. data/server/instances/23/properties.xml +0 -89
  46. data/server/instances/24/properties.xml +0 -169
  47. data/server/instances/25/properties.xml +0 -150
  48. data/server/instances/26/properties.xml +0 -114
  49. data/server/instances/27/properties.xml +0 -142
  50. data/server/instances/28/properties.xml +0 -150
  51. data/server/instances/29/properties.xml +0 -150
  52. data/server/instances/30/properties.xml +0 -114
  53. data/server/instances/31/properties.xml +0 -150
  54. data/server/instances/32/properties.xml +0 -31
  55. data/server/instances/33/properties.xml +0 -150
  56. data/server/instances/34/properties.xml +0 -150
  57. data/server/instances/35/properties.xml +0 -150
  58. data/server/instances/36/properties.xml +0 -165
  59. data/server/instances/37/properties.xml +0 -114
  60. data/server/instances/38/properties.xml +0 -163
  61. data/server/instances/39/log.xes +0 -137
  62. data/server/instances/39/properties.xml +0 -177
  63. data/server/instances/40/properties.xml +0 -45
  64. data/server/instances/41/log.xes +0 -138
  65. data/server/instances/41/properties.xml +0 -177
  66. data/server/instances/42/log.xes +0 -138
  67. data/server/instances/42/properties.xml +0 -177
  68. data/server/instances/43/log.xes +0 -138
  69. data/server/instances/43/properties.xml +0 -177
  70. data/server/instances/44/log.xes +0 -138
  71. data/server/instances/44/properties.xml +0 -177
  72. data/server/instances/45/log.xes +0 -10
  73. data/server/instances/45/properties.xml +0 -177
  74. data/server/instances/46/properties.xml +0 -31
  75. data/server/instances/47/properties.xml +0 -150
  76. data/server/instances/48/log.xes +0 -122
  77. data/server/instances/48/properties.xml +0 -187
  78. data/server/instances/49/properties.xml +0 -187
  79. data/server/instances/50/properties.xml +0 -114
  80. data/server/instances/51/properties.xml +0 -130
  81. data/server/instances/52/properties.xml +0 -130
  82. data/server/instances/53/properties.xml +0 -31
  83. data/server/instances/54/properties.xml +0 -130
  84. data/server/instances/55/properties.xml +0 -31
  85. data/server/instances/56/properties.xml +0 -31
  86. data/server/instances/57/properties.xml +0 -561
  87. data/server/instances/58/properties.xml +0 -550
  88. data/server/instances/59/properties.xml +0 -418
  89. data/server/instances/60/properties.xml +0 -150
  90. data/server/instances/61/properties.xml +0 -150
  91. data/server/instances/62/properties.xml +0 -114
  92. data/server/instances/63/properties.xml +0 -150
  93. data/server/instances/64/properties.xml +0 -114
  94. data/server/instances/65/properties.xml +0 -114
  95. data/server/instances/66/properties.xml +0 -114
  96. data/server/instances/67/properties.xml +0 -114
  97. data/server/instances/68/properties.xml +0 -112
  98. data/server/instances/69/notifications/4fa830eafc09f4c0d0070a3453cac985/consumer-secret +0 -1
  99. data/server/instances/69/notifications/4fa830eafc09f4c0d0070a3453cac985/producer-secret +0 -1
  100. data/server/instances/69/properties.xml +0 -114
@@ -1,150 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <info>Linear</info>
4
- <modeltype>CPEE</modeltype>
5
- <theme>default</theme>
6
- <uuid>c4e55b74-2d83-4763-b948-68fbd8d7a47d</uuid>
7
- </attributes>
8
- <state>ready</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions/>
11
- <dataelements>
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>
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: { :method =&gt; :post, :arguments =&gt; {:from =&gt; data.from, :to =&gt; data.to, :persons =&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: { :method =&gt; :post, :arguments =&gt; {:to =&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 "data.costs &gt; 700" do
45
- call :a4, :approve, parameters: { :method =&gt; :post, :arguments =&gt; {:costs =&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
- <method>:post</method>
54
- <arguments>
55
- <from>data.from</from>
56
- <to>data.to</to>
57
- <persons>data.persons</persons>
58
- </arguments>
59
- </parameters>
60
- <finalize output="result"> data.airline = result.value('id')
61
- data.costs += result.value('costs').to_f
62
- status.update 1, 'Hotel'</finalize>
63
- </call>
64
- <parallel>
65
- <loop mode="pre_test" condition="data.persons &gt; 0">
66
- <parallel_branch pass="data.persons" local="p">
67
- <call id="a2" endpoint="bookHotel">
68
- <parameters>
69
- <method>:post</method>
70
- <arguments>
71
- <to>data.to</to>
72
- </arguments>
73
- </parameters>
74
- <finalize output="result"> data.hotels &lt;&lt; result.value('id')
75
- data.costs += result.value('costs').to_f</finalize>
76
- </call>
77
- </parallel_branch>
78
- <manipulate id="a3"> data.persons -= 1</manipulate>
79
- </loop>
80
- </parallel>
81
- <choose>
82
- <alternative condition="data.costs &gt; 700">
83
- <call id="a4" endpoint="approve">
84
- <parameters>
85
- <method>:post</method>
86
- <arguments>
87
- <costs>data.costs</costs>
88
- </arguments>
89
- </parameters>
90
- </call>
91
- </alternative>
92
- </choose>
93
- </description>
94
- </dslx>
95
- <status>
96
- <id>0</id>
97
- <message>undefined</message>
98
- </status>
99
- <description>
100
- <description xmlns="http://cpee.org/ns/description/1.0">
101
- <call id="a1" endpoint="bookAir">
102
- <parameters>
103
- <method>:post</method>
104
- <arguments>
105
- <from>data.from</from>
106
- <to>data.to</to>
107
- <persons>data.persons</persons>
108
- </arguments>
109
- </parameters>
110
- <finalize output="result"> data.airline = result.value('id')
111
- data.costs += result.value('costs').to_f
112
- status.update 1, 'Hotel'</finalize>
113
- </call>
114
- <parallel>
115
- <loop mode="pre_test" condition="data.persons &gt; 0">
116
- <parallel_branch pass="data.persons" local="p">
117
- <call id="a2" endpoint="bookHotel">
118
- <parameters>
119
- <method>:post</method>
120
- <arguments>
121
- <to>data.to</to>
122
- </arguments>
123
- </parameters>
124
- <finalize output="result"> data.hotels &lt;&lt; result.value('id')
125
- data.costs += result.value('costs').to_f</finalize>
126
- </call>
127
- </parallel_branch>
128
- <manipulate id="a3"> data.persons -= 1</manipulate>
129
- </loop>
130
- </parallel>
131
- <choose>
132
- <alternative condition="data.costs &gt; 700">
133
- <call id="a4" endpoint="approve">
134
- <parameters>
135
- <method>:post</method>
136
- <arguments>
137
- <costs>data.costs</costs>
138
- </arguments>
139
- </parameters>
140
- </call>
141
- </alternative>
142
- </choose>
143
- </description>
144
- </description>
145
- <transformation>
146
- <description type="copy"/>
147
- <dataelements type="rest"/>
148
- <endpoints type="rest"/>
149
- </transformation>
150
- </properties>
@@ -1,165 +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
- <theme>default</theme>
6
- <uuid>f8c62b1c-ed9b-4c4b-a693-046c398de151</uuid>
7
- </attributes>
8
- <state>ready</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions/>
11
- <dataelements>
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>
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: { :method =&gt; :post, :arguments =&gt; {:from =&gt; data.from, :to =&gt; data.to, :persons =&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
- call :a5, nil, parameters: { }
31
- parallel do
32
- loop pre_test{data.persons &gt; 0} do
33
- parallel_branch data.persons do |p|
34
- call :a2, :bookHotel, parameters: { :method =&gt; :post, :arguments =&gt; {:to =&gt; data.to} }, finalize: &lt;&lt;-END
35
- data.hotels &lt;&lt; result.value('id')
36
- data.costs += result.value('costs').to_f
37
- END
38
- end
39
- manipulate :a3, &lt;&lt;-END
40
- data.persons -= 1
41
- END
42
- end
43
- end
44
- choose :inclusive do
45
- alternative "data.costs &gt; 700" do
46
- call :a4, :approve, parameters: { :method =&gt; :post, :arguments =&gt; {:costs =&gt; data.costs} }
47
- end
48
- end
49
- </dsl>
50
- <dslx>
51
- <description xmlns="http://cpee.org/ns/description/1.0">
52
- <call id="a1" endpoint="bookAir">
53
- <parameters>
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
- <call xmlns="" id="a5" endpoint="">
66
- <parameters>
67
- <label/>
68
- <method>:post</method>
69
- <arguments/>
70
- </parameters>
71
- </call>
72
- <parallel>
73
- <loop mode="pre_test" condition="data.persons &gt; 0">
74
- <parallel_branch pass="data.persons" local="p">
75
- <call id="a2" endpoint="bookHotel">
76
- <parameters>
77
- <method>:post</method>
78
- <arguments>
79
- <to>data.to</to>
80
- </arguments>
81
- </parameters>
82
- <finalize output="result"> data.hotels &lt;&lt; result.value('id')
83
- data.costs += result.value('costs').to_f</finalize>
84
- </call>
85
- </parallel_branch>
86
- <manipulate id="a3"> data.persons -= 1</manipulate>
87
- </loop>
88
- </parallel>
89
- <choose>
90
- <alternative condition="data.costs &gt; 700">
91
- <call id="a4" endpoint="approve">
92
- <parameters>
93
- <method>:post</method>
94
- <arguments>
95
- <costs>data.costs</costs>
96
- </arguments>
97
- </parameters>
98
- </call>
99
- </alternative>
100
- </choose>
101
- </description>
102
- </dslx>
103
- <status>
104
- <id>0</id>
105
- <message>undefined</message>
106
- </status>
107
- <description>
108
- <description xmlns="http://cpee.org/ns/description/1.0">
109
- <call id="a1" endpoint="bookAir">
110
- <parameters>
111
- <method>:post</method>
112
- <arguments>
113
- <from>data.from</from>
114
- <to>data.to</to>
115
- <persons>data.persons</persons>
116
- </arguments>
117
- </parameters>
118
- <finalize output="result"> data.airline = result.value('id')
119
- data.costs += result.value('costs').to_f
120
- status.update 1, 'Hotel'</finalize>
121
- </call>
122
- <call xmlns="" id="a5" endpoint="">
123
- <parameters>
124
- <label/>
125
- <method>:post</method>
126
- <arguments/>
127
- </parameters>
128
- </call>
129
- <parallel>
130
- <loop mode="pre_test" condition="data.persons &gt; 0">
131
- <parallel_branch pass="data.persons" local="p">
132
- <call id="a2" endpoint="bookHotel">
133
- <parameters>
134
- <method>:post</method>
135
- <arguments>
136
- <to>data.to</to>
137
- </arguments>
138
- </parameters>
139
- <finalize output="result"> data.hotels &lt;&lt; result.value('id')
140
- data.costs += result.value('costs').to_f</finalize>
141
- </call>
142
- </parallel_branch>
143
- <manipulate id="a3"> data.persons -= 1</manipulate>
144
- </loop>
145
- </parallel>
146
- <choose>
147
- <alternative condition="data.costs &gt; 700">
148
- <call id="a4" endpoint="approve">
149
- <parameters>
150
- <method>:post</method>
151
- <arguments>
152
- <costs>data.costs</costs>
153
- </arguments>
154
- </parameters>
155
- </call>
156
- </alternative>
157
- </choose>
158
- </description>
159
- </description>
160
- <transformation>
161
- <description type="copy"/>
162
- <dataelements type="rest"/>
163
- <endpoints type="rest"/>
164
- </transformation>
165
- </properties>
@@ -1,114 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <info>Linear</info>
4
- <modeltype>CPEE</modeltype>
5
- <theme>default</theme>
6
- <uuid>47345835-09fa-46b7-80d4-fdb9d3c779ab</uuid>
7
- </attributes>
8
- <state>ready</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions>
11
- <a1>after</a1>
12
- </positions>
13
- <dataelements>
14
- <x/>
15
- </dataelements>
16
- <endpoints>
17
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
18
- </endpoints>
19
- <dsl>call :a1, :timeout, parameters: { :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 2} }, finalize: &lt;&lt;-END
20
- data.x += "a1,"
21
- END
22
- call :a2, :timeout, parameters: { :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 4} }, finalize: &lt;&lt;-END
23
- data.x += "a2,"
24
- END
25
- call :a3, :timeout, parameters: { :method =&gt; :post, :arguments =&gt; {:timeout =&gt; 4} }, finalize: &lt;&lt;-END
26
- data.x += "a3,"
27
- END
28
- </dsl>
29
- <dslx>
30
- <description xmlns="http://cpee.org/ns/description/1.0">
31
- <!--{{{-->
32
- <call id="a1" endpoint="timeout">
33
- <parameters>
34
- <!--{{{-->
35
- <method>:post</method>
36
- <arguments>
37
- <timeout>2</timeout>
38
- </arguments>
39
- </parameters>
40
- <!--}}}-->
41
- <finalize output="result"> data.x += "a1,"</finalize>
42
- </call>
43
- <call id="a2" endpoint="timeout">
44
- <parameters>
45
- <!--{{{-->
46
- <method>:post</method>
47
- <arguments>
48
- <timeout>4</timeout>
49
- </arguments>
50
- </parameters>
51
- <!--}}}-->
52
- <finalize output="result"> data.x += "a2,"</finalize>
53
- </call>
54
- <call id="a3" endpoint="timeout">
55
- <parameters>
56
- <!--{{{-->
57
- <method>:post</method>
58
- <arguments>
59
- <timeout>4</timeout>
60
- </arguments>
61
- </parameters>
62
- <!--}}}-->
63
- <finalize output="result"> data.x += "a3,"</finalize>
64
- </call>
65
- </description>
66
- </dslx>
67
- <status>
68
- <id>0</id>
69
- <message>undefined</message>
70
- </status>
71
- <description>
72
- <description xmlns="http://cpee.org/ns/description/1.0">
73
- <!--{{{-->
74
- <call id="a1" endpoint="timeout">
75
- <parameters>
76
- <!--{{{-->
77
- <method>:post</method>
78
- <arguments>
79
- <timeout>2</timeout>
80
- </arguments>
81
- </parameters>
82
- <!--}}}-->
83
- <finalize output="result"> data.x += "a1,"</finalize>
84
- </call>
85
- <call id="a2" endpoint="timeout">
86
- <parameters>
87
- <!--{{{-->
88
- <method>:post</method>
89
- <arguments>
90
- <timeout>4</timeout>
91
- </arguments>
92
- </parameters>
93
- <!--}}}-->
94
- <finalize output="result"> data.x += "a2,"</finalize>
95
- </call>
96
- <call id="a3" endpoint="timeout">
97
- <parameters>
98
- <!--{{{-->
99
- <method>:post</method>
100
- <arguments>
101
- <timeout>4</timeout>
102
- </arguments>
103
- </parameters>
104
- <!--}}}-->
105
- <finalize output="result"> data.x += "a3,"</finalize>
106
- </call>
107
- </description>
108
- </description>
109
- <transformation>
110
- <description type="copy"/>
111
- <dataelements type="rest"/>
112
- <endpoints type="rest"/>
113
- </transformation>
114
- </properties>
@@ -1,163 +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
- <theme>default</theme>
6
- <uuid>a7e82e6a-2dc6-4ab9-8bd2-92961fe9c742</uuid>
7
- </attributes>
8
- <state>ready</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions/>
11
- <dataelements>
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>
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>manipulate :a5
26
- call :a1, :bookAir, parameters: { :label =&gt; nil, :method =&gt; :post, :arguments =&gt; {:from =&gt; data.from, :to =&gt; data.to, :persons =&gt; data.persons} }, finalize: &lt;&lt;-END, update: &lt;&lt;-END
27
- data.airline = result.value('id')
28
- data.costs += result.value('costs').to_f
29
- status.update 1, 'Hotel'
30
- END
31
- aaa
32
- END
33
- parallel do
34
- loop pre_test{data.persons &gt; 0} do
35
- parallel_branch data.persons do |p|
36
- call :a2, :bookHotel, parameters: { :label =&gt; nil, :method =&gt; :post, :arguments =&gt; {:to =&gt; data.to} }, finalize: &lt;&lt;-END, update: &lt;&lt;-END
37
- data.hotels &lt;&lt; result.value('id')
38
- data.costs += result.value('costs').to_f
39
- END
40
- end
41
- manipulate :a3, &lt;&lt;-END
42
- data.persons -= 1
43
- END
44
- end
45
- end
46
- choose :inclusive do
47
- alternative "data.costs &gt; 700" do
48
- call :a4, :approve, parameters: { :method =&gt; :post, :arguments =&gt; {:costs =&gt; data.costs} }
49
- end
50
- end
51
- </dsl>
52
- <dslx>
53
- <description xmlns="http://cpee.org/ns/description/1.0">
54
- <manipulate xmlns="" id="a5"/>
55
- <call id="a1" endpoint="bookAir">
56
- <parameters>
57
- <label/>
58
- <method>:post</method>
59
- <arguments>
60
- <from>data.from</from>
61
- <to>data.to</to>
62
- <persons>data.persons</persons>
63
- </arguments>
64
- </parameters>
65
- <finalize output="result">data.airline = result.value('id')
66
- data.costs += result.value('costs').to_f
67
- status.update 1, 'Hotel'</finalize>
68
- <update output="result">aaa</update>
69
- </call>
70
- <parallel>
71
- <loop mode="pre_test" condition="data.persons &gt; 0">
72
- <parallel_branch pass="data.persons" local="p">
73
- <call id="a2" endpoint="bookHotel">
74
- <parameters>
75
- <label/>
76
- <method>:post</method>
77
- <arguments>
78
- <to>data.to</to>
79
- </arguments>
80
- </parameters>
81
- <finalize output="result">data.hotels &lt;&lt; result.value('id')
82
- data.costs += result.value('costs').to_f</finalize>
83
- <update output="result"/>
84
- </call>
85
- </parallel_branch>
86
- <manipulate id="a3"> data.persons -= 1</manipulate>
87
- </loop>
88
- </parallel>
89
- <choose>
90
- <alternative condition="data.costs &gt; 700">
91
- <call id="a4" endpoint="approve">
92
- <parameters>
93
- <method>:post</method>
94
- <arguments>
95
- <costs>data.costs</costs>
96
- </arguments>
97
- </parameters>
98
- </call>
99
- </alternative>
100
- </choose>
101
- </description>
102
- </dslx>
103
- <status>
104
- <id>0</id>
105
- <message>undefined</message>
106
- </status>
107
- <description>
108
- <description xmlns="http://cpee.org/ns/description/1.0">
109
- <manipulate xmlns="" id="a5"/>
110
- <call id="a1" endpoint="bookAir">
111
- <parameters>
112
- <label/>
113
- <method>:post</method>
114
- <arguments>
115
- <from>data.from</from>
116
- <to>data.to</to>
117
- <persons>data.persons</persons>
118
- </arguments>
119
- </parameters>
120
- <finalize output="result">data.airline = result.value('id')
121
- data.costs += result.value('costs').to_f
122
- status.update 1, 'Hotel'</finalize>
123
- <update output="result">aaa</update>
124
- </call>
125
- <parallel>
126
- <loop mode="pre_test" condition="data.persons &gt; 0">
127
- <parallel_branch pass="data.persons" local="p">
128
- <call id="a2" endpoint="bookHotel">
129
- <parameters>
130
- <label/>
131
- <method>:post</method>
132
- <arguments>
133
- <to>data.to</to>
134
- </arguments>
135
- </parameters>
136
- <finalize output="result">data.hotels &lt;&lt; result.value('id')
137
- data.costs += result.value('costs').to_f</finalize>
138
- <update output="result"/>
139
- </call>
140
- </parallel_branch>
141
- <manipulate id="a3"> data.persons -= 1</manipulate>
142
- </loop>
143
- </parallel>
144
- <choose>
145
- <alternative condition="data.costs &gt; 700">
146
- <call id="a4" endpoint="approve">
147
- <parameters>
148
- <method>:post</method>
149
- <arguments>
150
- <costs>data.costs</costs>
151
- </arguments>
152
- </parameters>
153
- </call>
154
- </alternative>
155
- </choose>
156
- </description>
157
- </description>
158
- <transformation>
159
- <description type="copy"/>
160
- <dataelements type="rest"/>
161
- <endpoints type="rest"/>
162
- </transformation>
163
- </properties>