I am looking at ways to put processes in ruby classes. The approach I
am thinking about is:

module Processes
  class TestProcess

    def initialize(value)
      @pdef = Route.process_definition :name => 'test' do
        sequence do
          result = some_method(value)  # this could be outside the
process definition
          set :field => 'value' => value
          participant :process_value_participant
          participant :finish_with_value
        end
    end

    def process
      @pdef
    end

    def some_method(value)
      value
    end
  end
end

Does this make sense? or is there a better way.

Don French

-- 
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en

Reply via email to