weel 1.99.145 → 1.99.147

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/weel.rb +7 -9
  3. data/weel.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4f69f13bbb9c2436814262bf95c11bb90e6a829eafefb882bb0cd58f2c120d3
4
- data.tar.gz: d82e4007ecac83e223fdec95cd332ed3bfd812e22acaee3a11441ef0006cc61f
3
+ metadata.gz: 69f09565a0379192ad8313bef74a41fa04c5b088f8d8422aa2f74608e9ff7f8e
4
+ data.tar.gz: 7981eaa92f35eb497354db544616596daff1d31343abd87a2ea313d5db33e6ad
5
5
  SHA512:
6
- metadata.gz: be2c17d35b96578556a23eff97b669145adc8c6d54a88017470bfe23c96b51d60c21b21df2681b5c0a1ef430a55b0db41c2c96fcd760acb895169a77ca38c571
7
- data.tar.gz: e9046ec74a370ef4fa79e2d625e5e4754497961dbcca16f7bec97e24ff5077a22201af8642ea750a46ab1fa093749c4b9b2a5660f2532e121cc31f8f39cbcabf
6
+ metadata.gz: 015f753c35aab1d566cf8e8d4225776380f5ac52038e1f5cc77affebb30202c4d121bdd5b64e987ee78672f8e5aeb85b74ca36328f96ec8e1db8658797f41412
7
+ data.tar.gz: 5c91f64464d1b0dd98a8725017f5eba90319f042c6bcfe73b5fa8711e728d00163e458e72cb80ccba1dc6dd1ed48b450b4cf387e0215984522470dd3c4def355
data/lib/weel.rb CHANGED
@@ -357,9 +357,6 @@ class WEEL
357
357
  def activity_handle(passthrough, parameters); end
358
358
  def activity_manipulate_handle(parameters); end
359
359
 
360
- def activity_result_value; end
361
- def activity_result_options; end
362
-
363
360
  def activity_stop; end
364
361
  def activity_passthrough_value; end
365
362
  def activity_uuid; '42424242-cpee-cpee-cpee-424242424242'; end
@@ -938,8 +935,8 @@ class WEEL
938
935
 
939
936
  # with loop if catching Signal::Again
940
937
  # handshake call and wait until it finished
941
- waitingresult = nil
942
- waitingresult = Thread.current[:continue].wait unless Thread.current[:nolongernecessary] || self.__weel_state == :stopping || self.__weel_state == :finishing || self.__weel_state == :stopped
938
+ waitingresult = activity_result_value = activity_result_options = nil
939
+ waitingresult, activity_result_value, activity_result_options = Thread.current[:continue].wait unless Thread.current[:nolongernecessary] || self.__weel_state == :stopping || self.__weel_state == :finishing || self.__weel_state == :stopped
943
940
 
944
941
  if Thread.current[:nolongernecessary]
945
942
  raise Signal::NoLongerNecessary
@@ -950,7 +947,7 @@ class WEEL
950
947
  raise Signal::Proceed if wp.passthrough # if stop, but no passthrough, let manipulate happen and then stop
951
948
  end
952
949
 
953
- next if waitingresult == WEEL::Signal::UpdateAgain && (connectionwrapper.activity_result_value.nil? || connectionwrapper.activity_result_value&.length == 0)
950
+ next if waitingresult == WEEL::Signal::UpdateAgain && (activity_result_value.nil? || activity_result_value&.length == 0)
954
951
 
955
952
  code, cmess = if waitingresult == WEEL::Signal::UpdateAgain
956
953
  [update, 'update']
@@ -969,7 +966,7 @@ class WEEL
969
966
 
970
967
  # when you throw without parameters, ma contains nil, so we return Signal::Proceed to give ma a meaningful value in other cases
971
968
  ma = catch Signal::Again do
972
- struct = connectionwrapper.manipulate(false,@__weel_lock,@__weel_data,@__weel_endpoints,@__weel_status,Thread.current[:local],connectionwrapper.additional,code,'Activity ' + position.to_s + ' ' + cmess,connectionwrapper.activity_result_value,connectionwrapper.activity_result_options)
969
+ struct = connectionwrapper.manipulate(false,@__weel_lock,@__weel_data,@__weel_endpoints,@__weel_status,Thread.current[:local],connectionwrapper.additional,code,'Activity ' + position.to_s + ' ' + cmess,activity_result_value,activity_result_options)
973
970
  Signal::Proceed
974
971
  end
975
972
  if signal
@@ -1067,9 +1064,10 @@ class WEEL
1067
1064
  thread[:continue].continue
1068
1065
  end
1069
1066
  if thread.alive? && thread[:branch_event]
1070
- thread[:mutex].synchronize do
1067
+ ### we dont mutex here anymore, although we did; we are not sure why we originally did it. Branch_event will always exist.
1068
+ ### thread[:mutex].synchronize do
1071
1069
  thread[:branch_event].continue unless thread[:branch_event].nil?
1072
- end
1070
+ ### end
1073
1071
  end
1074
1072
  if thread[:branches]
1075
1073
  thread[:branches].each do |b|
data/weel.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "weel"
3
- s.version = "1.99.145"
3
+ s.version = "1.99.147"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0-or-later"
6
6
  s.summary = "Workflow Execution Engine Library (WEEL)"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.99.145
4
+ version: 1.99.147
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler