Sha256: d084ccd1038e784bf7cd87cc1f3eebebedda0a94002c73748ba501824fde1959

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#
# Fri May  9 13:43:26 JST 2008
#

require 'flowtestbase'


class FlowTest79c < Test::Unit::TestCase
    include FlowTestBase

    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

        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

        #log_level_to_debug

        #@engine.register_participant :alpha do |wi|
        #end

        dotest Test0, %w{ a0 a2 - a1 a2 - a2 }.join("\n")
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.18 test/ft_79c_outcome.rb