Hi, John
 sorry, i found out the magic you use.
 require the file and extend it, right ?

best regards,
sunhao

2009/07/26 21:55 孫 邕 <[email protected]>:

> *Hi, John*
> *
> *
> * Thank you for your advices.*
> * I have a question to use the ar_workitem file.*
> * There are three classes in one file.*
> *-----------------*
> ArWorkitemTables < ActiveRecord::Migration
> ArWorkitem < ActiveRecord::Base ArParticipant
> -----------------------------
>
> Normally, we write in separated files, like model/ar_workitem,
> db/migrate/create_ar_workitem, and so on.
> Should i separate into 3 files ? or can i have some methods to use it in
> one file ?
>
> best regards,
> sunhao
>
> 2009/07/26 12:10 孫 皓 <[email protected]>:
>
>
>> Hi, John
>>
>>  That is what i want !
>>  Thank you very much
>>
>> Best regards,
>> sunhao.
>>
>>
>> On 2009/07/26, at 7/26 月12:03, John Mettraux wrote:
>>
>>
>>> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to