I am using Ruote 2.2.0

class ParticipantTest
  include Ruote::LocalParticipant

  def initialize (options)
    @options = options
  end

  def consume (workitem)

    # some long running process

    @handle = long_running_process(r)

    reply_to_engine(workitem)
  end

  def cancel(fei, flavour)

    # cancel long running process using @handle ???

  end

end


prsdef = Ruote.process_definition :name => "Test" do
      sequence do
         participant_test
     end
  end

engine = Ruote::Engine.new(Ruote::Worker.new(Ruote::HashStorage.new))

engine.register_participant  'participant_test', ParticipantTest

wflid = engine.launch(prsdef)
engine.wait_for(wflid)



I am having problem in accessing the handle of long running process in
cancel function

how can it be achieved?

Any help asap will be appreciated...

I know that stateful participants no more exist, but is there any way that
@handle can be accessed in cancel

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