cpee 2.1.64 → 2.1.66

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: 052d8f4e613153998b5712cadd2204756c242376b4b037e2cb9b8a3a1542116c
4
+ data.tar.gz: 538940981be635be63e6d0790a5f3bac6bbd855a47b2acfc0fc96ddc26dde6d6
5
5
  SHA512:
6
- metadata.gz: 2a382615beced6f3af27bee42068b8000d22bc1d9694351659d97b7013ac11b6c8ab34bcadb29789b3f8f46d29b1e19a9f380903f7a04bf19a03c10b70557a96
7
- data.tar.gz: 003f97f1487e72749878bf00e34c1d557da3381b325879e3575f2b690584baf65a0b81c0e57490345e289a6c42108a319761bf5a5ec38ce796665ed273fdcc5d
6
+ metadata.gz: 2dcba10b6275f5cf5f6a7a2fa32fee4439c807cd248e3d22e65ed1a28a9fe6f5c5a1d7f318742ea3154421cbf4dfafe3fd0d96973599339425c7ef1cae4c8d94
7
+ data.tar.gz: 961f0578ee2657dd785494c3a9d61a289a3a29302f2373ef592ab1f1109cd07704737b9035990820de5c042bed72384055c8a08d7facf95430755f5b7825febc
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.66"
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(data,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.66
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -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