weel 1.99.63 → 1.99.64

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 +5 -5
  2. data/lib/weel.rb +28 -27
  3. data/weel.gemspec +1 -1
  4. metadata +30 -30
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f5f745a2024b3ed2b47b155c6d40b66319c954fe
4
- data.tar.gz: 786fe98233947f51db04cfb73ad64738935c7949
2
+ SHA256:
3
+ metadata.gz: d509cca69d8c41ca70105391066463aa1fc139d3631a8b20d4b4b21f5b671913
4
+ data.tar.gz: a84dbad4cf7e34896e2551bfd0ee7ac151635b03217589ae02621265cae8235f
5
5
  SHA512:
6
- metadata.gz: 6ed3ed69b2221a52bc2155938b33a770083783240d8b98d08c86d9492a690474b1484381fb6bea01b7825b525719dcace7fe43c3899200c8fabe91ef0dd65ef0
7
- data.tar.gz: be8391e5c7a9785a02781adf91107b3d4dc8aa44c75f90c0db75a2670ab1f4168a3a5e7a7b2f4a869163632cdefa5700c3e4f2ff71f6dac2e37ddaa07710c772
6
+ metadata.gz: 0013422f53f87a18650ace689857a4cb294e2c6d6e150326319a5e138014fe5174f9f3487627c27c595a8bc1dd9b93eddf486c2e0e0d2fcdbf1b4418e75c851a
7
+ data.tar.gz: deeacccc2f333c0376509bd2ec00ec67fb21c19acd9adda904671e3198c27ece6c446bc0d40338ff3a68f12bfff6ae5ef8a985d10be70185d7dc37aeb86bd7db
data/lib/weel.rb CHANGED
@@ -180,7 +180,7 @@ class WEEL
180
180
  @nudge.clear
181
181
  @nudge.push(nil)
182
182
  end
183
- def nudged?
183
+ def wait_until_nudged!
184
184
  @nudge.pop
185
185
  end
186
186
  attr_reader :id, :message
@@ -319,7 +319,7 @@ class WEEL
319
319
  end #}}}
320
320
 
321
321
  class DSLRealization # {{{
322
- def initialize
322
+ def initialize #{{{
323
323
  @__weel_search_positions = {}
324
324
  @__weel_positions = Array.new
325
325
  @__weel_main = nil
@@ -330,7 +330,7 @@ class WEEL
330
330
  @__weel_state = :ready
331
331
  @__weel_status = Status.new(0,"undefined")
332
332
  @__weel_sim = -1
333
- end
333
+ end #}}}
334
334
  attr_accessor :__weel_search_positions, :__weel_positions, :__weel_main, :__weel_data, :__weel_endpoints, :__weel_handlerwrapper, :__weel_handlerwrapper_args
335
335
  attr_reader :__weel_state, :__weel_status
336
336
 
@@ -339,17 +339,17 @@ class WEEL
339
339
  # position: a unique identifier within the wf-description (may be used by the search to identify a starting point)
340
340
  # endpoint: (only with :call) ep of the service
341
341
  # parameters: (only with :call) service parameters
342
- def call(position, endpoint, parameters: {}, finalize: nil, update: nil, &finalizeblk)
342
+ def call(position, endpoint, parameters: {}, finalize: nil, update: nil, &finalizeblk) #{{{
343
343
  __weel_activity(position,:call,endpoint,parameters,finalize||finalizeblk,update)
344
- end
344
+ end #}}}
345
345
  # when two params, second param always script
346
346
  # when block and two params, parameters stays
347
- def manipulate(position, parameters=nil, script=nil, &scriptblk)
347
+ def manipulate(position, parameters=nil, script=nil, &scriptblk) #{{{
348
348
  if scriptblk.nil? && script.nil? && !parameters.nil?
349
349
  script, parameters = parameters, nil
350
350
  end
351
351
  __weel_activity(position,:manipulate,nil,parameters||{},script||scriptblk)
352
- end
352
+ end #}}}
353
353
 
354
354
  # Parallel DSL-Construct
355
355
  # Defines Workflow paths that can be executed parallel.
@@ -558,20 +558,20 @@ class WEEL
558
558
  [code || blk, :post_test]
559
559
  end # }}}
560
560
 
561
- def escape
561
+ def escape #{{{
562
562
  return if __weel_is_in_search_mode
563
563
  throw :escape
564
- end
565
- def terminate
564
+ end #}}}
565
+ def terminate #{{{
566
566
  return if __weel_is_in_search_mode
