Hello everyone

I'm totally new with ruote, so sorry for trivial question : 

I try to have "humain participant", ie one take some time before replying 
to the engine and I want to store 
instance of these "HumainParticipant" in active record in rails : 

I have try :

class HumainParticipant < ActiveRecord::Base
  include Ruote::LocalParticipant

 # and a on_workitem with no reply

 def on_workitem(workitem)
     # do somethings
     #  reply
 end
end

This work, but I have no storage of the workitem, and so I would like to 
use "Ruote::StorageParticipant" in order to
have the workitem save by the ruote storage (and not the rails database)

So I try 

class HumainParticipant < ActiveRecord::Base
  include Ruote::StorageParticipant

   # ...
end

But StorageParticipant is not a Module anymore, but a Class

So what is the best way to create is one class of participant, derived from 
active record with a ruote storage for the workitem and a non immediat 
reply to the engine.

Thanks you for your help.

Laurent



  


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