Hello Patrick, hello Nathan, I've just pushed to ruote master an addition to the StorageParticipant. It's a #reserve/#delegate pair with an adjusted #proceed.
https://github.com/jmettraux/ruote/commit/b8c46d675750461c128fd7c3aa1c39e90b007405 Given ---8<--- Ruote.define do reviewers end --->8--- where reviewers is a StorageParticipant. One could write: ---8<--- sp = engine.storage_participant wi = sp.by_participant('reviewers').first wi = sp.reserve('toto') raise "failed to serve" if wi.nil? wi.fields['seen'] = true sp.proceed(wi) --->8--- This is how the flow looks: | in delegate(nil) delegate(other) | | +---------------+ +------+ | v v | | v | +-------+ reserve +----------+ proceed | | ready | ---------> | reserved | ---------> out | +-------+ +----------+ I don't know if it fit your needs. I hope that at least it gives you idea for your deployment. If you spot issues with this new feature, please shout. Best regards, -- John Mettraux - http://lambda.io/processi -- 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
