cpee 1.4.8 → 1.4.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +5 -5
  2. data/cockpit/config.json +6 -0
  3. data/cockpit/css/ui.css +7 -7
  4. data/cockpit/index.html +4 -4
  5. data/cockpit/js/instance.js +6 -3
  6. data/cockpit/themes/compact/theme.js +107 -6
  7. data/cockpit/themes/default/rngs/call.rng +29 -0
  8. data/cockpit/themes/default/rngs/callmanipulate.rng +29 -0
  9. data/cpee.gemspec +1 -1
  10. data/lib/cpee/controller.rb +1 -1
  11. data/lib/cpee/instantiation.rb +44 -21
  12. data/lib/engine/instances.rng +5 -2
  13. data/lib/instantiation.xml +5 -1
  14. data/log/elasticsearch.rb +1 -106
  15. data/log/elasticsearch_logging.rb +237 -0
  16. data/log/legacy/test_es.rb +26 -0
  17. data/log/legacy/test_split.rb +211 -0
  18. data/log/trace.yaml +17717 -0
  19. data/log/trace_sic.yaml +18343 -0
  20. data/server/handlerwrappers/default.rb +28 -23
  21. data/server/instances/1/properties.xml +158 -31
  22. data/server/instances/2/properties.xml +137 -12
  23. data/server/instances/3/properties.xml +116 -80
  24. data/server/resources/base.xml +78 -0
  25. data/server/resources/test.rb +19 -0
  26. data/server/resources/test.xml +33 -0
  27. data/server/resources/topics.xml +6 -3
  28. data/server/resources/transformation_dslx.xsl +5 -0
  29. data/server/server.pid +1 -0
  30. metadata +13 -71
  31. data/log/logs/1/test +0 -1
  32. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/consumer-secret +0 -1
  33. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/producer-secret +0 -1
  34. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/subscription.xml +0 -23
  35. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/consumer-secret +0 -1
  36. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/producer-secret +0 -1
  37. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/subscription.xml +0 -6
  38. data/server/instances/10/properties.xml +0 -187
  39. data/server/instances/11/properties.xml +0 -191
  40. data/server/instances/12/properties.xml +0 -191
  41. data/server/instances/13/properties.xml +0 -204
  42. data/server/instances/14/properties.xml +0 -31
  43. data/server/instances/15/properties.xml +0 -30
  44. data/server/instances/16/properties.xml +0 -29
  45. data/server/instances/17/properties.xml +0 -29
  46. data/server/instances/18/properties.xml +0 -31
  47. data/server/instances/19/properties.xml +0 -31
  48. data/server/instances/20/properties.xml +0 -191
  49. data/server/instances/21/properties.xml +0 -156
  50. data/server/instances/22/properties.xml +0 -118
  51. data/server/instances/23/properties.xml +0 -118
  52. data/server/instances/24/properties.xml +0 -156
  53. data/server/instances/25/properties.xml +0 -156
  54. data/server/instances/26/properties.xml +0 -156
  55. data/server/instances/27/properties.xml +0 -140
  56. data/server/instances/28/properties.xml +0 -156
  57. data/server/instances/29/properties.xml +0 -156
  58. data/server/instances/30/properties.xml +0 -354
  59. data/server/instances/31/properties.xml +0 -354
  60. data/server/instances/313/notifications/crisp/consumer-secret +0 -1
  61. data/server/instances/313/notifications/crisp/producer-secret +0 -1
  62. data/server/instances/313/notifications/crisp/subscription.xml +0 -7
  63. data/server/instances/313/notifications/logging/consumer-secret +0 -1
  64. data/server/instances/313/notifications/logging/producer-secret +0 -1
  65. data/server/instances/313/notifications/logging/subscription.xml +0 -7
  66. data/server/instances/313/notifications/logging_yaml/consumer-secret +0 -1
  67. data/server/instances/313/notifications/logging_yaml/producer-secret +0 -1
  68. data/server/instances/313/notifications/logging_yaml/subscription.xml +0 -7
  69. data/server/instances/313/properties.xml +0 -524
  70. data/server/instances/32/properties.xml +0 -628
  71. data/server/instances/33/properties.xml +0 -156
  72. data/server/instances/4/properties.xml +0 -114
  73. data/server/instances/5/properties.xml +0 -114
  74. data/server/instances/6/properties.xml +0 -206
  75. data/server/instances/662/notifications/crisp/consumer-secret +0 -1
  76. data/server/instances/662/notifications/crisp/producer-secret +0 -1
  77. data/server/instances/662/notifications/crisp/subscription.xml +0 -7
  78. data/server/instances/662/notifications/logging/consumer-secret +0 -1
  79. data/server/instances/662/notifications/logging/producer-secret +0 -1
  80. data/server/instances/662/notifications/logging/subscription.xml +0 -7
  81. data/server/instances/662/notifications/logging_yaml/consumer-secret +0 -1
  82. data/server/instances/662/notifications/logging_yaml/producer-secret +0 -1
  83. data/server/instances/662/notifications/logging_yaml/subscription.xml +0 -7
  84. data/server/instances/662/properties.xml +0 -427
  85. data/server/instances/663/properties.xml +0 -31
  86. data/server/instances/664/properties.xml +0 -425
  87. data/server/instances/665/properties.xml +0 -425
  88. data/server/instances/666/properties.xml +0 -427
  89. data/server/instances/667/properties.xml +0 -427
  90. data/server/instances/668/properties.xml +0 -425
  91. data/server/instances/669/properties.xml +0 -425
  92. data/server/instances/670/properties.xml +0 -31
  93. data/server/instances/671/properties.xml +0 -158
  94. data/server/instances/672/properties.xml +0 -199
  95. data/server/instances/673/properties.xml +0 -52
  96. data/server/instances/7/properties.xml +0 -156
  97. data/server/instances/8/properties.xml +0 -118
  98. data/server/instances/9/properties.xml +0 -120
