Hi Tomaso, On Jan 14, 2008 1:22 AM, Tomaso Tosolini <[EMAIL PROTECTED]> wrote: > Ok, done and added some tests.
Thanks a lot. > A small question: > in activeparticipants file(and only there), I found that OpenWFE::Engine > class is "reopened to update it's reply method", to let then Engine know > that exist a special kind of workitem that must be handed differently( as in > the active paticipant's reply_to_engine method ). I was wondering when > happens that engine's reply is called directly on active participant's > workitems? My idea is that when the participant decides that its task is > completed it calls the reply_to_engine method where, if needed, it can make > other things before or after have "replied" to engine. I added this "reply method that knows how to deal with 'active' workitems" for cases when the developer is not going through an active participant to get its workitems, and is going directly with Workitem.find(...) method. This engine.reply() method allows him to handle back the workitem once the work is done (without having to lookup/know an active participant). The implicit convention is that when you're done with a workitem and want it to proceed in the process definition, you reply to the engine with the workitem. If you worked with an active participant, the reply method of the participant is at disposition. If you proceed (reply) a workitem and then reproceed it, the engine will complain. If you really want to work after having proceeded a workitem, you're free to keep a copy of that workitem (rewriting it to the database, but then you have to deal with those zombie workitems) or by simply keeping and using an in-memory copy. If you'd like to "work again" on a workitem, you can also write a process definition that handles back the workitem to your participant for a second round of activity. I'm not sure if I have answered to your real question, but I tried to give you the context. Best regards and thanks again, I will run your tests soon. -- John Mettraux -///- http://jmettraux.openwfe.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenWFEru dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/openwferu-dev?hl=en -~----------~----~----~----~------~----~------~--~---
