Hi all,
I would like to give the storage_participant some notification
behavior (with xmpp). This means that, whenever a workitem is given to
a storage_participant, the workitem uri will be notified (published).
When the participant gets cancelled or replies to the engine, the
notification must be retracted or unpublished.
First I thought that this could be handled by a listen expression. But
only apply and reply events can be listened. So if forgot about this.
Next I thought about subclassing storage_participant but some methods
called from RuoteKit's resource /workitem only execute reply or cancel
methods from the original participant, no the subclass. I bit of a
mess so I forgot about this too.
Then I thought that I could modify the original storage_participant to
receive a flag (:xmpp => true). If a participant is registered as
storage_participant with xmpp flag then after consume(), reply(),
cancel()... methods, some xmpp task would be fired up?
Does this sound kind of reasonable?
The thing is that I can't get to know how to pass options to the
storage_participant and grab them in the initialize() method. Here is
the code for registration in RuoteKit:
RuoteKit.engine.participant_list = [
[ 'form', 'Ruote::StorageParticipant', { :xmpp => true } ]
]
I thought that I could insert some options inside the empty hash but I
don't know if that is reserved for some kind of context stuff... Am I
doing something wrong?
Thanks for your comments and help.
Best regards.
Gonzalo.
--
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