cpee 1.5.17 → 1.5.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (246) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/css/model.css +24 -0
  3. data/cockpit/css/ui.css +25 -0
  4. data/cockpit/index.html +6 -6
  5. data/cockpit/js/details.js +70 -52
  6. data/cockpit/js/instance.js +61 -17
  7. data/cockpit/js/model.js +41 -0
  8. data/cockpit/js/ui.js +3 -0
  9. data/cockpit/model.html +191 -0
  10. data/cockpit/themes/compact/rngs/alternative.rng +1 -0
  11. data/cockpit/themes/compact/rngs/call.rng +111 -0
  12. data/cockpit/themes/compact/rngs/callmanipulate.rng +134 -0
  13. data/cockpit/themes/compact/rngs/choose.rng +1 -0
  14. data/cockpit/themes/compact/rngs/critical.rng +1 -0
  15. data/cockpit/themes/compact/rngs/escape.rng +1 -0
  16. data/cockpit/themes/compact/rngs/group.rng +1 -0
  17. data/cockpit/themes/compact/rngs/loop.rng +1 -0
  18. data/cockpit/themes/compact/rngs/manipulate.rng +1 -0
  19. data/cockpit/themes/compact/rngs/otherwise.rng +1 -0
  20. data/cockpit/themes/compact/rngs/parallel.rng +1 -0
  21. data/cockpit/themes/compact/rngs/parallel_branch.rng +1 -0
  22. data/cockpit/themes/compact/rngs/scripts.rng +24 -0
  23. data/cockpit/themes/compact/rngs/stop.rng +1 -0
  24. data/cockpit/themes/compact/rngs/terminate.rng +1 -0
  25. data/cockpit/themes/compact/symbols/alternative.svg +5 -0
  26. data/cockpit/themes/compact/symbols/arrow.svg +3 -0
  27. data/cockpit/themes/compact/symbols/call.svg +6 -0
  28. data/cockpit/themes/compact/symbols/callmanipulate.svg +8 -0
  29. data/cockpit/themes/compact/symbols/choose.svg +5 -0
  30. data/cockpit/themes/compact/symbols/choose_exclusive.svg +5 -0
  31. data/cockpit/themes/compact/symbols/choose_inclusive.svg +4 -0
  32. data/cockpit/themes/compact/symbols/complex.svg +8 -0
  33. data/cockpit/themes/compact/symbols/critical.svg +4 -0
  34. data/cockpit/themes/compact/symbols/end.svg +3 -0
  35. data/cockpit/themes/compact/symbols/escape.svg +5 -0
  36. data/cockpit/themes/compact/symbols/event_end.svg +3 -0
  37. data/cockpit/themes/compact/symbols/loop.svg +5 -0
  38. data/cockpit/themes/compact/symbols/manipulate.svg +4 -0
  39. data/cockpit/themes/compact/symbols/otherwise.svg +5 -0
  40. data/cockpit/themes/compact/symbols/parallel.svg +5 -0
  41. data/cockpit/themes/compact/symbols/parallel_branch.svg +5 -0
  42. data/cockpit/themes/compact/symbols/parallel_branch_compact.svg +4 -0
  43. data/cockpit/themes/compact/symbols/parallel_branch_event.svg +14 -0
  44. data/cockpit/themes/compact/symbols/parallel_branch_normal.svg +5 -0
  45. data/cockpit/themes/compact/symbols/scripts.svg +4 -0
  46. data/cockpit/themes/compact/symbols/start.svg +3 -0
  47. data/cockpit/themes/compact/symbols/stop.svg +5 -0
  48. data/cockpit/themes/compact/symbols/terminate.svg +4 -0
  49. data/cockpit/themes/compact/theme.js +30 -18
  50. data/cockpit/themes/default/rngs/callmanipulate.rng +5 -0
  51. data/cockpit/themes/default/theme.js +97 -57
  52. data/cockpit/themes/extended/rngs/alternative.rng +1 -0
  53. data/cockpit/themes/extended/rngs/call.rng +111 -0
  54. data/cockpit/themes/extended/rngs/callmanipulate.rng +134 -0
  55. data/cockpit/themes/extended/rngs/choose.rng +1 -0
  56. data/cockpit/themes/extended/rngs/critical.rng +1 -0
  57. data/cockpit/themes/extended/rngs/escape.rng +1 -0
  58. data/cockpit/themes/extended/rngs/group.rng +1 -0
  59. data/cockpit/themes/extended/rngs/loop.rng +1 -0
  60. data/cockpit/themes/extended/rngs/manipulate.rng +1 -0
  61. data/cockpit/themes/extended/rngs/otherwise.rng +1 -0
  62. data/cockpit/themes/extended/rngs/parallel.rng +1 -0
  63. data/cockpit/themes/extended/rngs/parallel_branch.rng +1 -0
  64. data/cockpit/themes/extended/rngs/scripts.rng +24 -0
  65. data/cockpit/themes/extended/rngs/stop.rng +1 -0
  66. data/cockpit/themes/extended/rngs/terminate.rng +1 -0
  67. data/cockpit/themes/extended/symbols/alternative.svg +5 -0
  68. data/cockpit/themes/extended/symbols/arrow.svg +3 -0
  69. data/cockpit/themes/extended/symbols/call.svg +6 -0
  70. data/cockpit/themes/extended/symbols/callmanipulate.svg +8 -0
  71. data/cockpit/themes/extended/symbols/choose.svg +5 -0
  72. data/cockpit/themes/extended/symbols/choose_exclusive.svg +5 -0
  73. data/cockpit/themes/extended/symbols/choose_inclusive.svg +4 -0
  74. data/cockpit/themes/extended/symbols/complex.svg +8 -0
  75. data/cockpit/themes/extended/symbols/critical.svg +4 -0
  76. data/cockpit/themes/extended/symbols/end.svg +3 -0
  77. data/cockpit/themes/extended/symbols/escape.svg +5 -0
  78. data/cockpit/themes/extended/symbols/event_end.svg +3 -0
  79. data/cockpit/themes/extended/symbols/loop.svg +5 -0
  80. data/cockpit/themes/extended/symbols/manipulate.svg +4 -0
  81. data/cockpit/themes/extended/symbols/otherwise.svg +5 -0
  82. data/cockpit/themes/extended/symbols/parallel.svg +5 -0
  83. data/cockpit/themes/extended/symbols/parallel_branch.svg +5 -0
  84. data/cockpit/themes/extended/symbols/parallel_branch_compact.svg +4 -0
  85. data/cockpit/themes/extended/symbols/parallel_branch_event.svg +14 -0
  86. data/cockpit/themes/extended/symbols/parallel_branch_normal.svg +5 -0
  87. data/cockpit/themes/extended/symbols/scripts.svg +4 -0
  88. data/cockpit/themes/extended/symbols/start.svg +3 -0
  89. data/cockpit/themes/extended/symbols/stop.svg +5 -0
  90. data/cockpit/themes/extended/symbols/terminate.svg +4 -0
  91. data/cockpit/themes/extended/theme.js +30 -18
  92. data/cockpit/themes/labels/rngs/alternative.rng +25 -0
  93. data/cockpit/themes/labels/rngs/call.rng +81 -0
  94. data/cockpit/themes/labels/rngs/callmanipulate.rng +101 -0
  95. data/cockpit/themes/labels/rngs/choose.rng +12 -0
  96. data/cockpit/themes/labels/rngs/critical.rng +5 -0
  97. data/cockpit/themes/labels/rngs/escape.rng +1 -0
  98. data/cockpit/themes/labels/rngs/finalize.rng +6 -0
  99. data/cockpit/themes/labels/rngs/group.rng +3 -0
  100. data/cockpit/themes/labels/rngs/loop.rng +22 -0
  101. data/cockpit/themes/labels/rngs/manipulate.rng +9 -0
  102. data/cockpit/themes/labels/rngs/otherwise.rng +22 -0
  103. data/cockpit/themes/labels/rngs/parallel.rng +13 -0
  104. data/cockpit/themes/labels/rngs/parallel_branch.rng +8 -0
  105. data/cockpit/themes/labels/rngs/stop.rng +5 -0
  106. data/cockpit/themes/labels/rngs/terminate.rng +1 -0
  107. data/cockpit/themes/labels/rngs/update.rng +6 -0
  108. data/cockpit/themes/labels/symbols/alternative.svg +5 -0
  109. data/cockpit/themes/labels/symbols/arrow.svg +3 -0
  110. data/cockpit/themes/labels/symbols/call.svg +6 -0
  111. data/cockpit/themes/labels/symbols/callmanipulate.svg +8 -0
  112. data/cockpit/themes/labels/symbols/choose.svg +5 -0
  113. data/cockpit/themes/labels/symbols/choose_exclusive.svg +5 -0
  114. data/cockpit/themes/labels/symbols/choose_inclusive.svg +4 -0
  115. data/cockpit/themes/labels/symbols/complex.svg +8 -0
  116. data/cockpit/themes/labels/symbols/critical.svg +4 -0
  117. data/cockpit/themes/labels/symbols/end.svg +3 -0
  118. data/cockpit/themes/labels/symbols/escape.svg +5 -0
  119. data/cockpit/themes/labels/symbols/event_end.svg +3 -0
  120. data/cockpit/themes/labels/symbols/loop.svg +5 -0
  121. data/cockpit/themes/labels/symbols/manipulate.svg +4 -0
  122. data/cockpit/themes/labels/symbols/otherwise.svg +5 -0
  123. data/cockpit/themes/labels/symbols/parallel.svg +5 -0
  124. data/cockpit/themes/labels/symbols/parallel_branch.svg +5 -0
  125. data/cockpit/themes/labels/symbols/parallel_branch_compact.svg +4 -0
  126. data/cockpit/themes/labels/symbols/parallel_branch_event.svg +14 -0
  127. data/cockpit/themes/labels/symbols/parallel_branch_normal.svg +5 -0
  128. data/cockpit/themes/labels/symbols/scripts.svg +4 -0
  129. data/cockpit/themes/labels/symbols/start.svg +3 -0
  130. data/cockpit/themes/labels/symbols/stop.svg +5 -0
  131. data/cockpit/themes/labels/symbols/terminate.svg +4 -0
  132. data/cockpit/themes/model/rngs/alternative.rng +1 -0
  133. data/cockpit/themes/model/rngs/call.rng +62 -0
  134. data/cockpit/themes/model/rngs/callmanipulate.rng +67 -0
  135. data/cockpit/themes/model/rngs/choose.rng +1 -0
  136. data/cockpit/themes/model/rngs/critical.rng +1 -0
  137. data/cockpit/themes/model/rngs/escape.rng +1 -0
  138. data/cockpit/themes/model/rngs/group.rng +1 -0
  139. data/cockpit/themes/model/rngs/loop.rng +1 -0
  140. data/cockpit/themes/model/rngs/manipulate.rng +1 -0
  141. data/cockpit/themes/model/rngs/otherwise.rng +1 -0
  142. data/cockpit/themes/model/rngs/parallel.rng +1 -0
  143. data/cockpit/themes/model/rngs/parallel_branch.rng +1 -0
  144. data/cockpit/themes/model/rngs/scripts.rng +8 -0
  145. data/cockpit/themes/model/rngs/stop.rng +1 -0
  146. data/cockpit/themes/model/rngs/terminate.rng +1 -0
  147. data/cockpit/themes/model/symbols/alternative.svg +5 -0
  148. data/cockpit/themes/model/symbols/arrow.svg +3 -0
  149. data/cockpit/themes/model/symbols/call.svg +6 -0
  150. data/cockpit/themes/model/symbols/callmanipulate.svg +8 -0
  151. data/cockpit/themes/model/symbols/choose.svg +5 -0
  152. data/cockpit/themes/model/symbols/choose_exclusive.svg +5 -0
  153. data/cockpit/themes/model/symbols/choose_inclusive.svg +4 -0
  154. data/cockpit/themes/model/symbols/complex.svg +8 -0
  155. data/cockpit/themes/model/symbols/critical.svg +4 -0
  156. data/cockpit/themes/model/symbols/end.svg +3 -0
  157. data/cockpit/themes/model/symbols/escape.svg +5 -0
  158. data/cockpit/themes/model/symbols/event_end.svg +3 -0
  159. data/cockpit/themes/model/symbols/loop.svg +5 -0
  160. data/cockpit/themes/model/symbols/manipulate.svg +4 -0
  161. data/cockpit/themes/model/symbols/otherwise.svg +5 -0
  162. data/cockpit/themes/model/symbols/parallel.svg +5 -0
  163. data/cockpit/themes/model/symbols/parallel_branch.svg +5 -0
  164. data/cockpit/themes/model/symbols/parallel_branch_compact.svg +4 -0
  165. data/cockpit/themes/model/symbols/parallel_branch_event.svg +14 -0
  166. data/cockpit/themes/model/symbols/parallel_branch_normal.svg +5 -0
  167. data/cockpit/themes/model/symbols/scripts.svg +4 -0
  168. data/cockpit/themes/model/symbols/start.svg +3 -0
  169. data/cockpit/themes/model/symbols/stop.svg +5 -0
  170. data/cockpit/themes/model/symbols/terminate.svg +4 -0
  171. data/cockpit/themes/model/theme.js +1267 -0
  172. data/cockpit/themes/packed/rngs/alternative.rng +1 -0
  173. data/cockpit/themes/packed/rngs/call.rng +111 -0
  174. data/cockpit/themes/packed/rngs/callmanipulate.rng +134 -0
  175. data/cockpit/themes/packed/rngs/choose.rng +1 -0
  176. data/cockpit/themes/packed/rngs/critical.rng +1 -0
  177. data/cockpit/themes/packed/rngs/escape.rng +1 -0
  178. data/cockpit/themes/packed/rngs/group.rng +1 -0
  179. data/cockpit/themes/packed/rngs/loop.rng +1 -0
  180. data/cockpit/themes/packed/rngs/manipulate.rng +1 -0
  181. data/cockpit/themes/packed/rngs/otherwise.rng +1 -0
  182. data/cockpit/themes/packed/rngs/parallel.rng +1 -0
  183. data/cockpit/themes/packed/rngs/parallel_branch.rng +1 -0
  184. data/cockpit/themes/packed/rngs/scripts.rng +24 -0
  185. data/cockpit/themes/packed/rngs/stop.rng +1 -0
  186. data/cockpit/themes/packed/rngs/terminate.rng +1 -0
  187. data/cockpit/themes/packed/symbols/alternative.svg +5 -0
  188. data/cockpit/themes/packed/symbols/arrow.svg +3 -0
  189. data/cockpit/themes/packed/symbols/call.svg +6 -0
  190. data/cockpit/themes/packed/symbols/callmanipulate.svg +8 -0
  191. data/cockpit/themes/packed/symbols/choose.svg +5 -0
  192. data/cockpit/themes/packed/symbols/choose_exclusive.svg +5 -0
  193. data/cockpit/themes/packed/symbols/choose_inclusive.svg +4 -0
  194. data/cockpit/themes/packed/symbols/complex.svg +8 -0
  195. data/cockpit/themes/packed/symbols/critical.svg +4 -0
  196. data/cockpit/themes/packed/symbols/end.svg +3 -0
  197. data/cockpit/themes/packed/symbols/escape.svg +5 -0
  198. data/cockpit/themes/packed/symbols/event_end.svg +3 -0
  199. data/cockpit/themes/packed/symbols/loop.svg +5 -0
  200. data/cockpit/themes/packed/symbols/manipulate.svg +4 -0
  201. data/cockpit/themes/packed/symbols/otherwise.svg +5 -0
  202. data/cockpit/themes/packed/symbols/parallel.svg +5 -0
  203. data/cockpit/themes/packed/symbols/parallel_branch.svg +5 -0
  204. data/cockpit/themes/packed/symbols/parallel_branch_compact.svg +4 -0
  205. data/cockpit/themes/packed/symbols/parallel_branch_event.svg +14 -0
  206. data/cockpit/themes/packed/symbols/parallel_branch_normal.svg +5 -0
  207. data/cockpit/themes/packed/symbols/scripts.svg +4 -0
  208. data/cockpit/themes/packed/symbols/start.svg +3 -0
  209. data/cockpit/themes/packed/symbols/stop.svg +5 -0
  210. data/cockpit/themes/packed/symbols/terminate.svg +4 -0
  211. data/cockpit/themes/packed/theme.js +30 -18
  212. data/cockpit/themes/preset/rngs/call.rng +0 -10
  213. data/cockpit/themes/preset/rngs/callmanipulate.rng +0 -13
  214. data/cockpit/themes/preset/symbols/alternative.svg +5 -0
  215. data/cockpit/themes/preset/symbols/arrow.svg +3 -0
  216. data/cockpit/themes/preset/symbols/call.svg +6 -0
  217. data/cockpit/themes/preset/symbols/callmanipulate.svg +8 -0
  218. data/cockpit/themes/preset/symbols/choose.svg +5 -0
  219. data/cockpit/themes/preset/symbols/choose_exclusive.svg +5 -0
  220. data/cockpit/themes/preset/symbols/choose_inclusive.svg +4 -0
  221. data/cockpit/themes/preset/symbols/complex.svg +8 -0
  222. data/cockpit/themes/preset/symbols/critical.svg +4 -0
  223. data/cockpit/themes/preset/symbols/end.svg +3 -0
  224. data/cockpit/themes/preset/symbols/escape.svg +5 -0
  225. data/cockpit/themes/preset/symbols/event_end.svg +3 -0
  226. data/cockpit/themes/preset/symbols/loop.svg +5 -0
  227. data/cockpit/themes/preset/symbols/manipulate.svg +4 -0
  228. data/cockpit/themes/preset/symbols/otherwise.svg +5 -0
  229. data/cockpit/themes/preset/symbols/parallel.svg +5 -0
  230. data/cockpit/themes/preset/symbols/parallel_branch.svg +5 -0
  231. data/cockpit/themes/preset/symbols/parallel_branch_compact.svg +4 -0
  232. data/cockpit/themes/preset/symbols/parallel_branch_event.svg +14 -0
  233. data/cockpit/themes/preset/symbols/parallel_branch_normal.svg +5 -0
  234. data/cockpit/themes/preset/symbols/scripts.svg +4 -0
  235. data/cockpit/themes/preset/symbols/start.svg +3 -0
  236. data/cockpit/themes/preset/symbols/stop.svg +5 -0
  237. data/cockpit/themes/preset/symbols/terminate.svg +4 -0
  238. data/cockpit/themes/preset/theme.js +30 -18
  239. data/cpee.gemspec +3 -2
  240. data/lib/cpee/implementation.rb +28 -0
  241. data/lib/engine.xml +4 -0
  242. data/log/azure.rb +1 -1
  243. data/server/handlerwrappers/default.rb +8 -4
  244. data/server/resources/transformation_dslx.xsl +5 -0
  245. metadata +247 -4
  246. data/server/server.pid +0 -1
