Sha256: b2b35a76d0fb21e280ac2d1cc85f829c7b6cc9ad47894ea86bc77ca0db16e382

Contents?: true

Size: 878 Bytes

Versions: 1

Compression:

Stored size: 878 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.19 test/ft_46_pparams.rb