cpee 2.1.79 → 2.1.81
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.
- checksums.yaml +4 -4
- data/cockpit/js/wfadaptor.js +35 -1
- data/cockpit/themes/base.js +5 -1
- data/cpee.gemspec +1 -1
- data/lib/cpee/implementation.rb +1 -1
- data/lib/cpee/implementation_callbacks.rb +10 -3
- data/server/executionhandlers/ruby/backend/run.rb +0 -2
- data/server/executionhandlers/ruby/execution.rb +0 -1
- data/server/routing/end.pid +1 -1
- data/server/routing/forward-events-00.pid +1 -1
- data/server/routing/forward-votes.pid +1 -1
- data/server/routing/persist.pid +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 145cf697591637c0820595bad9ad1d3aaaaf5e6d9d6ce3fd99384d444d5fb616
|
4
|
+
data.tar.gz: 109326c90d18274d0413b361020a75c3a728589dab112d50a76575c84c7876fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fffd736313773921542ef7b95f4584a6ddaa6342f67228488935aefdbefacddc159d030415117f9ed738793982519f0ae2bbf071ab74dce1fd6293583ed9f8bb
|
7
|
+
data.tar.gz: 7c02e850e4d1fbaf2679305c8b60b3b88018b94975f95a87e9e9dcfda62959d521d56357fabd7c6927b08d67067a8ab19f26db76a9a91f936397ca134105bd31
|
data/cockpit/js/wfadaptor.js
CHANGED
@@ -105,7 +105,7 @@ function WfAdaptor(theme_base,doit) { // Controller {{{
|
|
105
105
|
}
|
106
106
|
for(element in manifestation.elements) {
|
107
107
|
if (manifestation.elements[element].illustrator) {
|
108
|
-
if (manifestation.elements[element].illustrator.svg) {
|
108
|
+
if (manifestation.elements[element].illustrator.svg && (typeof manifestation.elements[element].illustrator.svg === 'string' || manifestation.elements[element].illustrator.svg instanceof String)) {
|
109
109
|
deferreds.push(
|
110
110
|
$.ajax({
|
111
111
|
type: "GET",
|
@@ -117,6 +117,40 @@ function WfAdaptor(theme_base,doit) { // Controller {{{
|
|
117
117
|
}
|
118
118
|
})
|
119
119
|
);
|
120
|
+
} else {
|
121
|
+
deferreds.push(
|
122
|
+
$.ajax({
|
123
|
+
type: "GET",
|
124
|
+
dataType: "xml",
|
125
|
+
url: manifestation.elements[element].illustrator.svg.first,
|
126
|
+
context: element,
|
127
|
+
success: function(res){
|
128
|
+
manifestation.elements[this].illustrator.svg.first = $(res.documentElement);
|
129
|
+
}
|
130
|
+
})
|
131
|
+
);
|
132
|
+
deferreds.push(
|
133
|
+
$.ajax({
|
134
|
+
type: "GET",
|
135
|
+
dataType: "xml",
|
136
|
+
url: manifestation.elements[element].illustrator.svg.middle,
|
137
|
+
context: element,
|
138
|
+
success: function(res){
|
139
|
+
manifestation.elements[this].illustrator.svg.middle = $(res.documentElement);
|
140
|
+
}
|
141
|
+
})
|
142
|
+
);
|
143
|
+
deferreds.push(
|
144
|
+
$.ajax({
|
145
|
+
type: "GET",
|
146
|
+
dataType: "xml",
|
147
|
+
url: manifestation.elements[element].illustrator.svg.last,
|
148
|
+
context: element,
|
149
|
+
success: function(res){
|
150
|
+
manifestation.elements[this].illustrator.svg.last = $(res.documentElement);
|
151
|
+
}
|
152
|
+
})
|
153
|
+
);
|
120
154
|
}
|
121
155
|
illustrator.elements[element] = manifestation.elements[element].illustrator;
|
122
156
|
illustrator.elements[element].type = manifestation.elements[element].type || 'abstract';
|
data/cockpit/themes/base.js
CHANGED
@@ -426,7 +426,11 @@ function WFAdaptorManifestationBase(adaptor) {
|
|
426
426
|
return [];
|
427
427
|
}
|
428
428
|
},
|
429
|
-
'svg':
|
429
|
+
'svg': {
|
430
|
+
first: self.adaptor.theme_dir + 'symbols/manipulate.svg',
|
431
|
+
middle: self.adaptor.theme_dir + 'symbols/manipulate.svg',
|
432
|
+
last: self.adaptor.theme_dir + 'symbols/manipulate.svg'
|
433
|
+
}
|
430
434
|
},//}}}
|
431
435
|
'description': self.adaptor.theme_dir + 'rngs/manipulate.rng',
|
432
436
|
'permissible_children': function(node,mode) { //{{{
|
data/cpee.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee"
|
3
|
-
s.version = "2.1.
|
3
|
+
s.version = "2.1.81"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3.0-or-later"
|
6
6
|
s.summary = "The cloud process execution engine (cpee.org). If you just need workflow execution, without a rest service exposing it, then use WEEL."
|
data/lib/cpee/implementation.rb
CHANGED
@@ -93,7 +93,7 @@ module CPEE
|
|
93
93
|
CPEE::redis_connect opts, 'Server Main'
|
94
94
|
|
95
95
|
### start by server
|
96
|
-
if opts[:libs_preload]&.is_a?(Array) && opts[:libs_preload].length > 0
|
96
|
+
if opts[:libs_preload]&.is_a?(Array) && opts[:libs_preload].length > 0 && opts[:libs_preloader]&.is_a?(String) && opts[:libs_preloader]&.strip != ''
|
97
97
|
puts '(re)starting by-server ...'
|
98
98
|
`pkill -f #{File.basename(opts[:libs_preloader])}`
|
99
99
|
`#{opts[:libs_preloader]} '#{opts[:libs_preload].join("' '")}'`
|
@@ -108,6 +108,13 @@ module CPEE
|
|
108
108
|
end #}}}
|
109
109
|
|
110
110
|
class ExCallback < Riddl::Implementation #{{{
|
111
|
+
def cleanup_encoding(val)
|
112
|
+
enc = CharlockHolmes::EncodingDetector.detect(val)
|
113
|
+
if enc[:type] == :text && enc[:confidence] > 40
|
114
|
+
val.force_encoding(enc[:ruby_encoding])
|
115
|
+
end
|
116
|
+
val
|
117
|
+
end
|
111
118
|
def response
|
112
119
|
id = @a[0]
|
113
120
|
opts = @a[1]
|
@@ -125,10 +132,10 @@ module CPEE
|
|
125
132
|
if e.class == Riddl::Parameter::Simple
|
126
133
|
[:simple,e.value]
|
127
134
|
elsif e.class == Riddl::Parameter::Complex && e.value.size <= 512000
|
128
|
-
[:complex,e.mimetype,e.value.read]
|
135
|
+
[:complex,e.mimetype,cleanup_encoding(e.value.read)]
|
129
136
|
else
|
130
|
-
# [:complex,'cpee-external-' + e.mimetype,e.value.read]
|
131
|
-
[:complex, e.mimetype,e.value.read]
|
137
|
+
# [:complex,'cpee-external-' + e.mimetype,cleanup_encoding(e.value.read)]
|
138
|
+
[:complex, e.mimetype,cleanup_encoding(e.value.read)]
|
132
139
|
end
|
133
140
|
]
|
134
141
|
}
|
@@ -55,7 +55,6 @@ module CPEE
|
|
55
55
|
end
|
56
56
|
template = ERB.new(File.read(ExecutionHandler::Ruby::BACKEND_TEMPLATE), trim_mode: '-')
|
57
57
|
res = template.result_with_hash(dsl: dsl, dataelements: dataelements, endpoints: endpoints, positions: positions)
|
58
|
-
pp dataelements
|
59
58
|
File.write(File.join(opts[:instances],id.to_s,ExecutionHandler::Ruby::BACKEND_INSTANCE),res)
|
60
59
|
end
|
61
60
|
|
data/server/routing/end.pid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
1180624
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
1180642
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
1180636
|
data/server/routing/persist.pid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
1180630
|
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: 2.1.
|
4
|
+
version: 2.1.81
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: tools
|
12
12
|
cert_chain: []
|
13
|
-
date: 2025-
|
13
|
+
date: 2025-03-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: riddl
|