cpee 1.5.20 → 1.5.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/cockpit/index.html +2 -2
  3. data/cockpit/js/instance.js +6 -6
  4. data/cockpit/rngs/attributes.rng +2 -2
  5. data/cockpit/rngs/dataelements.rng +2 -2
  6. data/cockpit/rngs/endpoints.rng +2 -2
  7. data/cockpit/{testsets → templates.legacy}/Async.xml +0 -0
  8. data/cockpit/{testsets → templates.legacy}/BCO.xml +0 -0
  9. data/cockpit/{testsets → templates.legacy}/BCS.xml +0 -0
  10. data/cockpit/{testsets → templates.legacy}/Centurio.xml +0 -0
  11. data/cockpit/{testsets → templates.legacy}/Concurrent.xml +0 -0
  12. data/cockpit/testsets/Coopis Testset.xml b/data/cockpit/templates.legacy/Coopis → Testset.xml +0 -0
  13. data/cockpit/testsets/Endpoints and Data Manipulation.xml b/data/cockpit/templates.legacy/Endpoints and Data → Manipulation.xml +0 -0
  14. data/cockpit/testsets/ICSOC Testset.xml b/data/cockpit/templates.legacy/ICSOC → Testset.xml +0 -0
  15. data/cockpit/{testsets → templates.legacy}/Infinity.xml +0 -0
  16. data/cockpit/testsets/Lego Boxer.xml b/data/cockpit/templates.legacy/Lego → Boxer.xml +0 -0
  17. data/cockpit/testsets/Lego Conveyor.xml b/data/cockpit/templates.legacy/Lego → Conveyor.xml +0 -0
  18. data/cockpit/testsets/Lego Crane.xml b/data/cockpit/templates.legacy/Lego → Crane.xml +0 -0
  19. data/cockpit/testsets/Lego Ejector.xml b/data/cockpit/templates.legacy/Lego → Ejector.xml +0 -0
  20. data/cockpit/testsets/Lego Full.xml b/data/cockpit/templates.legacy/Lego → Full.xml +0 -0
  21. data/cockpit/testsets/Lego Liddy.xml b/data/cockpit/templates.legacy/Lego → Liddy.xml +0 -0
  22. data/cockpit/testsets/Lego Plate.xml b/data/cockpit/templates.legacy/Lego → Plate.xml +0 -0
  23. data/cockpit/testsets/Lego Transporter.xml b/data/cockpit/templates.legacy/Lego → Transporter.xml +0 -0
  24. data/cockpit/{testsets → templates.legacy}/Lego_Part_1.xml +0 -0
  25. data/cockpit/{testsets → templates.legacy}/LgLinear.xml +0 -0
  26. data/cockpit/{testsets → templates.legacy}/Linear.xml +0 -0
  27. data/cockpit/{testsets → templates.legacy}/Log.xml +0 -0
  28. data/cockpit/testsets/Mangler 1.xml b/data/cockpit/templates.legacy/Mangler → 1.xml +0 -0
  29. data/cockpit/testsets/Mangler 2.xml b/data/cockpit/templates.legacy/Mangler → 2.xml +0 -0
  30. data/cockpit/testsets/Manuel Labels.xml b/data/cockpit/templates.legacy/Manuel → Labels.xml +0 -0
  31. data/cockpit/{testsets → templates.legacy}/Promise.xml +0 -0
  32. data/cockpit/testsets/SOPROMO Test Sonification.xml b/data/cockpit/templates.legacy/SOPROMO Test → Sonification.xml +0 -0
  33. data/cockpit/testsets/Syncing P34 1.xml b/data/cockpit/templates.legacy/Syncing P34 → 1.xml +0 -0
  34. data/cockpit/testsets/Syncing P34 2.xml b/data/cockpit/templates.legacy/Syncing P34 → 2.xml +0 -0
  35. data/cockpit/testsets/Syncing P34 3.xml b/data/cockpit/templates.legacy/Syncing P34 → 3.xml +0 -0
  36. data/cockpit/testsets/Syncing P34.xml b/data/cockpit/templates.legacy/Syncing → P34.xml +0 -0
  37. data/cockpit/testsets/TEST - Bad Loop.xml b/data/cockpit/templates.legacy/TEST - Bad → Loop.xml +0 -0
  38. data/cockpit/testsets/TEST - Wrong Positions.xml b/data/cockpit/templates.legacy/TEST - Wrong → Positions.xml +0 -0
  39. data/cockpit/{testsets → templates.legacy}/Update.xml +0 -0
  40. data/cockpit/testsets/Worklist Parallel.xml b/data/cockpit/templates.legacy/Worklist → Parallel.xml +0 -0
  41. data/cockpit/testsets/Worklist Test CPEE.xml b/data/cockpit/templates.legacy/Worklist Test → CPEE.xml +0 -0
  42. data/cockpit/testsets/Worklist Test.xml b/data/cockpit/templates.legacy/Worklist → Test.xml +0 -0
  43. data/cockpit/testsets/Worklist Test2.xml b/data/cockpit/templates.legacy/Worklist → Test2.xml +0 -0
  44. data/cockpit/{testsets → templates.legacy}/convert_preset.rb +0 -0
  45. data/cockpit/{testsets → templates.legacy}/testsets.xml +0 -0
  46. data/cockpit/{testsets → templates.legacy}/transformations.xml +0 -0
  47. data/cockpit/templates/BPM 2020 Manual Adjust.xml +235 -0
  48. data/cockpit/templates/BPM 2020 Solution Baseline.xml +250 -0
  49. data/cockpit/templates/BPM 2020 Solution NN.xml +243 -0
  50. data/cockpit/templates/BPM 2020 Solution View.xml +200 -0
  51. data/cockpit/templates/BPM 2020.xml +15 -0
  52. data/cockpit/templates/Coopis 2010.xml +76 -0
  53. data/cockpit/templates/IUPC arXiv:1104.3609 P34 1.xml +80 -0
  54. data/cockpit/templates/IUPC arXiv:1104.3609 P34 2.xml +80 -0
  55. data/cockpit/templates/IUPC arXiv:1104.3609 P34 3.xml +80 -0
  56. data/cockpit/{testsets/Take_5.xml → templates/Worklist.xml} +15 -21
  57. data/cockpit/templates/convert_preset.rb +32 -0
  58. data/cockpit/templates/testsets.xml +11 -0
  59. data/cockpit/templates/transformations.xml +4 -0
  60. data/cockpit/themes/compact/rngs/call.rng +6 -0
  61. data/cockpit/themes/compact/rngs/callmanipulate.rng +6 -0
  62. data/cockpit/themes/compact/theme.js +1 -1
  63. data/cockpit/themes/default/rngs/callmanipulate.rng +4 -4
  64. data/cockpit/themes/default/theme.js +1 -1
  65. data/cockpit/themes/extended/rngs/call.rng +6 -0
  66. data/cockpit/themes/extended/rngs/callmanipulate.rng +6 -0
  67. data/cockpit/themes/extended/theme.js +7 -22
  68. data/cockpit/themes/labels/rngs/callmanipulate.rng +4 -4
  69. data/cockpit/themes/model/theme.js +1 -1
  70. data/cockpit/themes/packed/rngs/call.rng +6 -0
  71. data/cockpit/themes/packed/rngs/callmanipulate.rng +6 -0
  72. data/cockpit/themes/packed/theme.js +1 -1
  73. data/cockpit/themes/preset/rngs/call.rng +6 -0
  74. data/cockpit/themes/preset/rngs/callmanipulate.rng +6 -0
  75. data/cockpit/themes/preset/theme.js +1 -1
  76. data/cpee.gemspec +2 -1
  77. data/lib/cpee/controller.rb +1 -1
  78. data/lib/cpee/instantiation.rb +2 -1
  79. data/log/sic.rb +1 -0
  80. data/server/handlerwrappers/default.rb +5 -1
  81. data/server/resources/transformation_dslx.xsl +3 -0
  82. data/tools/instantiation/instantiation +1 -0
  83. data/tools/server/server.rb +1 -0
  84. metadata +75 -51
  85. data/cockpit/test.html +0 -40
  86. data/cockpit/testsets/Subprocess.xml +0 -56
  87. data/server/resources/notifications/logging/consumer-secret +0 -1
  88. data/server/resources/notifications/logging/producer-secret +0 -1
  89. data/server/resources/notifications/logging/subscription.xml +0 -19
  90. data/server/resources/test1.xml +0 -58
  91. data/server/resources/test2.xml +0 -60
  92. data/server/resources/test3.xml +0 -217
