On Thu, Mar 31, 2011 at 07:54:17PM +0200, Simone Carletti wrote:
>
> Never mind, after reading our code again, I believe we took the wrong way.
> 
> The question about callbacks is still open, but I don't believe we need them
> anymore in the short time.

Hello Simone,

what about the vanilla

---8<---
class SimoneParticipant < StorageParticipant
  def consume(workitem)
    pre_check(workitem)
    super
  end
  def proceed(workitem)
    post_check(workitem)
    super
  end
end

class ParticipantX < SimoneParticipant
  protected
  def pre_check(workitem)
    # ...
  end
  def post_check(workitem)
    # ...
  end
end

engine.register 'x', ParticipantX
--->8---

?


Best regards,

-- 
John Mettraux - http://jmettraux.wordpress.com

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