On Tue, Mar 20, 2012 at 09:32:43AM -0700, Claudio wrote:
>
> We have a web application, working in a production environment under ruby
> 1.8.7 and rails 3.0, that use ruote.
>
> I am trying to update it from Ruote 2.2.0 to 2.3.0.
>
> In a storage participant, the #consume method of Ruote::StorageParticipant
> was re-defined to execute a pre-action (send an email to users who have to
> process the workitem).
>
> (...)
>
> However in my tests I notice that the overloaded method is not called any
> more.
>
> Is there a better way to do it?
Hello Claudio,
welcome back!
You could do
module Arts
module Participants
class Inbox < Ruote::StorageParticipant
# Wraps the parent on_workitem method to emit email notifications.
def on_workitem
MailDigest.task_notification(workitem)
super
end
end
end
end
The #consume method is getting slowly replaced by the #on_workitem, to show
that the participant 'reacts' on workitems.
Sorry for the inconvenience, best regards,
John
--
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