cpee 1.4.30 → 1.4.31

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,10 +17,10 @@ function WFAdaptorManifestation(adaptor) {
17
17
 
18
18
  return($X(ntxt));
19
19
  };
20
- this.clicked = function(){
20
+ this.selected = function(){
21
21
  var svgid = 'unknown';
22
22
  _.each(self.adaptor.illustrator.get_elements(),function(value,key) {
23
- if ($(value).hasClass('clicked')) {
23
+ if ($(value).hasClass('selected')) {
24
24
  svgid = $(value).attr('element-id');
25
25
  }
26
26
  });
@@ -78,7 +78,7 @@ function WFAdaptorManifestation(adaptor) {
78
78
  var tab = $('#dat_' + visid);
79
79
  tab.empty();
80
80
 
81
- self.adaptor.illustrator.get_elements().removeClass('clicked');
81
+ self.adaptor.illustrator.get_elements().removeClass('selected');
82
82
 
83
83
  if (e && e.ctrlKey) {
84
84
  var vtarget = self.adaptor.illustrator.get_node_by_svg_id(svgid);
@@ -90,7 +90,7 @@ function WFAdaptorManifestation(adaptor) {
90
90
 
91
91
  var vtarget = self.adaptor.illustrator.get_node_by_svg_id(svgid);
92
92
  if (vtarget.length > 0) {
93
- vtarget.parents('g.element[element-id]').addClass('clicked');
93
+ vtarget.parents('g.element[element-id]').addClass('selected');
94
94
  }
95
95
 
96
96
  var node = self.adaptor.description.get_node_by_svg_id(svgid).get(0);
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee"
3
- s.version = "1.4.30"
3
+ s.version = "1.4.31"
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"
@@ -26,6 +26,6 @@ Gem::Specification.new do |s|
26
26
  s.add_runtime_dependency 'savon', '~> 2'
27
27
  s.add_runtime_dependency 'highline', '~> 1.6'
28
28
  s.add_runtime_dependency 'json', '~>2.1'
29
- s.add_runtime_dependency 'opca', '~>0', '>= 0.13'
29
+ s.add_runtime_dependency 'opcua', '~>0', '>= 0.13'
30
30
  s.add_runtime_dependency 'rubyzip', '~>1.2'
31
31
  end
@@ -1,3 +1,6 @@
1
+ require 'json'
2
+ require 'time'
3
+
1
4
  module CPEE
2
5
 
3
6
  class ValueHelper
@@ -27,6 +30,19 @@ module CPEE
27
30
  end
28
31
  end
29
32
  end
33
+
34
+ def self::parse_extended(value)
35
+ if [String].include? value.class
36
+ self::parse(value)
37
+ elsif [Array, NilClass, Integer, Float, TrueClass, FalseClass, Date].inclu
38
+ value
39
+ elsif value.respond_to?(:to_s)
40
+ value.to_s
41
+ else
42
+ ''
43
+ end
44
+ end
45
+
30
46
  end
31
47
 
32
48
  end
@@ -164,6 +164,7 @@ class Logging < Riddl::Implementation
164
164
  end
165
165
  end #}}}
166
166
 
167
+ pp notification
167
168
  case "#{topic}/#{event_name}"
168
169
  when "dataelements/change", "endpoints/change"
169
170
  sensors = JSON.parse(notification.dig('attributes','sensors') || '[]')
@@ -74,7 +74,7 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
74
74
  client = OPCUA::Client.new(url)
75
75
  if (node = client.get ns.to_i, nid)
76
76
  (parameters[:arguments] || [→(:name => 'value', :value => par)] || []).each do |ele|
77
- what = CPEE::ValueHelper::parse(ele.value)
77
+ what = CPEE::ValueHelper::parse_extended(ele.value)
78
78
  node.value = what
79
79
  result = what
80
80
  end
@@ -92,7 +92,7 @@ class DefaultHandlerWrapper < WEEL::HandlerWrapperBase
92
92
  if (node = client.get ns.to_i, nid)
93
93
  params = []
94
94
  (parameters[:arguments] || []).each do |ele|
95
- what = CPEE::ValueHelper::parse(ele.value)
95
+ what = CPEE::ValueHelper::parse_extended(ele.value)
96
96
  params << what
97
97
  end
98
98
  result = node.call *params
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.4.30
4
+ version: 1.4.31
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-07-12 00:00:00.000000000 Z
14
+ date: 2019-08-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: riddl
@@ -84,7 +84,7 @@ dependencies:
84
84
  - !ruby/object:Gem::Version
85
85
  version: '2.1'
86
86
  - !ruby/object:Gem::Dependency
87
- name: opca
87
+ name: opcua
88
88
  requirement: !ruby/object:Gem::Requirement
89
89
  requirements:
90
90
  - - "~>"
@@ -149,10 +149,10 @@ files:
149
149
  - cockpit/js/track.js
150
150
  - cockpit/js/ui.js
151
151
  - cockpit/js/wfadaptor.js
152
- - cockpit/js_libs.zip
153
152
  - cockpit/rngs/attributes.rng
154
153
  - cockpit/rngs/dataelements.rng
155
154
  - cockpit/rngs/endpoints.rng
155
+ - cockpit/test.html
156
156
  - cockpit/testsets/Async.xml
157
157
  - cockpit/testsets/BCO.xml
158
158
  - cockpit/testsets/BCS.xml
@@ -215,13 +215,18 @@ files:
215
215
  - cockpit/themes/default/symbols/choose.svg
216
216
  - cockpit/themes/default/symbols/choose_exclusive.svg
217
217
  - cockpit/themes/default/symbols/choose_inclusive.svg
218
+ - cockpit/themes/default/symbols/complex.svg
218
219
  - cockpit/themes/default/symbols/critical.svg
220
+ - cockpit/themes/default/symbols/end.svg
219
221
  - cockpit/themes/default/symbols/escape.svg
222
+ - cockpit/themes/default/symbols/event_end.svg
220
223
  - cockpit/themes/default/symbols/loop.svg
221
224
  - cockpit/themes/default/symbols/manipulate.svg
222
225
  - cockpit/themes/default/symbols/otherwise.svg
223
226
  - cockpit/themes/default/symbols/parallel.svg
224
227
  - cockpit/themes/default/symbols/parallel_branch.svg
228
+ - cockpit/themes/default/symbols/parallel_branch_event.svg
229
+ - cockpit/themes/default/symbols/parallel_branch_normal.svg
225
230
  - cockpit/themes/default/symbols/scripts.svg
226
231
  - cockpit/themes/default/symbols/start.svg
227
232
  - cockpit/themes/default/symbols/stop.svg
Binary file