cpee 1.4.7 → 1.4.8

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 (127) hide show
  1. checksums.yaml +5 -5
  2. data/cpee.gemspec +1 -1
  3. data/lib/cpee/controller.rb +41 -7
  4. data/lib/cpee/handler_properties.rb +9 -9
  5. data/lib/cpee/instantiation.rb +12 -6
  6. data/lib/instantiation.xml +1 -0
  7. data/log/elasticsearch.rb +120 -0
  8. data/log/logs/1/test +1 -0
  9. data/log/xes_yaml.rb +3 -20
  10. data/server/handlerwrappers/default.rb +10 -10
  11. data/server/instances/1/properties.xml +34 -122
  12. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/consumer-secret +1 -0
  13. data/server/instances/10/notifications/182434032285ca1d06a8b6554b8889c8/producer-secret +1 -0
  14. data/server/instances/{76/notifications/a59df784fab648f5327915fc6cf012ab → 10/notifications/182434032285ca1d06a8b6554b8889c8}/subscription.xml +6 -21
  15. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/consumer-secret +1 -0
  16. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/producer-secret +1 -0
  17. data/server/instances/10/notifications/512a3785631a5245dbb45fa150ea72ed/subscription.xml +6 -0
  18. data/server/instances/10/properties.xml +141 -127
  19. data/server/instances/11/properties.xml +162 -179
  20. data/server/instances/12/properties.xml +163 -87
  21. data/server/instances/13/properties.xml +131 -2002
  22. data/server/instances/14/properties.xml +9 -2044
  23. data/server/instances/15/properties.xml +8 -2039
  24. data/server/instances/16/properties.xml +8 -2069
  25. data/server/instances/17/properties.xml +11 -2065
  26. data/server/instances/18/properties.xml +10 -2109
  27. data/server/instances/19/properties.xml +5 -90
  28. data/server/instances/2/properties.xml +10 -135
  29. data/server/instances/20/properties.xml +169 -9
  30. data/server/instances/21/properties.xml +122 -82
  31. data/server/instances/22/properties.xml +53 -2042
  32. data/server/instances/23/properties.xml +75 -68
  33. data/server/instances/24/properties.xml +82 -2033
  34. data/server/instances/25/properties.xml +121 -37
  35. data/server/instances/26/properties.xml +9 -9
  36. data/server/instances/27/properties.xml +48 -2044
  37. data/server/instances/28/properties.xml +83 -2058
  38. data/server/instances/29/properties.xml +83 -2072
  39. data/server/instances/3/properties.xml +76 -211
  40. data/server/instances/30/properties.xml +293 -112
  41. data/server/instances/31/properties.xml +332 -9
  42. data/server/instances/313/notifications/crisp/consumer-secret +1 -0
  43. data/server/instances/313/notifications/crisp/producer-secret +1 -0
  44. data/server/instances/313/notifications/crisp/subscription.xml +7 -0
  45. data/server/instances/313/notifications/logging/consumer-secret +1 -0
  46. data/server/instances/313/notifications/logging/producer-secret +1 -0
  47. data/server/instances/313/notifications/logging/subscription.xml +7 -0
  48. data/server/instances/313/notifications/logging_yaml/consumer-secret +1 -0
  49. data/server/instances/313/notifications/logging_yaml/producer-secret +1 -0
  50. data/server/instances/313/notifications/logging_yaml/subscription.xml +7 -0
  51. data/server/instances/313/properties.xml +524 -0
  52. data/server/instances/32/properties.xml +582 -65
  53. data/server/instances/33/properties.xml +113 -99
  54. data/server/instances/4/properties.xml +92 -9
  55. data/server/instances/5/properties.xml +49 -1505
  56. data/server/instances/6/properties.xml +186 -11
  57. data/server/instances/662/notifications/crisp/consumer-secret +1 -0
  58. data/server/instances/662/notifications/crisp/producer-secret +1 -0
  59. data/server/instances/662/notifications/crisp/subscription.xml +7 -0
  60. data/server/instances/662/notifications/logging/consumer-secret +1 -0
  61. data/server/instances/662/notifications/logging/producer-secret +1 -0
  62. data/server/instances/662/notifications/logging/subscription.xml +7 -0
  63. data/server/instances/662/notifications/logging_yaml/consumer-secret +1 -0
  64. data/server/instances/662/notifications/logging_yaml/producer-secret +1 -0
  65. data/server/instances/662/notifications/logging_yaml/subscription.xml +7 -0
  66. data/server/instances/662/properties.xml +427 -0
  67. data/server/instances/{46 → 663}/properties.xml +1 -1
  68. data/server/instances/664/properties.xml +425 -0
  69. data/server/instances/665/properties.xml +425 -0
  70. data/server/instances/666/properties.xml +427 -0
  71. data/server/instances/667/properties.xml +427 -0
  72. data/server/instances/668/properties.xml +425 -0
  73. data/server/instances/669/properties.xml +425 -0
  74. data/server/instances/670/properties.xml +31 -0
  75. data/server/instances/{75 → 671}/properties.xml +12 -12
  76. data/server/instances/672/properties.xml +199 -0
  77. data/server/instances/673/properties.xml +52 -0
  78. data/server/instances/7/properties.xml +82 -1691
  79. data/server/instances/8/properties.xml +53 -1738
  80. data/server/instances/9/properties.xml +95 -680
  81. metadata +42 -52
  82. data/server/instances/34/properties.xml +0 -183
  83. data/server/instances/35/properties.xml +0 -183
  84. data/server/instances/36/properties.xml +0 -185
  85. data/server/instances/37/properties.xml +0 -183
  86. data/server/instances/38/properties.xml +0 -183
  87. data/server/instances/39/properties.xml +0 -183
  88. data/server/instances/40/properties.xml +0 -183
  89. data/server/instances/41/properties.xml +0 -183
  90. data/server/instances/42/properties.xml +0 -183
  91. data/server/instances/43/properties.xml +0 -183
  92. data/server/instances/44/properties.xml +0 -183
  93. data/server/instances/45/properties.xml +0 -185
  94. data/server/instances/47/properties.xml +0 -185
  95. data/server/instances/48/properties.xml +0 -185
  96. data/server/instances/49/properties.xml +0 -185
  97. data/server/instances/50/properties.xml +0 -183
  98. data/server/instances/51/properties.xml +0 -183
  99. data/server/instances/52/properties.xml +0 -2129
  100. data/server/instances/53/properties.xml +0 -2129
  101. data/server/instances/54/properties.xml +0 -319
  102. data/server/instances/55/properties.xml +0 -2114
  103. data/server/instances/56/properties.xml +0 -2114
  104. data/server/instances/57/properties.xml +0 -2119
  105. data/server/instances/58/properties.xml +0 -2119
  106. data/server/instances/59/properties.xml +0 -2119
  107. data/server/instances/60/properties.xml +0 -2119
  108. data/server/instances/61/properties.xml +0 -2114
  109. data/server/instances/62/properties.xml +0 -2116
  110. data/server/instances/63/properties.xml +0 -2116
  111. data/server/instances/64/properties.xml +0 -2116
  112. data/server/instances/65/properties.xml +0 -76
  113. data/server/instances/66/properties.xml +0 -97
  114. data/server/instances/67/properties.xml +0 -184
  115. data/server/instances/68/properties.xml +0 -158
  116. data/server/instances/69/properties.xml +0 -156
  117. data/server/instances/70/properties.xml +0 -156
  118. data/server/instances/71/properties.xml +0 -156
  119. data/server/instances/72/properties.xml +0 -156
  120. data/server/instances/73/properties.xml +0 -156
  121. data/server/instances/74/properties.xml +0 -156
  122. data/server/instances/76/notifications/a59df784fab648f5327915fc6cf012ab/consumer-secret +0 -1
  123. data/server/instances/76/notifications/a59df784fab648f5327915fc6cf012ab/producer-secret +0 -1
  124. data/server/instances/76/properties.xml +0 -156
  125. data/server/resources/base.xml +0 -78
  126. data/server/resources/test.rb +0 -19
  127. data/server/resources/test.xml +0 -33