@@ -77,6 +77,7 @@ module CPEE
77
77
  interface 'main' do
78
78
  run CPEE::Instances, controller if get '*'
79
79
  run CPEE::NewInstance, controller, opts if post 'instance-new'
80
+ run CPEE::NewXMLInstance, controller, opts if post 'instance-new-xml'
80
81
  on resource do |r|
81
82
  run CPEE::Info, controller if get
82
83
  run CPEE::DeleteInstance, controller, opts if delete
@@ -175,6 +176,33 @@ module CPEE
175
176
  Riddl::Parameter::Simple.new("id", id)
176
177
  end
177
178
  end #}}}
179
+ class NewXMLInstance < Riddl::Implementation #{{{
180
+ def response
181
+ controller = @a[0]
182
+ opts = @a[1]
183
+ xml = @p[0].value.read
184
+ id = controller.keys.sort.last.to_i
185
+
186
+
187
+ while true
188
+ id += 1
189
+ unless Dir.exists? opts[:instances] + "/#{id}"
190
+ Dir.mkdir(opts[:instances] + "/#{id}") rescue nil
191
+ break
192
+ end
193
+ end
194
+ File.write(File.join(opts[:instances].to_s,id.to_s,'properties.xml'),xml)
195
+
196
+ controller[id] = Controller.new(id,opts)
197
+ controller[id].state_change!
198
+
199
+ @headers << Riddl::Header.new("CPEE-INSTANCE", controller[id].instance)
200
+ @headers << Riddl::Header.new("CPEE-INSTANCE-URL", controller[id].instance_url)
201
+ @headers << Riddl::Header.new("CPEE-INSTANCE-UUID", controller[id].uuid)
202
+
203
+ Riddl::Parameter::Simple.new("id", id)
204
+ end
205
+ end #}}}
178
206
 
