Sha256: 8c31599521331dd3b2d9030b502fc2c8d78471270e8ffaf50dcc103d4f24cee2

Contents?: true

Size: 1014 Bytes

Versions: 10

Compression:

Stored size: 1014 Bytes

Contents

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

require 'flowtestbase'
require 'openwfe/def'

include OpenWFE


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

    #def setup
    #end

    #def teardown
    #end


    #
    # Test 0
    #

    class TestPTask46a0 < 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 xxxx_0
    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

10 entries across 10 versions & 1 rubygems

Version Path
openwferu-0.9.10 test/ft_46_pparams.rb
openwferu-0.9.10.653 test/ft_46_pparams.rb
openwferu-0.9.11 test/ft_46_pparams.rb
openwferu-0.9.12 test/ft_46_pparams.rb
openwferu-0.9.12.863 test/ft_46_pparams.rb
openwferu-0.9.13 test/ft_46_pparams.rb
openwferu-0.9.14 test/ft_46_pparams.rb
openwferu-0.9.15 test/ft_46_pparams.rb
openwferu-0.9.16 test/ft_46_pparams.rb
openwferu-0.9.17 test/ft_46_pparams.rb