Sha256: 70fb6c0c18a0038e8b190e8f267b016cad6e09d531ef899301f15b732ba3d7dd

Contents?: true

Size: 990 Bytes

Versions: 1

Compression:

Stored size: 990 Bytes

Contents

#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#

require 'flowtestbase'
require 'openwfe/def'


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

    #def setup
    #end

    #def teardown
    #end


    #
    # Test 0
    #

    class TestPTask46a0 < OpenWFE::ProcessDefinition
        sequence do

            participant :ref => :nemo, :description => "clean the desk"

            _print "${f:description}"
                # just checking that the description is wiped after usage

            participant :ref => :nemo, :task => "force"

            _print "${f:task}"
        end
    end

    def test_0

        @engine.register_participant :nemo do |workitem|
            @tracer.puts workitem.params['ref']
            @tracer.puts workitem.params['description']
            @tracer.puts workitem.params['task']
        end

        dotest(
            TestPTask46a0,
            """
nemo
clean the desk


nemo

force
            """.strip)
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.18 test/ft_46_pparams.rb