cpee 1.4.30 → 1.4.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cockpit/css/ui.css +23 -0
- data/cockpit/css/wfadaptor.css +80 -69
- data/cockpit/index.html +15 -8
- data/cockpit/js/details.js +2 -3
- data/cockpit/js/instance.js +37 -4
- data/cockpit/js/wfadaptor.js +196 -108
- data/cockpit/test.html +40 -0
- data/cockpit/themes/compact/theme.js +176 -36
- data/cockpit/themes/default/rngs/alternative.rng +20 -0
- data/cockpit/themes/default/rngs/call.rng +3 -3
- data/cockpit/themes/default/rngs/callmanipulate.rng +3 -3
- data/cockpit/themes/default/rngs/loop.rng +11 -0
- data/cockpit/themes/default/rngs/otherwise.rng +22 -1
- data/cockpit/themes/default/symbols/alternative.svg +3 -2
- data/cockpit/themes/default/symbols/complex.svg +8 -0
- data/cockpit/themes/default/symbols/end.svg +3 -0
- data/cockpit/themes/default/symbols/event_end.svg +3 -0
- data/cockpit/themes/default/symbols/parallel_branch.svg +3 -2
- data/cockpit/themes/default/symbols/parallel_branch_event.svg +14 -0
- data/cockpit/themes/default/symbols/parallel_branch_normal.svg +5 -0
- data/cockpit/themes/default/theme.js +200 -45
- data/cockpit/themes/lego/theme.js +4 -4
- data/cpee.gemspec +2 -2
- data/lib/cpee/value_helper.rb +16 -0
- data/log/elasticsearch_logging.rb +1 -0
- data/server/handlerwrappers/default.rb +2 -2
- metadata +9 -4
- data/cockpit/js_libs.zip +0 -0
@@ -17,10 +17,10 @@ function WFAdaptorManifestation(adaptor) {
|
|
17
17
|
|
18
18
|
return($X(ntxt));
|
19
19
|
};
|
20
|
-
this.
|
20
|
+
this.selected = function(){
|
21
21
|
var svgid = 'unknown';
|
22
22
|
_.each(self.adaptor.illustrator.get_elements(),function(value,key) {
|
23
|
-
if ($(value).hasClass('
|
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('
|
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('
|
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);
|
data/cpee.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee"
|
3
|
-
s.version = "1.4.
|
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 '
|
29
|
+
s.add_runtime_dependency 'opcua', '~>0', '>= 0.13'
|
30
30
|
s.add_runtime_dependency 'rubyzip', '~>1.2'
|
31
31
|
end
|
data/lib/cpee/value_helper.rb
CHANGED
@@ -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
|
@@ -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::
|
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::
|
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.
|
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-
|
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:
|
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
|
data/cockpit/js_libs.zip
DELETED
Binary file
|