I have my ruote workflow defined in following way

....
        prsdef = Ruote.process_definition :name => 'Workflow11116' do
                sequence do
                        participant :Test
                        participant :Test
                end
        end

                engine =
Ruote::Engine.new(Ruote::Worker.new(Ruote::HashStorage.new))
                source = "TestParticipant"
                engine.register_participant :Test, ParticipantTest, 'source' =>
source

                source = "TestParticipant2"
                engine.register_participant :Test, ParticipantTest, 'source' =>
source, :override => false

....

class ParticipantTest
  include Ruote::LocalParticipant

   def initialize (options)
    @options = options
        end

  def consume (workitem)
                puts "========================================================"
                puts "In Participant Test"
                puts @options['source']
                puts "========================================================"

    reply_to_engine(workitem)
  end
end

when the workflow is executed, then output is

puts "========================================================"
puts "In Participant Test"
puts TestParticipant2
puts "========================================================"
puts "========================================================"
puts "In Participant Test"
puts TestParticipant2
puts "========================================================"


How can i define the workflow with two participants with same name and
not overriding the first participant?

Any help is appreciated.

Thanks
Rashi

-- 
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