I am currently trying to create an integration test for ruote-kit and a 
worker thread. The code I would like to use is the following:

    wfid = subject.launch(pdef, fields)
    r = subject.wait_for('action' => 'dispatched', 'participant_name' => 
'review_email', 'fei.wfid' => wfid)

However, this only works ~50% of the time (50% of the time it times out). I 
understand, that `wait_for` is meant to only be used by a single worker, 
but I am not sure what the best course of action is in more complex 
scenarios. I am thinking of exploring an options similar to :

    wfid = subject.launch(pdef, fields)
    loop do
        sleep 1
        ps = subject.ps(wfid)
        break if condition satisfied
    end

But that feels pretty messy. Any ideas?

Cheers,
Gordon

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