Sha256: 2548dc67e2eda7ada1c89cf5355d3dd9f9db49f76347c406844c86fabf51d955

Contents?: true

Size: 819 Bytes

Versions: 1

Compression:

Stored size: 819 Bytes

Contents

#
# Testing OpenWFE
#
# John Mettraux at openwfe.org
#
# Tue Jan  2 13:14:37 JST 2007
#

require 'openwfe/def'
require 'openwfe/participants/participants'
require 'flowtestbase'


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

    #def setup
    #end

    #def teardown
    #end

    #
    # Test 0
    #

    class Test0 < OpenWFE::ProcessDefinition
        sequence do
            set :field => "participant_list", :value => "a, b, c"
            iterator :on_value => "${f:participant_list}", :to_variable => "p" do
                participant "${p}"
            end
            _print "done."
        end
    end

    def test_0

        @engine.register_participant "." do |workitem|
            @tracer << workitem.participant_name
        end

        dotest Test0, "abcdone."
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openwferu-0.9.17 test/ft_15b_iterator.rb