179
207
  class Info < Riddl::Implementation #{{{
180
208
  def response
@@ -30,6 +30,9 @@
30
30
  <message name="instance-new">
31
31
  <parameter name="info" type="string"/>
32
32
  </message>
33
+ <message name="instance-new-xml">
34
+ <parameter name="xml" mimetype="application/xml"/>
35
+ </message>
33
36
 
34
37
  <message name="instance-info">
35
38
  <parameter name="info" mimetype="text/xml" handler="http://riddl.org/ns/handlers/relaxng">
@@ -70,6 +73,7 @@
70
73
  <doc:documentation>a</doc:documentation>
71
74
  </get>
72
75
  <post in="instance-new" out="instance-id"/>
76
+ <post in="instance-new-xml" out="instance-id"/>
73
77
  <resource>
74
78
  <get in="*" out="instance-info"/>
75
79
  <delete in="*"/>
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/ruby
2
2
  require_relative 'azure_logger'
3
3
 
4
- Riddl::Server.new(File.join(__dir__,'/log.xml'), :host => 'localhost', :port => 9313) do
4
+ Riddl::Server.new(File.join(__dir__,'/log.xml'), :host => 'localhost', :port => 9398) do
5
5
  accessible_description true
6
6
  cross_site_xhr true
7
7
  interface 'events' do