567
567
  self.__weel_state = :finishing
568
- end
569
- def stop(position)
568
+ end #}}}
569
+ def stop(position) #{{{
570
570
  searchmode = __weel_is_in_search_mode(position)
571
571
  return if searchmode
572
572
  __weel_progress searchmode, position, true
573
573
  self.__weel_state = :stopping
574
- end
574
+ end #}}}
575
575
 
576
576
  def status # {{{
577
577
  @__weel_status
@@ -584,7 +584,7 @@ class WEEL
584
584
  end # }}}
585
585
 
586
586
  private
587
- def __weel_protect_yield(*local)
587
+ def __weel_protect_yield(*local) #{{{
588
588
  begin
589
589
  yield(*local) if block_given?
590
590
  rescue NameError => err # don't look into it, or it will explode
@@ -596,9 +596,9 @@ class WEEL
596
596
  @__weel_handlerwrapper::inform_syntax_error(@__weel_handlerwrapper_args,Exception.new(err.message),nil)
597
597
  nil
598
598
  end
599
- end
599
+ end #}}}
600
600
 
601
- def __weel_eval_condition(condition)
601
+ def __weel_eval_condition(condition) #{{{
602
602
  begin
603
603
  handlerwrapper = @__weel_handlerwrapper.new @__weel_handlerwrapper_args unless condition.is_a?(Proc)
604
604
  condition.is_a?(Proc) ? condition.call : handlerwrapper.test_condition(ReadStructure.new(@__weel_data,@__weel_endpoints),condition)
@@ -612,9 +612,9 @@ class WEEL
612
612
  @__weel_handlerwrapper::inform_syntax_error(@__weel_handlerwrapper_args,Exception.new(err.message),nil)
613
613
  nil
614
614
  end
615
- end
615
+ end #}}}
616
616
 
617
- def __weel_progress(searchmode, position, skip=false)
617
+ def __weel_progress(searchmode, position, skip=false) #{{{
618
618
  ipc = {}
619
619
  if searchmode == :after
620
620
  wp = WEEL::Position.new(position, :after, nil)
@@ -639,7 +639,7 @@ class WEEL
639
639
 
640
640
  @__weel_handlerwrapper::inform_position_change @__weel_handlerwrapper_args, ipc
641
641
  wp
642
- end
642
+ end #}}}
643
643
 
644
644
  def __weel_activity(position, type, endpoints, parameters, finalize, update=nil)# {{{
645
645
  position = __weel_position_test position
@@ -849,29 +849,29 @@ class WEEL
849
849
  end
850
850
  end # }}}
851
851
 
852
- def __weel_sim
852
+ def __weel_sim #{{{
853
853
  @__weel_state == :simulating
854
- end
854
+ end #}}}
855
855
 
856
- def __weel_sim_start(what,options={})
856
+ def __weel_sim_start(what,options={}) #{{{
857
857
  current_branch_sim_pos = Thread.current[:branch_sim_pos]
858
858
  Thread.current[:branch_sim_pos] = @__weel_sim += 1
859
859
  handlerwrapper = @__weel_handlerwrapper.new @__weel_handlerwrapper_args
860
860
  handlerwrapper.simulate(what,:start,Thread.current[:branch_sim_pos],current_branch_sim_pos,options)
861
861
  [handlerwrapper, current_branch_sim_pos]
862
- end
862
+ end #}}}
863
863
 
864
- def __weel_sim_stop(what,handlerwrapper,current_branch_sim_pos,options={})
864
+ def __weel_sim_stop(what,handlerwrapper,current_branch_sim_pos,options={}) #{{{
865
865
  handlerwrapper.simulate(what,:end,Thread.current[:branch_sim_pos],current_branch_sim_pos,options)
866
866
  Thread.current[:branch_sim_pos] = current_branch_sim_pos
867
- end
867
+ end #}}}
868
868
 
869
869
  public
870
- def __weel_finalize
870
+ def __weel_finalize #{{{
871
871
  __weel_recursive_join(@__weel_main)
872
872
  @__weel_state = :stopped
873
873
  @__weel_handlerwrapper::inform_state_change @__weel_handlerwrapper_args, @__weel_state
874
- end
874
+ end #}}}
875
875
 
876
876
  def __weel_state=(newState)# {{{
877
877
  return @__weel_state if newState == @__weel_state && @__weel_state != :ready
@@ -880,6 +880,7 @@ class WEEL
880
880
  @__weel_state = newState