@@ -1,156 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>6e375218-ed2b-4f53-9b8a-f4cef916d3de</uuid>
4
- <info>Enter info here</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>labels</theme>
7
- </attributes>
8
- <state>finished</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: { :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 "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
- <method>:post</method>
54
- <label>Book Airline</label>
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
- <method>:post</method>
71
- <label>Book Hotel</label>
72
- <arguments>
73
- <to>data.to</to>
74
- </arguments>
75
- </parameters>
76
- <finalize output="result">data.hotels &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
- <method>:post</method>
88
- <label>Approve Hotel</label>
89
- <arguments>
90
- <costs>data.costs</costs>
91
- </arguments>
92
- </parameters>
93
- </call>
94
- </alternative>
95
- </choose>
96
- </description>
97
- </dslx>
98
- <status>
99
- <id>0</id>
100
- <message>undefined</message>
101
- </status>
102
- <description>
103
- <description xmlns="http://cpee.org/ns/description/1.0">
104
- <call id="a1" endpoint="bookAir">
105
- <parameters>
106
- <method>:post</method>
107
- <label>Book Airline</label>
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
- <method>:post</method>
124
- <label>Book Hotel</label>
125
- <arguments>
126
- <to>data.to</to>
127
- </arguments>
128
- </parameters>
129
- <finalize output="result">data.hotels &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
- <method>:post</method>
141
- <label>Approve Hotel</label>
142
- <arguments>
143
- <costs>data.costs</costs>
144
- </arguments>
145
- </parameters>
146
- </call>
147
- </alternative>
148
- </choose>
149
- </description>
150
- </description>
151
- <transformation>
152
- <description type="copy"/>
153
- <dataelements type="rest"/>
154
- <endpoints type="rest"/>
155
- </transformation>
156
- </properties>
@@ -1,118 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>8f912edc-d4a7-4793-8499-073860043452</uuid>
4
- <info>Linear</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- </attributes>
8
- <state>finished</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions/>
11
- <dataelements>
12
- <x/>
13
- </dataelements>
14
- <endpoints>
15
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
16
- </endpoints>
17
- <dsl>call :a1, :timeout, parameters: { :label =&gt; "Step 1", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
18
- data.x += "a1,"
19
- END
20
- call :a2, :timeout, parameters: { :label =&gt; "Step 2", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }, finalize: &lt;&lt;-END
21
- data.x += "a2,"
22
- END
23
- call :a3, :timeout, parameters: { :label =&gt; "Step 3", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }, finalize: &lt;&lt;-END
24
- data.x += "a3,"
25
- END
26
- </dsl>
27
- <dslx>
28
- <description xmlns="http://cpee.org/ns/description/1.0">
29
- <!--{{{-->
30
- <call id="a1" endpoint="timeout">
31
- <parameters>
32
- <!--{{{-->
33
- <label>Step 1</label>
34
- <method>:post</method>
35
- <arguments>
36
- <timeout>2</timeout>
37
- </arguments>
38
- </parameters>
39
- <!--}}}-->
40
- <finalize output="result">data.x += "a1,"</finalize>
41
- </call>
42
- <call id="a2" endpoint="timeout">
43
- <parameters>
44
- <!--{{{-->
45
- <label>Step 2</label>
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
- <label>Step 3</label>
58
- <method>:post</method>
59
- <arguments>
60
- <timeout>4</timeout>
61
- </arguments>
62
- </parameters>
63
- <!--}}}-->
64
- <finalize output="result">data.x += "a3,"</finalize>
65
- </call>
66
- </description>
67
- </dslx>
68
- <status>
69
- <id>0</id>
70
- <message>undefined</message>
71
- </status>
72
- <description>
73
- <description xmlns="http://cpee.org/ns/description/1.0">
74
- <!--{{{-->
75
- <call id="a1" endpoint="timeout">
76
- <parameters>
77
- <!--{{{-->
78
- <label>Step 1</label>
79
- <method>:post</method>
80
- <arguments>
81
- <timeout>2</timeout>
82
- </arguments>
83
- </parameters>
84
- <!--}}}-->
85
- <finalize output="result">data.x += "a1,"</finalize>
86
- </call>
87
- <call id="a2" endpoint="timeout">
88
- <parameters>
89
- <!--{{{-->
90
- <label>Step 2</label>
91
- <method>:post</method>
92
- <arguments>
93
- <timeout>4</timeout>
94
- </arguments>
95
- </parameters>
96
- <!--}}}-->
97
- <finalize output="result">data.x += "a2,"</finalize>
98
- </call>
99
- <call id="a3" endpoint="timeout">
100
- <parameters>
101
- <!--{{{-->
102
- <label>Step 3</label>
103
- <method>:post</method>
104
- <arguments>
105
- <timeout>4</timeout>
106
- </arguments>
107
- </parameters>
108
- <!--}}}-->
109
- <finalize output="result">data.x += "a3,"</finalize>
110
- </call>
111
- </description>
112
- </description>
113
- <transformation>
114
- <description type="copy"/>
115
- <dataelements type="rest"/>
116
- <endpoints type="rest"/>
117
- </transformation>
118
- </properties>
@@ -1,118 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>9b7b1c9c-f895-4780-aae0-43e15654f400</uuid>
4
- <info>Linear</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- </attributes>
8
- <state>finished</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions/>
11
- <dataelements>
12
- <x>a2,a3,</x>
13
- </dataelements>
14
- <endpoints>
15
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
16
- </endpoints>
17
- <dsl>call :a1, :timeout, parameters: { :label =&gt; "Step 1", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 2)] }, finalize: &lt;&lt;-END
18
- data.x += "a1,"
19
- END
20
- call :a2, :timeout, parameters: { :label =&gt; "Step 2", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }, finalize: &lt;&lt;-END
21
- data.x += "a2,"
22
- END
23
- call :a3, :timeout, parameters: { :label =&gt; "Step 3", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :timeout, :value =&gt; 4)] }, finalize: &lt;&lt;-END
24
- data.x += "a3,"
25
- END
26
- </dsl>
27
- <dslx>
28
- <description xmlns="http://cpee.org/ns/description/1.0">
29
- <!--{{{-->
30
- <call id="a1" endpoint="timeout">
31
- <parameters>
32
- <!--{{{-->
33
- <label>Step 1</label>
34
- <method>:post</method>
35
- <arguments>
36
- <timeout>2</timeout>
37
- </arguments>
38
- </parameters>
39
- <!--}}}-->
40
- <finalize output="result">data.x += "a1,"</finalize>
41
- </call>
42
- <call id="a2" endpoint="timeout">
43
- <parameters>
44
- <!--{{{-->
45
- <label>Step 2</label>
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
- <label>Step 3</label>
58
- <method>:post</method>
59
- <arguments>
60
- <timeout>4</timeout>
61
- </arguments>
62
- </parameters>
63
- <!--}}}-->
64
- <finalize output="result">data.x += "a3,"</finalize>
65
- </call>
66
- </description>
67
- </dslx>
68
- <status>
69
- <id>0</id>
70
- <message>undefined</message>
71
- </status>
72
- <description>
73
- <description xmlns="http://cpee.org/ns/description/1.0">
74
- <!--{{{-->
75
- <call id="a1" endpoint="timeout">
76
- <parameters>
77
- <!--{{{-->
78
- <label>Step 1</label>
79
- <method>:post</method>
80
- <arguments>
81
- <timeout>2</timeout>
82
- </arguments>
83
- </parameters>
84
- <!--}}}-->
85
- <finalize output="result">data.x += "a1,"</finalize>
86
- </call>
87
- <call id="a2" endpoint="timeout">
88
- <parameters>
89
- <!--{{{-->
90
- <label>Step 2</label>
91
- <method>:post</method>
92
- <arguments>
93
- <timeout>4</timeout>
94
- </arguments>
95
- </parameters>
96
- <!--}}}-->
97
- <finalize output="result">data.x += "a2,"</finalize>
98
- </call>
99
- <call id="a3" endpoint="timeout">
100
- <parameters>
101
- <!--{{{-->
102
- <label>Step 3</label>
103
- <method>:post</method>
104
- <arguments>
105
- <timeout>4</timeout>
106
- </arguments>
107
- </parameters>
108
- <!--}}}-->
109
- <finalize output="result">data.x += "a3,"</finalize>
110
- </call>
111
- </description>
112
- </description>
113
- <transformation>
114
- <description type="copy"/>
115
- <dataelements type="rest"/>
116
- <endpoints type="rest"/>
117
- </transformation>
118
- </properties>
@@ -1,156 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>4d5f07d8-3931-4302-9065-6cb2385ab9cd</uuid>
4
- <info>Enter info here</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- </attributes>
8
- <state>stopped</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: { :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 "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
- <method>:post</method>
54
- <label>Book Airline</label>
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
- <method>:post</method>
71
- <label>Book Hotel</label>
72
- <arguments>
73
- <to>data.to</to>
74
- </arguments>
75
- </parameters>
76
- <finalize output="result">data.hotels &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
- <method>:post</method>
88
- <label>Approve Hotel</label>
89
- <arguments>
90
- <costs>data.costs</costs>
91
- </arguments>
92
- </parameters>
93
- </call>
94
- </alternative>
95
- </choose>
96
- </description>
97
- </dslx>
98
- <status>
99
- <id>0</id>
100
- <message>undefined</message>
101
- </status>
102
- <description>
103
- <description xmlns="http://cpee.org/ns/description/1.0">
104
- <call id="a1" endpoint="bookAir">
105
- <parameters>
106
- <method>:post</method>
107
- <label>Book Airline</label>
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
- <method>:post</method>
124
- <label>Book Hotel</label>
125
- <arguments>
126
- <to>data.to</to>
127
- </arguments>
128
- </parameters>
129
- <finalize output="result">data.hotels &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
- <method>:post</method>
141
- <label>Approve Hotel</label>
142
- <arguments>
143
- <costs>data.costs</costs>
144
- </arguments>
145
- </parameters>
146
- </call>
147
- </alternative>
148
- </choose>
149
- </description>
150
- </description>
151
- <transformation>
152
- <description type="copy"/>
153
- <dataelements type="rest"/>
154
- <endpoints type="rest"/>
155
- </transformation>
156
- </properties>