@@ -65,7 +65,7 @@ function WFAdaptorManifestation(adaptor) {
65
65
  var schema = save['endpoints_cache'][$(node).attr('endpoint')].schema.documentElement;
66
66
  $(rng).find(' > element[name="parameters"] > element[name="arguments"]').replaceWith($(schema).clone());
67
67
  }
68
- if (save['endpoints_list'][$(node).attr('endpoint')] && !save['endpoints_list'][$(node).attr('endpoint')].startsWith('http')) {
68
+ if (save['endpoints_list'][$(node).attr('endpoint')] && (!save['endpoints_list'][$(node).attr('endpoint')].startsWith('http') || save['endpoints_list'][$(node).attr('endpoint')].match(/^https?-/))) {
69
69
  $(rng).find(' > element[name="parameters"] > element[name="method"]').remove();
70
70
  }
71
71
  save['details'] = new RelaxNGui(rng,tab,self.adaptor.description.context_eval,true);
@@ -51,10 +51,10 @@
51
51
  </element>
52
52
  </zeroOrMore>
53
53
  </element>
54
- </element>
55
- <element name="report" rngui:header="Reporting Annotation" rngui:fold="closed">
56
- <element name="url" rngui:label='HTML Snippet'>
57
- <data type="string" rngui:label="url to report snippet"/>
54
+ <element name="report" rngui:header="Reporting Annotation" rngui:fold="closed">
55
+ <element name="url" rngui:label='HTML Snippet'>
56
+ <data type="string" rngui:label="url to report snippet"/>
57
+ </element>
58
58
  </element>
59
59
  </element>
60
60
  <element name="finalize" rngui:header="Finalize" rngui:label="Code">
@@ -65,7 +65,7 @@ function WFAdaptorManifestation(adaptor) {
65
65
  var schema = save['endpoints_cache'][$(node).attr('endpoint')].schema.documentElement;
66
66
  $(rng).find(' > element[name="parameters"] > element[name="arguments"]').replaceWith($(schema).clone());
67
67
  }
68
- if (save['endpoints_list'][$(node).attr('endpoint')] && !save['endpoints_list'][$(node).attr('endpoint')].startsWith('http')) {
68
+ if (save['endpoints_list'][$(node).attr('endpoint')] && (!save['endpoints_list'][$(node).attr('endpoint')].startsWith('http') || save['endpoints_list'][$(node).attr('endpoint')].match(/^https?-/))) {
69
69
  $(rng).find(' > element[name="parameters"] > element[name="method"]').remove();
70
70
  }
71
71
  save['details'] = new RelaxNGui(rng,tab,self.adaptor.description.context_eval,true);
@@ -92,6 +92,12 @@
92
92
  </element>
93
93
  <element name="annotations" rngui:header="Annotations">
94
94
  <element name="_timing" rngui:header="Timing" rngui:fold="closed">
95
+ <element name="_timing_wait" rngui:label='ω - Wait'>
96
+ <data type='float' rngui:label='[0,1]' rngui:default='0.5'/>
97
+ </element>
98
+ <element name="_timing_threshold" rngui:label='κ - Threshold'>
99
+ <data type='float' rngui:label='[0,3,n]' rngui:default='3'/>
100
+ </element>
95
101
  <element name="_timing_min" rngui:label='Min in min'>
96
102
  <data type='float' rngui:label='Minutes'/>
97
103
  </element>
@@ -115,6 +115,12 @@
115
115
  </element>
116
116
  <element name="annotations" rngui:header="Annotations">
117
117
  <element name="_timing" rngui:header="Timing" rngui:fold="closed">
118
+ <element name="_timing_wait" rngui:label='ω - Wait'>
119
+ <data type='float' rngui:label='[0,1]'/>
120
+ </element>
121
+ <element name="_timing_threshold" rngui:label='κ - Threshold'>
122
+ <data type='float' rngui:label='[0,3,n]'/>
123
+ </element>
118
124
  <element name="_timing_min" rngui:label='Min in min'>
119
125
  <data type='float' rngui:label='Minutes'/>
120
126
  </element>
@@ -65,7 +65,7 @@ function WFAdaptorManifestation(adaptor) {
65
65
  var schema = save['endpoints_cache'][$(node).attr('endpoint')].schema.documentElement;
66
66
  $(rng).find(' > element[name="parameters"] > element[name="arguments"]').replaceWith($(schema).clone());
67
67
  }
68
- if (save['endpoints_list'][$(node).attr('endpoint')] && !save['endpoints_list'][$(node).attr('endpoint')].startsWith('http')) {
68
+ if (save['endpoints_list'][$(node).attr('endpoint')] && (!save['endpoints_list'][$(node).attr('endpoint')].startsWith('http') || save['endpoints_list'][$(node).attr('endpoint')].match(/^https?-/))) {
69
69
  $(rng).find(' > element[name="parameters"] > element[name="method"]').remove();
70
70
  }
71
71
  save['details'] = new RelaxNGui(rng,tab,self.adaptor.description.context_eval,true);
@@ -264,33 +264,18 @@ function WFAdaptorManifestation(adaptor) {
264
264
  'label': function(node){
265
265
  var rep = $('body').attr('current-resources');
266
266
  var ep = self.endpoints[$(node).attr('endpoint')];
267
- var avg = $('_timing_avg',$(node).children('annotations')).text();
267
+ var wait = $('_timing_wait',$(node).children('annotations')).text();
268
+ var threshold = $('_timing_threshold',$(node).children('annotations')).text();
268
269
  var lab = $('> label',$(node).children('parameters')).text().replace(/^['"]/,'').replace(/['"]$/,'');
269
270
  var ret = [ { column: 'ID', value: $(node).attr('id') } ];
270
271
  if (lab != '') {
271
272
  ret.unshift( { column: 'Label', value: lab } );
272
273
  }
273
- if (ep != undefined) {
274
- var lnd = $(node).attr('endpoint');
275
- ret.push({ column: 'Resource', value: lnd });
276
- if (save['endpoints_cache'][lnd] && save['endpoints_cache'][lnd].properties) {
277
- var prop = save['endpoints_cache'][lnd].properties;
278
- if (prop.resource) {
279
- if (prop.resource == 'exclusive' && prop.lock) {
280
- ret.push({ column: 'RP', value: prop.resource + ' (' + prop.lock + ')' });
281
- } else {
282
- ret.push({ column: 'RP', value: prop.resource });
283
- }
284
- }
285
- if (prop.alternatives) {
286
- ret.push({ column: 'R#', value: prop.alternatives.length + 1});
287
- } else {
288
- ret.push({ column: 'R#', value: '1' });
289
- }
290
- }
274
+ if (wait != '') {
275
+ ret.push({ column: 'Wait', value: 'ω = ' + wait });
291
276
  }
292
- if (avg != '') {
293
- ret.push({ column: 'Average', value: avg + 'min' });
277
+ if (threshold != '') {
278
+ ret.push({ column: 'Threshold', value: = ' + threshold });
294
279
  }
295
280
  return ret;
296
281
  },
@@ -51,10 +51,10 @@
51
51
  </element>
52
52
  </zeroOrMore>
53
53
  </element>
54
- </element>
55
- <element name="report" rngui:header="Reporting Annotation" rngui:fold="closed">
56
- <element name="url" rngui:label='HTML Snippet'>
57
- <data type="string" rngui:label="url to report snippet"/>
54
+ <element name="report" rngui:header="Reporting Annotation" rngui:fold="closed">
55
+ <element name="url" rngui:label='HTML Snippet'>
56
+ <data type="string" rngui:label="url to report snippet"/>
57
+ </element>
58
58
  </element>
59
59
  </element>
60
60
  <element name="finalize" rngui:header="Finalize" rngui:label="Code">
@@ -65,7 +65,7 @@ function WFAdaptorManifestation(adaptor) {
65
65
  var schema = save['endpoints_cache'][$(node).attr('endpoint')].schema.documentElement;
66
66
  $(rng).find(' > element[name="parameters"] > element[name="arguments"]').replaceWith($(schema).clone());
67
67
  }
68
- if (save['endpoints_list'][$(node).attr('endpoint')] && !save['endpoints_list'][$(node).attr('endpoint')].startsWith('http')) {
68
+ if (save['endpoints_list'][$(node).attr('endpoint')] && (!save['endpoints_list'][$(node).attr('endpoint')].startsWith('http') || save['endpoints_list'][$(node).attr('endpoint')].match(/^https?-/))) {
69
69
  $(rng).find(' > element[name="parameters"] > element[name="method"]').remove();
70
70
  }
71
71
  save['details'] = new RelaxNGui(rng,tab,self.adaptor.description.context_eval,true);
@@ -92,6 +92,12 @@
92
92
  </element>
93
93
  <element name="annotations" rngui:header="Annotations">
94
94
  <element name="_timing" rngui:header="Timing" rngui:fold="closed">
95
+ <element name="_timing_wait" rngui:label='ω - Wait'>
96
+ <data type='float' rngui:label='[0,1]' rngui:default='0.5'/>
97
+ </element>
98
+ <element name="_timing_threshold" rngui:label='κ - Threshold'>
99
+ <data type='float' rngui:label='[0,3,n]' rngui:default='3'/>
100
+ </element>
95
101
  <element name="_timing_min" rngui:label='Min in min'>
96
102
  <data type='float' rngui:label='Minutes'/>
97
103
  </element>
@@ -115,6 +115,12 @@
115
115
  </element>
116
116
  <element name="annotations" rngui:header="Annotations">
117
117
  <element name="_timing" rngui:header="Timing" rngui:fold="closed">
118
+ <element name="_timing_wait" rngui:label='ω - Wait'>
119
+ <data type='float' rngui:label='[0,1]'/>
120
+ </element>
121
+ <element name="_timing_threshold" rngui:label='κ - Threshold'>
122
+ <data type='float' rngui:label='[0,3,n]'/>
123
+ </element>
118
124
  <element name="_timing_min" rngui:label='Min in min'>
119
125
  <data type='float' rngui:label='Minutes'/>
120
126
  </element>
@@ -65,7 +65,7 @@ function WFAdaptorManifestation(adaptor) {
65
65
  var schema = save['endpoints_cache'][$(node).attr('endpoint')].schema.documentElement;
66
66
  $(rng).find(' > element[name="parameters"] > element[name="arguments"]').replaceWith($(schema).clone());
67
67
  }
68
- if (save['endpoints_list'][$(node).attr('endpoint')] && !save['endpoints_list'][$(node).attr('endpoint')].startsWith('http')) {
68
+ if (save['endpoints_list'][$(node).attr('endpoint')] && (!save['endpoints_list'][$(node).attr('endpoint')].startsWith('http') || save['endpoints_list'][$(node).attr('endpoint')].match(/^https?-/))) {
69
69
  $(rng).find(' > element[name="parameters"] > element[name="method"]').remove();
70
70
  }
71
71
  save['details'] = new RelaxNGui(rng,tab,self.adaptor.description.context_eval,true);
@@ -92,6 +92,12 @@
92
92
  </element>
93
93
  <element name="annotations" rngui:header="Annotations">
94
94
  <element name="_timing" rngui:header="Timing" rngui:fold="closed">
95
+ <element name="_timing_wait" rngui:label='ω - Wait'>
96
+ <data type='float' rngui:label='[0,1]' rngui:default='0.5'/>
97
+ </element>
98
+ <element name="_timing_threshold" rngui:label='κ - Threshold'>
99
+ <data type='float' rngui:label='[0,3,n]' rngui:default='3'/>
100
+ </element>
95
101
  <element name="_timing_min" rngui:label='Min in min'>
96
102
  <data type='float' rngui:label='Minutes'/>
97
103
  </element>
@@ -115,6 +115,12 @@
115
115
  </element>
116
116
  <element name="annotations" rngui:header="Annotations">
117
117
  <element name="_timing" rngui:header="Timing" rngui:fold="closed">
118
+ <element name="_timing_wait" rngui:label='ω - Wait'>
119
+ <data type='float' rngui:label='[0,1]'/>
120
+ </element>
121
+ <element name="_timing_threshold" rngui:label='κ - Threshold'>
122
+ <data type='float' rngui:label='[0,3,n]'/>
123
+ </element>
118
124
  <element name="_timing_min" rngui:label='Min in min'>
119
125
  <data type='float' rngui:label='Minutes'/>
120
126
  </element>
@@ -65,7 +65,7 @@ function WFAdaptorManifestation(adaptor) {
65
65
  var schema = save['endpoints_cache'][$(node).attr('endpoint')].schema.documentElement;
66
66
  $(rng).find(' > element[name="parameters"] > element[name="arguments"]').replaceWith($(schema).clone());
67
67
  }
68
- if (save['endpoints_list'][$(node).attr('endpoint')] && !save['endpoints_list'][$(node).attr('endpoint')].startsWith('http')) {
68
+ if (save['endpoints_list'][$(node).attr('endpoint')] && (!save['endpoints_list'][$(node).attr('endpoint')].startsWith('http') || save['endpoints_list'][$(node).attr('endpoint')].match(/^https?-/))) {
69
69
  $(rng).find(' > element[name="parameters"] > element[name="method"]').remove();
70
70
  }
71
71
  save['details'] = new RelaxNGui(rng,tab,self.adaptor.description.context_eval,true);
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.5.20"
3
+ s.version = "1.5.25"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Preliminary release of cloud process execution engine (cpee). If you just need workflow execution, without a rest/xmpp service exposing it, then use WEEL"
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.add_runtime_dependency 'riddl', '~> 0.99'
25
25
  s.add_runtime_dependency 'weel', '~> 1.99', '>= 1.99.80'
26
26
  s.add_runtime_dependency 'savon', '~> 2'
27
+ s.add_runtime_dependency 'xml-smart', '>=0.4.3', '~>0'
27
28
  s.add_runtime_dependency 'highline', '~> 1.6'
28
29
  s.add_runtime_dependency 'json', '~>2.1'
29
30
  s.add_runtime_dependency 'rubyzip', '~>1.2'
@@ -373,7 +373,7 @@ module CPEE
373
373
  node = doc.find("/p:properties/p:state").first
374
374
  state = node.text
375
375
  end
376
- if call_vote("state/change", :instance => @id, :info => info, :state => state)
376
+ if call_vote("state/change", :instance => @id, :info => info, :state => state, :attributes => attributes_translated)
377
377
  case state
378
378
  when 'stopping'
379
379
  stop
@@ -296,7 +296,6 @@ module CPEE
296
296
 
297
297
  class ContinueTask < Riddl::Implementation #{{{
298
298
  def response
299
- cpee = @h['X_CPEE'] || @a[0]
300
299
  cblist = @a[1]
301
300
  topic = @p[1].value
302
301
  event_name = @p[2].value
@@ -305,6 +304,8 @@ module CPEE
305
304
  key = @r.last
306
305
  cb, condition, instance, uuid, instance_url = cblist.lrange(key,0,-1)
307
306
 
307
+ cpee = File.dirname(instance_url)
308
+
308
309
  orisend = {
309
310
  'CPEE-INSTANCE' => instance,
310
311
  'CPEE-INSTANCE-URL' => instance_url,
data/log/sic.rb CHANGED
@@ -58,6 +58,7 @@ def help
58
58
  puts ' Copy: sic.rb https://centurio.work/log/865916c6-2b18-4e9d-81d4-0fab0df248f4.xes.yaml copy'
59
59
  puts ' Copy: sic.rb ~/Projects/cpee/log/logs/865916c6-2b18-4e9d-81d4-0fab0df248f4.xes.yaml copy'
60
60
  puts ' View: sic.rb 865916c6-2b18-4e9d-81d4-0fab0df248f4.xes.yaml'
61
+ true
61
62
  end
62
63
 
63
64
  react(ARGV[0]) || help
@@ -16,7 +16,7 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
16
16
  def self::inform_state_change(arguments,newstate) # {{{
17
17
  controller = arguments[0]
18
18
  controller.serialize_state!
19
- controller.notify("state/change", :instance => controller.instance, :instance_uuid => controller.uuid, :state => newstate, :timestamp => Time.now.strftime("%Y-%m-%dT%H:%M:%S.%L%:z"))
19
+ controller.notify("state/change", :instance => controller.instance, :instance_uuid => controller.uuid, :state => newstate, :timestamp => Time.now.strftime("%Y-%m-%dT%H:%M:%S.%L%:z"), :attributes => controller.attributes_translated)
20
20
  controller.finalize_if_finished
21
21
  end # }}}
22
22
  def self::inform_syntax_error(arguments,err,code)# {{{
@@ -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)
@@ -389,6 +389,9 @@
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:apply-templates select="d:*" mode="plainmulti"/>
394
+ </xsl:when>
392
395
  <xsl:when test="count(*) &gt; 0 and not(name()='arguments')">
393
396
  <xsl:text>{</xsl:text>
394
397
  <xsl:apply-templates select="d:*" mode="parameter"/>
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/ruby
2
2
  require 'rubygems'
3
+ gem 'cpee', '~>1.5'
3
4
  require 'cpee/instantiation'
4
5
 
5
6
  options = {
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/ruby
2
2
  require 'rubygems'
3
+ gem 'cpee', '~>1.5'
3
4
  require 'cpee/implementation'
4
5
 
5
6
  Riddl::Server.new(CPEE::SERVER, :host => 'localhost', :port => 8298) do |opts|
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.20
4
+ version: 1.5.25
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: 2020-05-05 00:00:00.000000000 Z
14
+ date: 2020-10-05 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
@@ -141,49 +161,59 @@ files:
141
161
  - cockpit/rngs/attributes.rng
142
162
  - cockpit/rngs/dataelements.rng
143
163
  - cockpit/rngs/endpoints.rng
144
- - cockpit/test.html
145
- - cockpit/testsets/Async.xml
146
- - cockpit/testsets/BCO.xml
147
- - cockpit/testsets/BCS.xml
148
- - cockpit/testsets/Centurio.xml
149
- - cockpit/testsets/Concurrent.xml
150
- - cockpit/testsets/Coopis Testset.xml
151
- - cockpit/testsets/Endpoints and Data Manipulation.xml
152
- - cockpit/testsets/ICSOC Testset.xml
153
- - cockpit/testsets/Infinity.xml
154
- - cockpit/testsets/Lego Boxer.xml
155
- - cockpit/testsets/Lego Conveyor.xml
156
- - cockpit/testsets/Lego Crane.xml
157
- - cockpit/testsets/Lego Ejector.xml
158
- - cockpit/testsets/Lego Full.xml
159
- - cockpit/testsets/Lego Liddy.xml
160
- - cockpit/testsets/Lego Plate.xml
161
- - cockpit/testsets/Lego Transporter.xml
162
- - cockpit/testsets/Lego_Part_1.xml
163
- - cockpit/testsets/LgLinear.xml
164
- - cockpit/testsets/Linear.xml
165
- - cockpit/testsets/Log.xml
166
- - cockpit/testsets/Mangler 1.xml
167
- - cockpit/testsets/Mangler 2.xml
168
- - cockpit/testsets/Manuel Labels.xml
169
- - cockpit/testsets/Promise.xml
170
- - cockpit/testsets/SOPROMO Test Sonification.xml
171
- - cockpit/testsets/Subprocess.xml
172
- - cockpit/testsets/Syncing P34 1.xml
173
- - cockpit/testsets/Syncing P34 2.xml
174
- - cockpit/testsets/Syncing P34 3.xml
175
- - cockpit/testsets/Syncing P34.xml
176
- - cockpit/testsets/TEST - Bad Loop.xml
177
- - cockpit/testsets/TEST - Wrong Positions.xml
178
- - cockpit/testsets/Take_5.xml
179
- - cockpit/testsets/Update.xml
180
- - cockpit/testsets/Worklist Parallel.xml
181
- - cockpit/testsets/Worklist Test CPEE.xml
182
- - cockpit/testsets/Worklist Test.xml
183
- - cockpit/testsets/Worklist Test2.xml
184
- - cockpit/testsets/convert_preset.rb
185
- - cockpit/testsets/testsets.xml
186
- - cockpit/testsets/transformations.xml
164
+ - cockpit/templates.legacy/Async.xml
165
+ - cockpit/templates.legacy/BCO.xml
166
+ - cockpit/templates.legacy/BCS.xml
167
+ - cockpit/templates.legacy/Centurio.xml
168
+ - cockpit/templates.legacy/Concurrent.xml
169
+ - cockpit/templates.legacy/Coopis Testset.xml
170
+ - cockpit/templates.legacy/Endpoints and Data Manipulation.xml
171
+ - cockpit/templates.legacy/ICSOC Testset.xml
172
+ - cockpit/templates.legacy/Infinity.xml
173
+ - cockpit/templates.legacy/Lego Boxer.xml
174
+ - cockpit/templates.legacy/Lego Conveyor.xml
175
+ - cockpit/templates.legacy/Lego Crane.xml
176
+ - cockpit/templates.legacy/Lego Ejector.xml
177
+ - cockpit/templates.legacy/Lego Full.xml
178
+ - cockpit/templates.legacy/Lego Liddy.xml
179
+ - cockpit/templates.legacy/Lego Plate.xml
180
+ - cockpit/templates.legacy/Lego Transporter.xml
181
+ - cockpit/templates.legacy/Lego_Part_1.xml
182
+ - cockpit/templates.legacy/LgLinear.xml
183
+ - cockpit/templates.legacy/Linear.xml
184
+ - cockpit/templates.legacy/Log.xml
185
+ - cockpit/templates.legacy/Mangler 1.xml
186
+ - cockpit/templates.legacy/Mangler 2.xml
187
+ - cockpit/templates.legacy/Manuel Labels.xml
188
+ - cockpit/templates.legacy/Promise.xml
189
+ - cockpit/templates.legacy/SOPROMO Test Sonification.xml
190
+ - cockpit/templates.legacy/Syncing P34 1.xml
191
+ - cockpit/templates.legacy/Syncing P34 2.xml
192
+ - cockpit/templates.legacy/Syncing P34 3.xml
193
+ - cockpit/templates.legacy/Syncing P34.xml
194
+ - cockpit/templates.legacy/TEST - Bad Loop.xml
195
+ - cockpit/templates.legacy/TEST - Wrong Positions.xml
196
+ - cockpit/templates.legacy/Update.xml
197
+ - cockpit/templates.legacy/Worklist Parallel.xml
198
+ - cockpit/templates.legacy/Worklist Test CPEE.xml
199
+ - cockpit/templates.legacy/Worklist Test.xml
200
+ - cockpit/templates.legacy/Worklist Test2.xml
201
+ - cockpit/templates.legacy/convert_preset.rb
202
+ - cockpit/templates.legacy/testsets.xml
203
+ - cockpit/templates.legacy/transformations.xml
204
+ - cockpit/templates/BPM 2020 Manual Adjust.xml
205
+ - cockpit/templates/BPM 2020 Solution Baseline.xml
206
+ - cockpit/templates/BPM 2020 Solution NN.xml
207
+ - cockpit/templates/BPM 2020 Solution View.xml
208
+ - cockpit/templates/BPM 2020.xml
209
+ - cockpit/templates/Coopis 2010.xml
210
+ - cockpit/templates/IUPC arXiv:1104.3609 P34 1.xml
211
+ - cockpit/templates/IUPC arXiv:1104.3609 P34 2.xml
212
+ - cockpit/templates/IUPC arXiv:1104.3609 P34 3.xml
213
+ - cockpit/templates/Worklist.xml
214
+ - cockpit/templates/convert_preset.rb
215
+ - cockpit/templates/testsets.xml
216
+ - cockpit/templates/transformations.xml
187
217
  - cockpit/themes/compact/rngs/alternative.rng
188
218
  - cockpit/themes/compact/rngs/call.rng
189
219
  - cockpit/themes/compact/rngs/callmanipulate.rng
@@ -521,16 +551,10 @@ files:
521
551
  - server/handlerwrappers/default.rb
522
552
  - server/handlerwrappers/soap.rb
523
553
  - server/resources/empty_dslx.xml
524
- - server/resources/notifications/logging/consumer-secret
525
- - server/resources/notifications/logging/producer-secret
526
- - server/resources/notifications/logging/subscription.xml
527
554
  - server/resources/properties.init
528
555
  - server/resources/properties.schema.active
529
556
  - server/resources/properties.schema.finished
530
557
  - server/resources/properties.schema.inactive
531
- - server/resources/test1.xml
532
- - server/resources/test2.xml
533
- - server/resources/test3.xml
534
558
  - server/resources/topics.xml
535
559
  - server/resources/transformation.xml
536
560
  - server/resources/transformation_dslx.xsl