@@ -65,6 +65,10 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
65
65
  params
66
66
  end #}}}
67
67
 
68
+ def additional
69
+ { :attributes => @controller.attributes_translated } rescue {}
70
+ end
71
+
68
72
  def proto_curl(parameters) #{{{
69
73
  params = []
70
74
  callback = Digest::MD5.hexdigest(Kernel::rand().to_s)
@@ -115,7 +119,7 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
115
119
  callback([ Riddl::Parameter::Complex.new('error','application/json',StringIO.new(JSON::generate({ 'status' => status, 'error' => c }))) ], headers)
116
120
  else
117
121
  if headers['CPEE_INSTANTIATION']
118
- @controller.notify("task/instantiation", :instance => @controller.instance, :label => @label, :instance_name => @controller.info, :instance_uuid => @controller.uuid, :activity => @handler_position, :endpoint => @handler_endpoint, :received => CPEE::ValueHelper.parse(headers['CPEE_INSTANTIATION']), :timestamp => Time.now.strftime("%Y-%m-%dT%H:%M:%S.%L%:z"), :attributes => @controller.attributes_translated)
122
+ @controller.notify("task/instantiation", :activity_uuid => @handler_activity_uuid, :instance => @controller.instance, :label => @label, :instance_name => @controller.info, :instance_uuid => @controller.uuid, :activity => @handler_position, :endpoint => @handler_endpoint, :received => CPEE::ValueHelper.parse(headers['CPEE_INSTANTIATION']), :timestamp => Time.now.strftime("%Y-%m-%dT%H:%M:%S.%L%:z"), :attributes => @controller.attributes_translated)
119
123
  end
