Sha256: b39b97ebce243edb67c9ffeb81ac51540033f4ca589aa0ccc6e525961b5589b7

Contents?: true

Size: 729 Bytes

Versions: 1

Compression:

Stored size: 729 Bytes

Contents

#
# Testing OpenWFEru
#
# John Mettraux at openwfe.org
#
# Sat Feb 16 19:07:42 JST 2008
#

require 'flowtestbase'


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

  #def setup
  #end

  #def teardown
  #end

  #
  # Test 0
  #

  class Test0 < OpenWFE::ProcessDefinition
    sequence do
      participant :ref => "toto"
      subprocess :ref => "Test", :unless => "${f:count} == 3"
    end
  end

  def test_0

    #log_level_to_debug

    @engine.register_participant :toto do |workitem|

      if workitem.attributes['count'] != nil
        workitem.count = workitem.count + 1
      else
        workitem.count = 0
      end

      @tracer << workitem.count.to_s
    end

    dotest Test0, "0123"
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruote-0.9.19 test/ft_82_trecu.rb