881
881
 
882
882
  if newState == :stopping || newState == :finishing
883
+ @__weel_status.nudge!
883
884
  __weel_recursive_continue(@__weel_main)
884
885
  end
885
886
 
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.63"
3
+ s.version = "1.99.64"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Preliminary release of the 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.63
4
+ version: 1.99.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-04-25 00:00:00.000000000 Z
12
+ date: 2018-04-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-unit
@@ -101,45 +101,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 2.6.6
104
+ rubygems_version: 2.7.6
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Preliminary release of the Workflow Execution Engine Library (WEEL)
108
108
  test_files:
109
109
  - test/TestHandlerWrapper.rb
110
- - test/ContinueTest.rb
111
- - test/TestWorkflow.rb
112
110
  - test/TestMixin.rb
113
- - test/SimHandlerWrapper.rb
111
+ - test/TestWorkflow.rb
114
112
  - test/README
113
+ - test/ContinueTest.rb
114
+ - test/SimHandlerWrapper.rb
115
+ - test/exec/tc_again.rb
116
+ - test/exec/tc_exec.rb
115
117
  - test/wfp_iteration/tc_structuredloop.rb
116
- - test/wfp_adv_branching/tc_structured_partial_join.rb
118
+ - test/basic/tc_choose.rb
119
+ - test/basic/tc_parallel.rb
120
+ - test/basic/tc_codereplace.rb
121
+ - test/basic/tc_wf_control.rb
122
+ - test/basic/tc_handler.rb
123
+ - test/basic/tc_state.rb
124
+ - test/basic/tc_endpoint.rb
125
+ - test/basic/tc_search.rb
126
+ - test/basic/tc_data.rb
127
+ - test/speed/tc_speed2.rb
128
+ - test/speed/tc_speed1.rb
129
+ - test/wfp_adv_branching/tc_generalsynchronizingmerge.rb
130
+ - test/wfp_adv_branching/tc_structured_discriminator.rb
131
+ - test/wfp_adv_branching/tc_multimerge.rb
132
+ - test/wfp_adv_branching/tc_multichoice_structuredsynchronizingmerge.rb
133
+ - test/wfp_adv_branching/tc_generalizedjoin.rb
117
134
  - test/wfp_adv_branching/tc_threadmerge.rb
118
135
  - test/wfp_adv_branching/tc_threadsplit.rb
119
- - test/wfp_adv_branching/tc_multichoice_structuredsynchronizingmerge.rb
136
+ - test/wfp_adv_branching/tc_structured_partial_join.rb
120
137
  - test/wfp_adv_branching/tc_localsynchronizingmerge.rb
121
- - test/wfp_adv_branching/tc_generalizedjoin.rb
122
- - test/wfp_adv_branching/tc_generalsynchronizingmerge.rb
123
- - test/wfp_adv_branching/tc_multimerge.rb
124
- - test/wfp_adv_branching/tc_structured_discriminator.rb
125
- - test/wfp_state_based/tc_deferredchoice.rb
126
- - test/wfp_state_based/tc_interleavedparallelrouting.rb
127
- - test/speed/tc_speed1.rb
128
- - test/speed/tc_speed2.rb
129
- - test/exec/tc_again.rb
130
- - test/exec/tc_exec.rb
138
+ - test/complex/tc_parallel_stop.rb
139
+ - test/complex/tc_generalsynchonizingmerge_loopsearch.rb
140
+ - test/complexsearch/tc_search.rb
131
141
  - test/wfp_basic/tc_parallelsplit_synchronization.rb
132
142
  - test/wfp_basic/tc_exclusivechoice_simplemerge.rb
133
143
  - test/wfp_basic/tc_sequence.rb
134
- - test/complex/tc_generalsynchonizingmerge_loopsearch.rb
135
- - test/complex/tc_parallel_stop.rb
136
- - test/basic/tc_state.rb
137
- - test/basic/tc_endpoint.rb
138
- - test/basic/tc_data.rb
139
- - test/basic/tc_choose.rb
140
- - test/basic/tc_search.rb
141
- - test/basic/tc_handler.rb
142
- - test/basic/tc_codereplace.rb
143
- - test/basic/tc_wf_control.rb
144
- - test/basic/tc_parallel.rb
145
- - test/complexsearch/tc_search.rb
144
+ - test/wfp_state_based/tc_deferredchoice.rb
145
+ - test/wfp_state_based/tc_interleavedparallelrouting.rb