120
124
  if headers['CPEE_CALLBACK'] && headers['CPEE_CALLBACK'] == 'true' && result.any?
121
125
  headers['CPEE_UPDATE'] = true
@@ -180,15 +184,15 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
180
184
  def inform_manipulate_change(status,changed_dataelements,changed_endpoints,dataelements,endpoints) # {{{
181
185
  unless status.nil?
182
186
  @controller.serialize_status!
183
- @controller.notify("status/change", :endpoint => @handler_endpoint, :label => @label, :instance_name => @controller.info, :instance => @controller.instance, :instance_uuid => @controller.uuid, :activity => @handler_position, :id => status.id, :message => status.message, :attributes => @controller.attributes_translated, :timestamp => Time.now.strftime("%Y-%m-%dT%H:%M:%S.%L%:z"))
187
+ @controller.notify("status/change", :activity_uuid => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :instance_name => @controller.info, :instance => @controller.instance, :instance_uuid => @controller.uuid, :activity => @handler_position, :id => status.id, :message => status.message, :attributes => @controller.attributes_translated, :timestamp => Time.now.strftime("%Y-%m-%dT%H:%M:%S.%L%:z"))
184
188
  end
185
189
  unless changed_dataelements.nil?
186
190
  @controller.serialize_dataelements!
187
- @controller.notify("dataelements/change", :endpoint => @handler_endpoint, :label => @label, :instance_name => @controller.info, :instance => @controller.instance, :instance_uuid => @controller.uuid, :activity => @handler_position, :changed => changed_dataelements, :values => dataelements, :attributes => @controller.attributes_translated, :timestamp => Time.now.strftime("%Y-%m-%dT%H:%M:%S.%L%:z"))
191
+ @controller.notify("dataelements/change", :activity_uuid => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :instance_name => @controller.info, :instance => @controller.instance, :instance_uuid => @controller.uuid, :activity => @handler_position, :changed => changed_dataelements, :values => dataelements, :attributes => @controller.attributes_translated, :timestamp => Time.now.strftime("%Y-%m-%dT%H:%M:%S.%L%:z"))
188
192
  end
189
193
  unless changed_endpoints.nil?
190
194
  @controller.serialize_endpoints!
191
- @controller.notify("endpoints/change", :endpoint => @handler_endpoint, :label => @label, :instance_name => @controller.info, :instance => @controller.instance, :instance_uuid => @controller.uuid, :activity => @handler_position, :changed => changed_endpoints, :values => endpoints, :attributes => @controller.attributes_translated, :timestamp => Time.now.strftime("%Y-%m-%dT%H:%M:%S.%L%:z"))
195
+ @controller.notify("endpoints/change", :activity_uuid => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :instance_name => @controller.info, :instance => @controller.instance, :instance_uuid => @controller.uuid, :activity => @handler_position, :changed => changed_endpoints, :values => endpoints, :attributes => @controller.attributes_translated, :timestamp => Time.now.strftime("%Y-%m-%dT%H:%M:%S.%L%:z"))
192
196
  end
193
197
  end # }}}
194
198
 
@@ -389,6 +389,11 @@
389
389
  <xsl:apply-templates select="d:*" mode="plainmulti"/>
390
390
  <xsl:text>]</xsl:text>
391
391
  </xsl:when>
392
+ <xsl:when test="count(*) &gt; 0 and name()='report'">
393
+ <xsl:text>[</xsl:text>
394
+ <xsl:apply-templates select="d:*" mode="plainmulti"/>
395
+ <xsl:text>]</xsl:text>
396
+ </xsl:when>
392
397
  <xsl:when test="count(*) &gt; 0 and not(name()='arguments')">
