>
> So, what happens is that the Then steps succeeds in checking for the
> correct position in the workflow, but it doesn't move on after that.
> Is there a problem when I call the #wait_for on the same participant
> multiple times?

I think I can answer that question myself... Yes! So after adjusting
my helper method to do a simple sanity check like this

    def workitem
      status = RuoteKit.engine.process(@wfid)
      status.workitems.last
    end

    def current_participant
      workitem.participant_name
    rescue
      nil
    end

    def wait_for_participant_and_resume(participant)
      return if current_participant == participant.to_s

      RuoteKit.engine.wait_for participant
      RuoteKit.engine.resume @wfid, :anyway => true
   end

everything works as expected! Not sure if this is desired behaviour or
if I discovered a bug there...

Cheers mate,
Tom

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