@@ -1,76 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>50c21d50-f3d6-4167-9ebf-19ac2bfdba8c</uuid>
4
- <info>Plain Instance</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- </attributes>
8
- <state>finished</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions/>
11
- <dataelements/>
12
- <endpoints>
13
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
14
- </endpoints>
15
- <dsl>parallel :wait =&gt; -1 do
16
- parallel_branch do ||
17
- loop pre_test{} do
18
- manipulate :a1, { :label =&gt; "Nudge" }, &lt;&lt;-END
19
- status.nudge!
20
- sleep 1
21
- END
22
- end
23
- end
24
- parallel_branch do ||
25
- loop pre_test{} do
26
- manipulate :a2, { :label =&gt; "" }, &lt;&lt;-END
27
- status.nudged?
28
- END
29
- end
30
- end
31
- end
32
- </dsl>
33
- <dslx>
34
- <description xmlns="http://cpee.org/ns/description/1.0">
35
- <parallel wait="-1">
36
- <parallel_branch pass="" local="">
37
- <loop mode="pre_test" condition="">
38
- <manipulate id="a1" label="Nudge">status.nudge!
39
- sleep 1</manipulate>
40
- </loop>
41
- </parallel_branch>
42
- <parallel_branch pass="" local="">
43
- <loop mode="pre_test" condition="">
44
- <manipulate id="a2" label="">status.nudged?</manipulate>
45
- </loop>
46
- </parallel_branch>
47
- </parallel>
48
- </description>
49
- </dslx>
50
- <status>
51
- <id>0</id>
52
- <message>undefined</message>
53
- </status>
54
- <description>
55
- <description xmlns="http://cpee.org/ns/description/1.0">
56
- <parallel wait="-1">
57
- <parallel_branch pass="" local="">
58
- <loop mode="pre_test" condition="">
59
- <manipulate id="a1" label="Nudge">status.nudge!
60
- sleep 1</manipulate>
61
- </loop>
62
- </parallel_branch>
63
- <parallel_branch pass="" local="">
64
- <loop mode="pre_test" condition="">
65
- <manipulate id="a2" label="">status.nudged?</manipulate>
66
- </loop>
67
- </parallel_branch>
68
- </parallel>
69
- </description>
70
- </description>
71
- <transformation>
72
- <description type="copy"/>
73
- <dataelements type="none"/>
74
- <endpoints type="none"/>
75
- </transformation>
76
- </properties>
@@ -1,97 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>e29cca50-9c2a-4c5c-a314-c1d5eec73bec</uuid>
4
- <info>Nudge</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- </attributes>
8
- <state>stopped</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions>
11
- <a1>at</a1>
12
- <a2>at</a2>
13
- </positions>
14
- <dataelements/>
15
- <endpoints>
16
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
17
- </endpoints>
18
- <dsl>parallel :wait =&gt; -1 do
19
- parallel_branch do ||
20
- loop pre_test{true} do
21
- manipulate :a1, { :label =&gt; "Nudge" }, &lt;&lt;-END
22
- p data
23
- p endpoints
24
- p status
25
- p global
26
- self.status.nudge!
27
- sleep 1
28
- END
29
- end
30
- end
31
- parallel_branch do ||
32
- loop pre_test{true} do
33
- manipulate :a2, { :label =&gt; "" }, &lt;&lt;-END
34
- self.status.nudged?
35
- p 'rrr'
36
- sleep 1
37
- END
38
- end
39
- end
40
- end
41
- </dsl>
42
- <dslx>
43
- <description xmlns="http://cpee.org/ns/description/1.0">
44
- <parallel wait="-1">
45
- <parallel_branch pass="" local="">
46
- <loop mode="pre_test" condition="true">
47
- <manipulate id="a1" label="Nudge">p data
48
- p endpoints
49
- p status
50
- p global
51
- self.status.nudge!
52
- sleep 1</manipulate>
53
- </loop>
54
- </parallel_branch>
55
- <parallel_branch pass="" local="">
56
- <loop mode="pre_test" condition="true">
57
- <manipulate id="a2" label="">self.status.nudged?
58
- p 'rrr'
59
- sleep 1</manipulate>
60
- </loop>
61
- </parallel_branch>
62
- </parallel>
63
- </description>
64
- </dslx>
65
- <status>
66
- <id>0</id>
67
- <message>undefined</message>
68
- </status>
69
- <description>
70
- <description xmlns="http://cpee.org/ns/description/1.0">
71
- <parallel wait="-1">
72
- <parallel_branch pass="" local="">
73
- <loop mode="pre_test" condition="true">
74
- <manipulate id="a1" label="Nudge">p data
75
- p endpoints
76
- p status
77
- p global
78
- self.status.nudge!
79
- sleep 1</manipulate>
80
- </loop>
81
- </parallel_branch>
82
- <parallel_branch pass="" local="">
83
- <loop mode="pre_test" condition="true">
84
- <manipulate id="a2" label="">self.status.nudged?
85
- p 'rrr'
86
- sleep 1</manipulate>
87
- </loop>
88
- </parallel_branch>
89
- </parallel>
90
- </description>
91
- </description>
92
- <transformation>
93
- <description type="copy"/>
94
- <dataelements type="none"/>
95
- <endpoints type="none"/>
96
- </transformation>
97
- </properties>
@@ -1,184 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>8d2fcb93-01b8-4993-8d6f-69caf1c677f4</uuid>
4
- <info>Spawn Machining</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- <customer>pilotfabrik</customer>
8
- <status>development</status>
9
- </attributes>
10
- <state>stopped</state>
11
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
12
- <positions/>
13
- <dataelements>
14
- <instances>[]</instances>
15
- </dataelements>
16
- <endpoints>
17
- <timeout>http://gruppe.wst.univie.ac.at/~mangler/services/timeout.php</timeout>
18
- <start_instance>https://centurio.work/flow/start/instance/</start_instance>
19
- <start_url>https://centurio.work/flow/start/url/</start_url>
20
- <hoert_die_signale>https://centurio.work/signals/signals/</hoert_die_signale>
21
- </endpoints>
22
- <dsl>parallel :wait =&gt; -1 do
23
- parallel_branch do
24
- call :a1, :hoert_die_signale, parameters: { :label =&gt; "", :method =&gt; :get, :arguments =&gt; nil }, update: &lt;&lt;-END
25
- data.instances &lt;&lt; result
26
- status.nudge!
27
- END
28
- end
29
- parallel_branch do
30
- loop pre_test{true} do
31
- choose :exclusive do
32
- alternative test{data.instances.empty?} do
33
- manipulate :a3, { :label =&gt; "Sleep" }, &lt;&lt;-END
34
- status.wait_until_nudged!
35
- END
36
- end
37
- otherwise do
38
- call :a2, :start_url, parameters: { :label =&gt; "", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :behavior, :value =&gt; "fork_running"), ⭐(:name =&gt; :url, :value =&gt; "https://centurio.work/customers/prime/Machining.xml"), ⭐(:name =&gt; :init, :value =&gt; "{ \"instance\": \"#{data.instances.last}\" }")] }, finalize: &lt;&lt;-END
39
- data.instances.pop
40
- END
41
- end
42
- end
43
- end
44
- end
45
- end
46
- </dsl>
47
- <dslx>
48
- <description xmlns="http://cpee.org/ns/description/1.0">
49
- <parallel wait="-1">
50
- <parallel_branch>
51
- <call id="a1" endpoint="hoert_die_signale">
52
- <parameters>
53
- <label/>
54
- <method>:get</method>
55
- <arguments/>
56
- </parameters>
57
- <finalize output="result"/>
58
- <update output="result">data.instances &lt;&lt; result
59
- status.nudge!</update>
60
- <_timing>
61
- <_timing_min/>
62
- <_timing_max/>
63
- <_timing_avg/>
64
- </_timing>
65
- <_notes>
66
- <_notes_general/>
67
- <_notes_output/>
68
- <_attachments/>
69
- </_notes>
70
- </call>
71
- </parallel_branch>
72
- <parallel_branch>
73
- <loop mode="pre_test" condition="true">
74
- <choose mode="exclusive">
75
- <alternative condition="data.instances.empty?">
76
- <manipulate id="a3" label="Sleep">status.wait_until_nudged!</manipulate>
77
- </alternative>
78
- <otherwise>
79
- <call id="a2" endpoint="start_url">
80
- <parameters>
81
- <label/>
82
- <method>:post</method>
83
- <arguments>
84
- <behavior>fork_running</behavior>
85
- <url>https://centurio.work/customers/prime/Machining.xml</url>
86
- <init>
87
- <instance>!data.instances.last</instance>
88
- </init>
89
- </arguments>
90
- </parameters>
91
- <finalize output="result">data.instances.pop</finalize>
92
- <update output="result"/>
93
- <_timing>
94
- <_timing_min/>
95
- <_timing_max/>
96
- <_timing_avg/>
97
- </_timing>
98
- <_notes>
99
- <_notes_general/>
100
- <_notes_output/>
101
- <_attachments/>
102
- </_notes>
103
- </call>
104
- </otherwise>
105
- </choose>
106
- </loop>
107
- </parallel_branch>
108
- </parallel>
109
- </description>
110
- </dslx>
111
- <status>
112
- <id>0</id>
113
- <message>undefined</message>
114
- </status>
115
- <description>
116
- <description xmlns="http://cpee.org/ns/description/1.0">
117
- <parallel wait="-1">
118
- <parallel_branch>
119
- <call id="a1" endpoint="hoert_die_signale">
120
- <parameters>
121
- <label/>
122
- <method>:get</method>
123
- <arguments/>
124
- </parameters>
125
- <finalize output="result"/>
126
- <update output="result">data.instances &lt;&lt; result
127
- status.nudge!</update>
128
- <_timing>
129
- <_timing_min/>
130
- <_timing_max/>
131
- <_timing_avg/>
132
- </_timing>
133
- <_notes>
134
- <_notes_general/>
135
- <_notes_output/>
136
- <_attachments/>
137
- </_notes>
138
- </call>
139
- </parallel_branch>
140
- <parallel_branch>
141
- <loop mode="pre_test" condition="true">
142
- <choose mode="exclusive">
143
- <alternative condition="data.instances.empty?">
144
- <manipulate id="a3" label="Sleep">status.wait_until_nudged!</manipulate>
145
- </alternative>
146
- <otherwise>
147
- <call id="a2" endpoint="start_url">
148
- <parameters>
149
- <label/>
150
- <method>:post</method>
151
- <arguments>
152
- <behavior>fork_running</behavior>
153
- <url>https://centurio.work/customers/prime/Machining.xml</url>
154
- <init>
155
- <instance>!data.instances.last</instance>
156
- </init>
157
- </arguments>
158
- </parameters>
159
- <finalize output="result">data.instances.pop</finalize>
160
- <update output="result"/>
161
- <_timing>
162
- <_timing_min/>
163
- <_timing_max/>
164
- <_timing_avg/>
165
- </_timing>
166
- <_notes>
167
- <_notes_general/>
168
- <_notes_output/>
169
- <_attachments/>
170
- </_notes>
171
- </call>
172
- </otherwise>
173
- </choose>
174
- </loop>
175
- </parallel_branch>
176
- </parallel>
177
- </description>
178
- </description>
179
- <transformation>
180
- <description type="copy"/>
181
- <dataelements type="none"/>
182
- <endpoints type="none"/>
183
- </transformation>
184
- </properties>
@@ -1,158 +0,0 @@
1
- <properties xmlns="http://riddl.org/ns/common-patterns/properties/1.0">
2
- <attributes>
3
- <uuid>28f360f6-779f-4f62-93fe-46986830e4b0</uuid>
4
- <info>Plain Instance</info>
5
- <modeltype>CPEE</modeltype>
6
- <theme>default</theme>
7
- </attributes>
8
- <state>stopped</state>
9
- <handlerwrapper>DefaultHandlerWrapper</handlerwrapper>
10
- <positions>
11
- <a1>after</a1>
12
- </positions>
13
- <dataelements>
14
- <persons>0</persons>
15
- <card>Visa_12345</card>
16
- <airline>FlyNiki</airline>
17
- <hotels>["Mariott","Rathaus","Mariott"]</hotels>
18
- <from>Vienna</from>
19
- <to>Prague</to>
20
- <costs>794.0</costs>
21
- </dataelements>
22
- <endpoints>
23
- <bookAir>http://gruppe.wst.univie.ac.at/~mangler/services/airline.php</bookAir>
24
- <bookHotel>http://gruppe.wst.univie.ac.at/~mangler/services/hotel.php</bookHotel>
25
- <approve>http://gruppe.wst.univie.ac.at/~mangler/services/approval.php</approve>
26
- </endpoints>
27
- <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
28
- data.airline = result.value('id')
29
- data.costs += result.value('costs').to_f
30
- status.update 1, 'Hotel'
31
- END
32
- parallel do
33
- loop pre_test{data.persons &gt; 0} do
34
- parallel_branch data.persons do |p|
35
- call :a2, :bookHotel, parameters: { :label =&gt; "Book Hotel", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :to, :value =&gt; "data.to")] }, finalize: &lt;&lt;-END
36
- data.hotels &lt;&lt; result.value('id')
37
- data.costs += result.value('costs').to_f
38
- END
39
- end
40
- manipulate :a3, &lt;&lt;-END
41
- data.persons -= 1
42
- END
43
- end
44
- end
45
- choose :inclusive do
46
- alternative test{data.costs &gt; 700} do
47
- call :a4, :approve, parameters: { :label =&gt; "Approve Hotel", :method =&gt; :post, :arguments =&gt; [⭐(:name =&gt; :costs, :value =&gt; "data.costs")] }
48
- end
49
- end
50
- </dsl>
51
- <dslx>
52
- <description xmlns="http://cpee.org/ns/description/1.0">
53
- <call id="a1" endpoint="bookAir">
54
- <parameters>
55
- <label>Book Airline</label>
56
- <method>:post</method>
57
- <arguments>
58
- <from>data.from</from>
59
- <to>data.to</to>
60
- <persons>data.persons</persons>
61
- </arguments>
62
- </parameters>
63
- <finalize output="result">data.airline = result.value('id')
64
- data.costs += result.value('costs').to_f
65
- status.update 1, 'Hotel'</finalize>
66
- </call>
67
- <parallel>
68
- <loop mode="pre_test" condition="data.persons &gt; 0">
69
- <parallel_branch pass="data.persons" local="p">
70
- <call id="a2" endpoint="bookHotel">
71
- <parameters>
72
- <label>Book Hotel</label>
73
- <method>:post</method>
74
- <arguments>
75
- <to>data.to</to>
76
- </arguments>
77
- </parameters>
78
- <finalize output="result">data.hotels &lt;&lt; result.value('id')
79
- data.costs += result.value('costs').to_f</finalize>
80
- </call>
81
- </parallel_branch>
82
- <manipulate id="a3">data.persons -= 1</manipulate>
83
- </loop>
84
- </parallel>
85
- <choose mode="inclusive">
86
- <alternative condition="data.costs &gt; 700">
87
- <call id="a4" endpoint="approve">
88
- <parameters>
89
- <label>Approve Hotel</label>
90
- <method>:post</method>
91
- <arguments>
92
- <costs>data.costs</costs>
93
- </arguments>
94
- </parameters>
95
- </call>
96
- </alternative>
97
- </choose>
98
- </description>
99
- </dslx>
100
- <status>
101
- <id>1</id>
102
- <message>Hotel</message>
103
- </status>
104
- <description>
105
- <description xmlns="http://cpee.org/ns/description/1.0">
106
- <call id="a1" endpoint="bookAir">
107
- <parameters>
108
- <label>Book Airline</label>
109
- <method>:post</method>
110
- <arguments>
111
- <from>data.from</from>
112
- <to>data.to</to>
113
- <persons>data.persons</persons>
114
- </arguments>
115
- </parameters>
116
- <finalize output="result">data.airline = result.value('id')
117
- data.costs += result.value('costs').to_f
118
- status.update 1, 'Hotel'</finalize>
119
- </call>
120
- <parallel>
121
- <loop mode="pre_test" condition="data.persons &gt; 0">
122
- <parallel_branch pass="data.persons" local="p">
123
- <call id="a2" endpoint="bookHotel">
124
- <parameters>
125
- <label>Book Hotel</label>
126
- <method>:post</method>
127
- <arguments>
128
- <to>data.to</to>
129
- </arguments>
130
- </parameters>
131
- <finalize output="result">data.hotels &lt;&lt; result.value('id')
132
- data.costs += result.value('costs').to_f</finalize>
133
- </call>
134
- </parallel_branch>
135
- <manipulate id="a3">data.persons -= 1</manipulate>
136
- </loop>
137
- </parallel>
138
- <choose mode="inclusive">
139
- <alternative condition="data.costs &gt; 700">
140
- <call id="a4" endpoint="approve">
141
- <parameters>
142
- <label>Approve Hotel</label>
143
- <method>:post</method>
144
- <arguments>
145
- <costs>data.costs</costs>
146
- </arguments>
147
- </parameters>
148
- </call>
149
- </alternative>
150
- </choose>
151
- </description>
152
- </description>
153
- <transformation>
154
- <description type="copy"/>
155
- <dataelements type="rest"/>
156
- <endpoints type="rest"/>
157
- </transformation>
158
- </properties>