393
398
  <xsl:text>{</xsl:text>
394
399
  <xsl:apply-templates select="d:*" mode="parameter"/>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.17
4
+ version: 1.5.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: tools
13
13
  cert_chain: []
14
- date: 2019-12-06 00:00:00.000000000 Z
14
+ date: 2020-06-19 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: riddl
@@ -61,6 +61,26 @@ dependencies:
61
61
  - - "~>"
62
62
  - !ruby/object:Gem::Version
63
63
  version: '2'
64
+ - !ruby/object:Gem::Dependency
65
+ name: xml-smart
66
+ requirement: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: 0.4.3
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ type: :runtime
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: 0.4.3
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
64
84
  - !ruby/object:Gem::Dependency
65
85
  name: highline
66
86
  requirement: !ruby/object:Gem::Requirement
@@ -124,6 +144,7 @@ files:
124
144
  - cockpit/contrib/transformation1.xsl
125
145
  - cockpit/contrib/transformation2.xsl
126
146
  - cockpit/contrib/tree_example.svg
147
+ - cockpit/css/model.css
127
148
  - cockpit/css/track.css
128
149
  - cockpit/css/ui.css
129
150
  - cockpit/css/wfadaptor.css
@@ -131,10 +152,12 @@ files:
131
152
  - cockpit/index.html
132
153
  - cockpit/js/details.js
133
154
  - cockpit/js/instance.js
155
+ - cockpit/js/model.js
134
156
  - cockpit/js/parameters.js
135
157
  - cockpit/js/track.js
136
158
  - cockpit/js/ui.js
137
159
  - cockpit/js/wfadaptor.js
160
+ - cockpit/model.html
138
161
  - cockpit/rngs/attributes.rng
139
162
  - cockpit/rngs/dataelements.rng
140
163
  - cockpit/rngs/endpoints.rng
@@ -181,6 +204,45 @@ files:
181
204
  - cockpit/testsets/convert_preset.rb
182
205
  - cockpit/testsets/testsets.xml
183
206
  - cockpit/testsets/transformations.xml
207
+ - cockpit/themes/compact/rngs/alternative.rng
208
+ - cockpit/themes/compact/rngs/call.rng
209
+ - cockpit/themes/compact/rngs/callmanipulate.rng
210
+ - cockpit/themes/compact/rngs/choose.rng
211
+ - cockpit/themes/compact/rngs/critical.rng
212
+ - cockpit/themes/compact/rngs/escape.rng
213
+ - cockpit/themes/compact/rngs/group.rng
214
+ - cockpit/themes/compact/rngs/loop.rng
215
+ - cockpit/themes/compact/rngs/manipulate.rng
216
+ - cockpit/themes/compact/rngs/otherwise.rng
217
+ - cockpit/themes/compact/rngs/parallel.rng
218
+ - cockpit/themes/compact/rngs/parallel_branch.rng
219
+ - cockpit/themes/compact/rngs/scripts.rng
220
+ - cockpit/themes/compact/rngs/stop.rng
221
+ - cockpit/themes/compact/rngs/terminate.rng
222
+ - cockpit/themes/compact/symbols/alternative.svg
223
+ - cockpit/themes/compact/symbols/arrow.svg
224
+ - cockpit/themes/compact/symbols/call.svg
225
+ - cockpit/themes/compact/symbols/callmanipulate.svg
226
+ - cockpit/themes/compact/symbols/choose.svg
227
+ - cockpit/themes/compact/symbols/choose_exclusive.svg
228
+ - cockpit/themes/compact/symbols/choose_inclusive.svg
229
+ - cockpit/themes/compact/symbols/complex.svg
230
+ - cockpit/themes/compact/symbols/critical.svg
231
+ - cockpit/themes/compact/symbols/end.svg
232
+ - cockpit/themes/compact/symbols/escape.svg
233
+ - cockpit/themes/compact/symbols/event_end.svg
234
+ - cockpit/themes/compact/symbols/loop.svg
235
+ - cockpit/themes/compact/symbols/manipulate.svg
236
+ - cockpit/themes/compact/symbols/otherwise.svg
237
+ - cockpit/themes/compact/symbols/parallel.svg
238
+ - cockpit/themes/compact/symbols/parallel_branch.svg
239
+ - cockpit/themes/compact/symbols/parallel_branch_compact.svg
240
+ - cockpit/themes/compact/symbols/parallel_branch_event.svg
241
+ - cockpit/themes/compact/symbols/parallel_branch_normal.svg
242
+ - cockpit/themes/compact/symbols/scripts.svg
243
+ - cockpit/themes/compact/symbols/start.svg
244
+ - cockpit/themes/compact/symbols/stop.svg
245
+ - cockpit/themes/compact/symbols/terminate.svg
184
246
  - cockpit/themes/compact/theme.js
185
247
  - cockpit/themes/default/rngs/alternative.rng
186
248
  - cockpit/themes/default/rngs/call.rng
@@ -223,7 +285,165 @@ files:
223
285
  - cockpit/themes/default/symbols/stop.svg
224
286
  - cockpit/themes/default/symbols/terminate.svg
225
287
  - cockpit/themes/default/theme.js
288
+ - cockpit/themes/extended/rngs/alternative.rng
289
+ - cockpit/themes/extended/rngs/call.rng
290
+ - cockpit/themes/extended/rngs/callmanipulate.rng
291
+ - cockpit/themes/extended/rngs/choose.rng
292
+ - cockpit/themes/extended/rngs/critical.rng
293
+ - cockpit/themes/extended/rngs/escape.rng
294
+ - cockpit/themes/extended/rngs/group.rng
295
+ - cockpit/themes/extended/rngs/loop.rng
296
+ - cockpit/themes/extended/rngs/manipulate.rng
297
+ - cockpit/themes/extended/rngs/otherwise.rng
298
+ - cockpit/themes/extended/rngs/parallel.rng
299
+ - cockpit/themes/extended/rngs/parallel_branch.rng
300
+ - cockpit/themes/extended/rngs/scripts.rng
301
+ - cockpit/themes/extended/rngs/stop.rng
302
+ - cockpit/themes/extended/rngs/terminate.rng
303
+ - cockpit/themes/extended/symbols/alternative.svg
304
+ - cockpit/themes/extended/symbols/arrow.svg
305
+ - cockpit/themes/extended/symbols/call.svg
306
+ - cockpit/themes/extended/symbols/callmanipulate.svg
307
+ - cockpit/themes/extended/symbols/choose.svg
308
+ - cockpit/themes/extended/symbols/choose_exclusive.svg
309
+ - cockpit/themes/extended/symbols/choose_inclusive.svg
310
+ - cockpit/themes/extended/symbols/complex.svg
311
+ - cockpit/themes/extended/symbols/critical.svg
312
+ - cockpit/themes/extended/symbols/end.svg
313
+ - cockpit/themes/extended/symbols/escape.svg
314
+ - cockpit/themes/extended/symbols/event_end.svg
315
+ - cockpit/themes/extended/symbols/loop.svg
316
+ - cockpit/themes/extended/symbols/manipulate.svg
317
+ - cockpit/themes/extended/symbols/otherwise.svg
318
+ - cockpit/themes/extended/symbols/parallel.svg
319
+ - cockpit/themes/extended/symbols/parallel_branch.svg
320
+ - cockpit/themes/extended/symbols/parallel_branch_compact.svg
321
+ - cockpit/themes/extended/symbols/parallel_branch_event.svg
322
+ - cockpit/themes/extended/symbols/parallel_branch_normal.svg
323
+ - cockpit/themes/extended/symbols/scripts.svg
324
+ - cockpit/themes/extended/symbols/start.svg
325
+ - cockpit/themes/extended/symbols/stop.svg
326
+ - cockpit/themes/extended/symbols/terminate.svg
226
327
  - cockpit/themes/extended/theme.js
328
+ - cockpit/themes/labels/rngs/alternative.rng
329
+ - cockpit/themes/labels/rngs/call.rng
330
+ - cockpit/themes/labels/rngs/callmanipulate.rng
331
+ - cockpit/themes/labels/rngs/choose.rng
332
+ - cockpit/themes/labels/rngs/critical.rng
333
+ - cockpit/themes/labels/rngs/escape.rng
334
+ - cockpit/themes/labels/rngs/finalize.rng
335
+ - cockpit/themes/labels/rngs/group.rng
336
+ - cockpit/themes/labels/rngs/loop.rng
337
+ - cockpit/themes/labels/rngs/manipulate.rng
338
+ - cockpit/themes/labels/rngs/otherwise.rng
339
+ - cockpit/themes/labels/rngs/parallel.rng
340
+ - cockpit/themes/labels/rngs/parallel_branch.rng
341
+ - cockpit/themes/labels/rngs/stop.rng
342
+ - cockpit/themes/labels/rngs/terminate.rng
343
+ - cockpit/themes/labels/rngs/update.rng
344
+ - cockpit/themes/labels/symbols/alternative.svg
345
+ - cockpit/themes/labels/symbols/arrow.svg
346
+ - cockpit/themes/labels/symbols/call.svg
347
+ - cockpit/themes/labels/symbols/callmanipulate.svg
348
+ - cockpit/themes/labels/symbols/choose.svg
349
+ - cockpit/themes/labels/symbols/choose_exclusive.svg
350
+ - cockpit/themes/labels/symbols/choose_inclusive.svg
351
+ - cockpit/themes/labels/symbols/complex.svg
352
+ - cockpit/themes/labels/symbols/critical.svg
353
+ - cockpit/themes/labels/symbols/end.svg
354
+ - cockpit/themes/labels/symbols/escape.svg
355
+ - cockpit/themes/labels/symbols/event_end.svg
356
+ - cockpit/themes/labels/symbols/loop.svg
357
+ - cockpit/themes/labels/symbols/manipulate.svg
358
+ - cockpit/themes/labels/symbols/otherwise.svg
359
+ - cockpit/themes/labels/symbols/parallel.svg
360
+ - cockpit/themes/labels/symbols/parallel_branch.svg
361
+ - cockpit/themes/labels/symbols/parallel_branch_compact.svg
362
+ - cockpit/themes/labels/symbols/parallel_branch_event.svg
363
+ - cockpit/themes/labels/symbols/parallel_branch_normal.svg
364
+ - cockpit/themes/labels/symbols/scripts.svg
365
+ - cockpit/themes/labels/symbols/start.svg
366
+ - cockpit/themes/labels/symbols/stop.svg
367
+ - cockpit/themes/labels/symbols/terminate.svg
368
+ - cockpit/themes/model/rngs/alternative.rng
369
+ - cockpit/themes/model/rngs/call.rng
370
+ - cockpit/themes/model/rngs/callmanipulate.rng
371
+ - cockpit/themes/model/rngs/choose.rng
372
+ - cockpit/themes/model/rngs/critical.rng
373
+ - cockpit/themes/model/rngs/escape.rng
374
+ - cockpit/themes/model/rngs/group.rng
375
+ - cockpit/themes/model/rngs/loop.rng
376
+ - cockpit/themes/model/rngs/manipulate.rng
377
+ - cockpit/themes/model/rngs/otherwise.rng
378
+ - cockpit/themes/model/rngs/parallel.rng
379
+ - cockpit/themes/model/rngs/parallel_branch.rng
380
+ - cockpit/themes/model/rngs/scripts.rng
381
+ - cockpit/themes/model/rngs/stop.rng
382
+ - cockpit/themes/model/rngs/terminate.rng
383
+ - cockpit/themes/model/symbols/alternative.svg
384
+ - cockpit/themes/model/symbols/arrow.svg
385
+ - cockpit/themes/model/symbols/call.svg
386
+ - cockpit/themes/model/symbols/callmanipulate.svg
387
+ - cockpit/themes/model/symbols/choose.svg
388
+ - cockpit/themes/model/symbols/choose_exclusive.svg
389
+ - cockpit/themes/model/symbols/choose_inclusive.svg
390
+ - cockpit/themes/model/symbols/complex.svg
391
+ - cockpit/themes/model/symbols/critical.svg
392
+ - cockpit/themes/model/symbols/end.svg
393
+ - cockpit/themes/model/symbols/escape.svg
394
+ - cockpit/themes/model/symbols/event_end.svg
395
+ - cockpit/themes/model/symbols/loop.svg
396
+ - cockpit/themes/model/symbols/manipulate.svg
397
+ - cockpit/themes/model/symbols/otherwise.svg
398
+ - cockpit/themes/model/symbols/parallel.svg
399
+ - cockpit/themes/model/symbols/parallel_branch.svg
400
+ - cockpit/themes/model/symbols/parallel_branch_compact.svg
401
+ - cockpit/themes/model/symbols/parallel_branch_event.svg
402
+ - cockpit/themes/model/symbols/parallel_branch_normal.svg
403
+ - cockpit/themes/model/symbols/scripts.svg
404
+ - cockpit/themes/model/symbols/start.svg
405
+ - cockpit/themes/model/symbols/stop.svg
406
+ - cockpit/themes/model/symbols/terminate.svg
407
+ - cockpit/themes/model/theme.js
408
+ - cockpit/themes/packed/rngs/alternative.rng
409
+ - cockpit/themes/packed/rngs/call.rng
410
+ - cockpit/themes/packed/rngs/callmanipulate.rng
411
+ - cockpit/themes/packed/rngs/choose.rng
412
+ - cockpit/themes/packed/rngs/critical.rng
413
+ - cockpit/themes/packed/rngs/escape.rng
414
+ - cockpit/themes/packed/rngs/group.rng
415
+ - cockpit/themes/packed/rngs/loop.rng
416
+ - cockpit/themes/packed/rngs/manipulate.rng
417
+ - cockpit/themes/packed/rngs/otherwise.rng
418
+ - cockpit/themes/packed/rngs/parallel.rng
419
+ - cockpit/themes/packed/rngs/parallel_branch.rng
420
+ - cockpit/themes/packed/rngs/scripts.rng
421
+ - cockpit/themes/packed/rngs/stop.rng
422
+ - cockpit/themes/packed/rngs/terminate.rng
423
+ - cockpit/themes/packed/symbols/alternative.svg
424
+ - cockpit/themes/packed/symbols/arrow.svg
425
+ - cockpit/themes/packed/symbols/call.svg
426
+ - cockpit/themes/packed/symbols/callmanipulate.svg
427
+ - cockpit/themes/packed/symbols/choose.svg
428
+ - cockpit/themes/packed/symbols/choose_exclusive.svg
429
+ - cockpit/themes/packed/symbols/choose_inclusive.svg
430
+ - cockpit/themes/packed/symbols/complex.svg
431
+ - cockpit/themes/packed/symbols/critical.svg
432
+ - cockpit/themes/packed/symbols/end.svg
433
+ - cockpit/themes/packed/symbols/escape.svg
434
+ - cockpit/themes/packed/symbols/event_end.svg
435
+ - cockpit/themes/packed/symbols/loop.svg
436
+ - cockpit/themes/packed/symbols/manipulate.svg
437
+ - cockpit/themes/packed/symbols/otherwise.svg
438
+ - cockpit/themes/packed/symbols/parallel.svg
439
+ - cockpit/themes/packed/symbols/parallel_branch.svg
440
+ - cockpit/themes/packed/symbols/parallel_branch_compact.svg
441
+ - cockpit/themes/packed/symbols/parallel_branch_event.svg
442
+ - cockpit/themes/packed/symbols/parallel_branch_normal.svg
443
+ - cockpit/themes/packed/symbols/scripts.svg
444
+ - cockpit/themes/packed/symbols/start.svg
445
+ - cockpit/themes/packed/symbols/stop.svg
446
+ - cockpit/themes/packed/symbols/terminate.svg
227
447
  - cockpit/themes/packed/theme.js
228
448
  - cockpit/themes/preset/rngs/alternative.rng
229
449
  - cockpit/themes/preset/rngs/call.rng
@@ -240,6 +460,30 @@ files:
240
460
  - cockpit/themes/preset/rngs/scripts.rng
241
461
  - cockpit/themes/preset/rngs/stop.rng
242
462
  - cockpit/themes/preset/rngs/terminate.rng
463
+ - cockpit/themes/preset/symbols/alternative.svg
464
+ - cockpit/themes/preset/symbols/arrow.svg
465
+ - cockpit/themes/preset/symbols/call.svg
466
+ - cockpit/themes/preset/symbols/callmanipulate.svg
467
+ - cockpit/themes/preset/symbols/choose.svg
468
+ - cockpit/themes/preset/symbols/choose_exclusive.svg
469
+ - cockpit/themes/preset/symbols/choose_inclusive.svg
470
+ - cockpit/themes/preset/symbols/complex.svg
471
+ - cockpit/themes/preset/symbols/critical.svg
472
+ - cockpit/themes/preset/symbols/end.svg
473
+ - cockpit/themes/preset/symbols/escape.svg
474
+ - cockpit/themes/preset/symbols/event_end.svg
475
+ - cockpit/themes/preset/symbols/loop.svg
476
+ - cockpit/themes/preset/symbols/manipulate.svg
477
+ - cockpit/themes/preset/symbols/otherwise.svg
478
+ - cockpit/themes/preset/symbols/parallel.svg
479
+ - cockpit/themes/preset/symbols/parallel_branch.svg
480
+ - cockpit/themes/preset/symbols/parallel_branch_compact.svg
481
+ - cockpit/themes/preset/symbols/parallel_branch_event.svg
482
+ - cockpit/themes/preset/symbols/parallel_branch_normal.svg
483
+ - cockpit/themes/preset/symbols/scripts.svg
484
+ - cockpit/themes/preset/symbols/start.svg
485
+ - cockpit/themes/preset/symbols/stop.svg
486
+ - cockpit/themes/preset/symbols/terminate.svg
243
487
  - cockpit/themes/preset/theme.js
244
488
  - cockpit/track.html
245
489
  - contrib/Screenshot at 2011-09-28 02:38:11.png
@@ -310,7 +554,6 @@ files:
310
554
  - server/resources/topics.xml
311
555
  - server/resources/transformation.xml
312
556
  - server/resources/transformation_dslx.xsl
313
- - server/server.pid
314
557
  - server/server.rb
315
558
  - test/callback.rb
316
559
  - tools/cpee
@@ -339,7 +582,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
582
  - !ruby/object:Gem::Version
340
583
  version: '0'
341
584
  requirements: []
342
- rubygems_version: 3.0.3
585
+ rubygems_version: 3.1.2
343
586
  signing_key:
344
587
  specification_version: 4
345
588
  summary: Preliminary release of cloud process execution engine (cpee). If you just
@@ -1 +0,0 @@
1
- 247566