On Sun, Jul 26, 2009 at 11:52 AM, 孫 皓<[email protected]> wrote: > > I have an email participant and listener now. > I would like to trace workitem information by wfid from my listener. > > as wfid: 20090726-bugodipegi, this time. > > But, i got different results between consume and listener process. > I did not call reply_to_engine in the consume process, cause i want > handle it in my listener. > > How can I save the workitem information ?
Hello 孫 皓, so if I understand correctly, you don't want to reply immediately to the engine and you thus want to store the workitem somewhere for a while. Please correct me if I am wrong. You could take some inspiration from ArParticipant : http://github.com/jmettraux/ruote/blob/bd033470a6552db3678c2163bd2379c13b911866/lib/openwfe/extras/participants/ar_participants.rb#L258-282 and use ArWorkitem.from_owfe_workitem(workitem, store_name) to save the workitem to the database. Make sure that store_name is a name unique for your participant (or your listeners) so that the other ArParticipants will not mess with the workitems of your participant. I hope this will help, 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 -~----------~----~----~----~------~----~------~--~---
