cpee 2.1.123 → 2.1.124
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/cpee.gemspec +1 -1
- data/server/executionhandlers/eval/connection.rb +13 -7
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a7e35ddd2031b279cc41463346d32717db1ea3d80799ee85db4a43cc05142b9
|
|
4
|
+
data.tar.gz: 2d6e1647379bc4da34bb03d836f4a0c7e00cedc46a9807cbda4b97add528a05b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3de779a4197d4fff955b33609c2d8e2da12537c7c1a8e2fb5517503bf672119ec9fffb5f4c7fb6266f5e205d67a3a71bbee073627628c8ba4c9076a95fa7e5ad
|
|
7
|
+
data.tar.gz: d079b1af412637df5dbff65edfe731f9ee69d01de1f373a38873f6ea87c9ce41fd7c2adcad26cb24ba13f3e49f069a6e5295447d5b8db33651706c9bbff7140b
|
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.124"
|
|
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."
|
|
@@ -99,7 +99,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
|
99
99
|
}
|
|
100
100
|
end #}}}
|
|
101
101
|
|
|
102
|
-
def proto_curl(parameters) #{{{
|
|
102
|
+
def proto_curl(parameters, dataelements) #{{{
|
|
103
103
|
params = []
|
|
104
104
|
callback = SecureRandom.hex(16)
|
|
105
105
|
(parameters[:arguments] || []).each do |s|
|
|
@@ -203,11 +203,11 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
|
203
203
|
headers['CPEE_SALVAGE'] = true
|
|
204
204
|
c = result[0]&.value
|
|
205
205
|
c = c.read if c.respond_to? :read
|
|
206
|
-
callback([ Riddl::Parameter::Complex.new('error','application/json',StringIO.new(JSON::generate({ 'status' => status, 'error' => c }))) ], headers)
|
|
206
|
+
callback([ Riddl::Parameter::Complex.new('error','application/json',StringIO.new(JSON::generate({ 'status' => status, 'error' => c }))) ], headers, dataelements)
|
|
207
207
|
else
|
|
208
208
|
if headers['CPEE_CALLBACK'] && headers['CPEE_CALLBACK'] == 'true' && result.any?
|
|
209
209
|
headers['CPEE_UPDATE'] = true
|
|
210
|
-
callback result, headers
|
|
210
|
+
callback result, headers, dataelements
|
|
211
211
|
elsif headers['CPEE_CALLBACK'] && headers['CPEE_CALLBACK'] == 'true' && result.empty?
|
|
212
212
|
if headers['CPEE_INSTANTIATION']
|
|
213
213
|
@controller.notify("task/instantiation", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => CPEE::ValueHelper.parse(headers['CPEE_INSTANTIATION']))
|
|
@@ -217,19 +217,19 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
|
217
217
|
end
|
|
218
218
|
# do nothing, later on things will happend
|
|
219
219
|
else
|
|
220
|
-
callback result, headers
|
|
220
|
+
callback result, headers, dataelements
|
|
221
221
|
end
|
|
222
222
|
end
|
|
223
223
|
end #}}}
|
|
224
224
|
|
|
225
|
-
def activity_handle(passthrough, parameters) # {{{
|
|
225
|
+
def activity_handle(passthrough, parameters, dataelements) # {{{
|
|
226
226
|
raise "Wrong endpoint" if @handler_endpoint.nil? || @handler_endpoint.empty?
|
|
227
227
|
@label = parameters[:label]
|
|
228
228
|
@anno = parameters.delete(:annotations) rescue nil
|
|
229
229
|
@controller.notify("activity/calling", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :passthrough => passthrough, :endpoint => @handler_endpoint, :parameters => parameters)
|
|
230
230
|
@controller.notify("activity/annotation", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :annotations => @anno)
|
|
231
231
|
if passthrough.to_s.empty?
|
|
232
|
-
proto_curl parameters
|
|
232
|
+
proto_curl parameters, dataelements
|
|
233
233
|
else
|
|
234
234
|
@controller.callback(self,passthrough,:'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position)
|
|
235
235
|
@handler_passthrough = passthrough
|
|
@@ -274,6 +274,9 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
|
274
274
|
unless changed_dataelements.nil? || changed_dataelements.empty?
|
|
275
275
|
de = dataelements.slice(*changed_dataelements).transform_values { |v| enc = CPEE::EvalRuby::Translation::detect_encoding(v); (enc == 'OTHER' ? v : (v.encode('UTF-8',enc) rescue CPEE::EvalRuby::Translation::convert_to_base64(v))) }
|
|
276
276
|
@controller.notify("dataelements/change", :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :activity => @handler_position, :changed => changed_dataelements, :values => de)
|
|
277
|
+
if @anno && @anno[:_context_data_analysis] && @anno[:_context_data_analysis][:probes] && @anno[:_context_data_analysis][:probes].find{ |p| p.dig(:probe,:extractor_type) == 'intrinsic' }
|
|
278
|
+
@controller.notify("task/probe", :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :activity => @handler_position, :data => dataelements, :probes => @anno[:_context_data_analysis][:probes])
|
|
279
|
+
end
|
|
277
280
|
end
|
|
278
281
|
unless changed_endpoints.nil? || changed_endpoints.empty?
|
|
279
282
|
@controller.notify("endpoints/change", :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :label => @label, :activity => @handler_position, :changed => changed_endpoints, :values => endpoints.slice(*changed_endpoints))
|
|
@@ -287,9 +290,12 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
|
|
|
287
290
|
@controller.vote("activity/syncing_before", :'activity-uuid' => @handler_activity_uuid, :endpoint => @handler_endpoint, :activity => @handler_position, :label => @label, :parameters => parameters)
|
|
288
291
|
end # }}}
|
|
289
292
|
|
|
290
|
-
def callback(result=nil,options={}) #{{{
|
|
293
|
+
def callback(result=nil,options={}, dataelements) #{{{
|
|
291
294
|
recv = CPEE::EvalRuby::Translation::structurize_result(result)
|
|
292
295
|
@controller.notify("activity/receiving", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => recv)
|
|
296
|
+
if @anno[:_context_data_analysis] && @anno[:_context_data_analysis][:probes] && @anno[:_context_data_analysis][:probes].find{ |p| p.dig(:probe,:extractor_type) == 'extrinsic' }
|
|
297
|
+
@controller.notify("task/probe", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => recv, :data => dataelements, :probes => @anno[:_context_data_analysis]&.[](:probes))
|
|
298
|
+
end
|
|
293
299
|
|
|
294
300
|
@guard_files += result
|
|
295
301
|
|