test/ft_79c_outcome.rb in ruote-0.9.18 vs test/ft_79c_outcome.rb in ruote-0.9.19

- old
+ new

@@ -9,48 +9,48 @@ require 'flowtestbase' class FlowTest79c < Test::Unit::TestCase - include FlowTestBase + include FlowTestBase - class Test0 < OpenWFE::ProcessDefinition + class Test0 < OpenWFE::ProcessDefinition - sequence do - step :a0, :outcomes => [ :a1, :a2 ], :default => :a2 - _print "-" - step :a1, :outcomes => [ :a1, :a2 ], :default => :whatever - _print "-" - step :a2, :outcomes => [ :a1, :a2 ] - end + sequence do + step :a0, :outcomes => [ :a1, :a2 ], :default => :a2 + _print "-" + step :a1, :outcomes => [ :a1, :a2 ], :default => :whatever + _print "-" + step :a2, :outcomes => [ :a1, :a2 ] + end - define "a0" do - sequence do - _print "a0" - #set :f => "outcome", :val => "a1" - set :f => "outcome", :val => "whatever" - end - end - define "a1" do - sequence do - _print "a1" - set :f => "outcome", :val => "a2" - end - end - define "a2" do - sequence do - _print "a2" - end - end + define "a0" do + sequence do + _print "a0" + #set :f => "outcome", :val => "a1" + set :f => "outcome", :val => "whatever" + end end + define "a1" do + sequence do + _print "a1" + set :f => "outcome", :val => "a2" + end + end + define "a2" do + sequence do + _print "a2" + end + end + end - def test_0 + def test_0 - #log_level_to_debug + #log_level_to_debug - #@engine.register_participant :alpha do |wi| - #end + #@engine.register_participant :alpha do |wi| + #end - dotest Test0, %w{ a0 a2 - a1 a2 - a2 }.join("\n") - end + dotest Test0, %w{ a0 a2 - a1 a2 - a2 }.join("\n") + end end