Sha256: b62a3f6ab0e160e34a1b06d78487c478b4d0def65877297e37fc623bfde28749

Contents?: true

Size: 956 Bytes

Versions: 1

Compression:

Stored size: 956 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['description']
            @tracer.puts workitem.params['task']
        end

        dotest(
            TestPTask46a0,
            """
clean the desk



force
            """.strip)
    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
openwferu-0.9.9 test/ft_46_pparams.rb