cpee 2.1.64 → 2.1.67

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d5e5c7b5da8458c5a7e2101d018337ba353c6a5d5e3fe5e359456aba9693f02
4
- data.tar.gz: f74517ec8299ce372750c0d4e6cce29d678ae328a96942cac80c3e86d73f9a1b
3
+ metadata.gz: 66e313a326e4a845a8274655c17d53ed396b9c4869cc7308f0d3b71396c5c1cd
4
+ data.tar.gz: 2635e43efb227782f4835c94cfbde0e423c9a543c81efb66e01f5ef9d5c0d06d
5
5
  SHA512:
6
- metadata.gz: 2a382615beced6f3af27bee42068b8000d22bc1d9694351659d97b7013ac11b6c8ab34bcadb29789b3f8f46d29b1e19a9f380903f7a04bf19a03c10b70557a96
7
- data.tar.gz: 003f97f1487e72749878bf00e34c1d557da3381b325879e3575f2b690584baf65a0b81c0e57490345e289a6c42108a319761bf5a5ec38ce796665ed273fdcc5d
6
+ metadata.gz: 773fb767bcd14e9e719a0716a5b5d8cb51a8a7c80ba3de7eb32a1b3f3d2f06666775fe0ebe7b9d6f57757c39fff0692d9bb8dcc5c7abe6ed1deefd4a2202b389
7
+ data.tar.gz: 182169f0e3bca3b90ac0d97382ba2f3abe771c53c3e8298907a5f053fb5f0d17a7f7b567b9e5960cc0cddc490764186ebe742b233a09ec886ad87005796d75ca
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.64"
3
+ s.version = "2.1.67"
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."
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
22
22
  s.homepage = 'http://cpee.org/'
23
23
 
24
24
  s.add_runtime_dependency 'riddl', '~> 1.0'
25
- s.add_runtime_dependency 'weel', '~> 1.99', '>= 1.99.123'
25
+ s.add_runtime_dependency 'weel', '~> 1.99', '>= 1.99.124'
26
26
  s.add_runtime_dependency 'highline', '~> 2.0'
27
27
  s.add_runtime_dependency 'redis', '~> 5.0'
28
28
  s.add_runtime_dependency 'rubyzip', '~>2'
@@ -319,13 +319,18 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
319
319
  GC.start
320
320
  end #}}}
321
321
 
322
- def prepare(__struct, __endpoints, __parameters) #{{{
323
- @handler_endpoint = __endpoints.is_a?(Array) ? __endpoints.map{ |ep| __struct.endpoints[ep] }.compact : __struct.endpoints[__endpoints]
322
+ def prepare(__lock,__dataelements,__endpoints,__status,__local,__additional,__code,__exec_endpoints,__exec_parameters) #{{{
323
+ __struct = if __code
324
+ manipulate(true,__lock,__dataelements,__endpoints,__status,__local,__additional,__code,'Parameter')
325
+ else
326
+ WEEL::ReadStructure.new(__dataelements,__endpoints,__local,__additional)
327
+ end
328
+ @handler_endpoint = __exec_endpoints.is_a?(Array) ? __exec_endpoints.map{ |ep| __struct.endpoints[ep] }.compact : __struct.endpoints[__exec_endpoints]
324
329
  if @controller.attributes['twin_engine']
325
330
  @handler_endpoint_orig = @handler_endpoint
326
331
  @handler_endpoint = @controller.attributes['twin_engine'].to_s + '?original_endpoint=' + Riddl::Protocols::Utils::escape(@handler_endpoint)
327
332
  end
328
- __params = __parameters.dup
333
+ __params = __exec_parameters.dup
329
334
  __params[:arguments] = __params[:arguments].dup if __params[:arguments]
330
335
  __params[:arguments]&.map! do |__ele|
331
336
  __tmp = __ele.dup
@@ -338,7 +343,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
338
343
  end #}}}
339
344
  def test_condition(__dataelements,__endpoints,__local,__additional,__code,__args={}) #{{{
340
345
  __struct = WEEL::ReadStructure.new(__dataelements,__endpoints,__local,__additional).instance_eval(__code,'Condition',1)
341
- @controller.notify("gateway/decide", :instance_uuid => @controller.uuid, :code => code, :condition => (__struct ? "true" : "false"))
346
+ @controller.notify("gateway/decide", :instance_uuid => @controller.uuid, :code => __code, :condition => (__struct ? "true" : "false"))
342
347
  __struct
343
348
  end #}}}
344
349
  def manipulate(__readonly,__lock,__dataelements,__endpoints,__status,__local,__additional,__code,__where,__result=nil,__options=nil) #{{{
@@ -326,13 +326,18 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
326
326
  GC.start
327
327
  end #}}}
328
328
 
329
- def prepare(struct, endpoints, parameters) #{{{
330
- @handler_endpoint = endpoints.is_a?(Array) ? endpoints.map{ |ep| struct.endpoints[ep] }.compact : struct.endpoints[endpoints]
329
+ def prepare(lock,dataelements,endpoints,status,local,additional,code,exec_endpoints,exec_parameters)
330
+ struct = if code
331
+ manipulate(true,lock,dataelements,endpoints,status,local,additional,code,'Parameter')
332
+ else
333
+ WEEL::ReadStructure.new(dataelements,endpoints,local,additional)
334
+ end
335
+ @handler_endpoint = exec_endpoints.is_a?(Array) ? exec_endpoints.map{ |ep| struct.endpoints[ep] }.compact : struct.endpoints[exec_endpoints]
331
336
  if @controller.attributes['twin_engine']
332
337
  @handler_endpoint_orig = @handler_endpoint
333
338
  @handler_endpoint = @controller.attributes['twin_engine'].to_s + '?original_endpoint=' + Riddl::Protocols::Utils::escape(@handler_endpoint)
334
339
  end
335
- params = parameters.dup
340
+ params = exec_parameters.dup
336
341
  params[:arguments] = params[:arguments].dup if params[:arguments]
337
342
  params[:arguments]&.map! do |ele|
338
343
  t = ele.dup
@@ -370,7 +375,7 @@ class ConnectionWrapper < WEEL::ConnectionWrapperBase
370
375
  else
371
376
  nil
372
377
  end
373
- recv = 'false' unless receive
378
+ recv = 'false' unless recv
374
379
  recv = (recv == 'false' || recv == 'null' || recv == 'nil' ? false : true)
375
380
  @controller.notify("gateway/decide", :instance_uuid => @controller.uuid, :code => code, :condition => recv)
376
381
  recv
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.64
4
+ version: 2.1.67
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: 2024-09-18 00:00:00.000000000 Z
13
+ date: 2024-09-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: riddl
@@ -35,7 +35,7 @@ dependencies:
35
35
  version: '1.99'
36
36
  - - ">="
37
37
  - !ruby/object:Gem::Version
38
- version: 1.99.123
38
+ version: 1.99.124
39
39
  type: :runtime
40
40
  prerelease: false
41
41
  version_requirements: !ruby/object:Gem::Requirement
@@ -45,7 +45,7 @@ dependencies:
45
45
  version: '1.99'
46
46
  - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: 1.99.123
48
+ version: 1.99.124
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: highline
51
51
  requirement: !ruby/object:Gem::Requirement