On Wed, Sep 10, 2008 at 10:07 PM, Corin Moss <[EMAIL PROTECTED]> wrote: > > Hi, > > I've got one participant that acts as an interface to one of 5 different > participants (I'll call them sub-participants). A few of those > sub-participants define an Anonymous class with specific methods that > provide functionality appropriate to the context. > > I've just discovered the OpenWFE#fulldup method, and obviously am > running into a problem as my Anonymous class is (of course) a singleton, > and thus can't be marshalled / cloned / duped etc. I'm guessing the > appropriate response from me is to define a fulldup method on my > anonymous class. Would you be able to point me to where I could find > out more about the correct response to Object#fulldup? Is it simply a > complete clone of the original object? And what exactly is the cloned > object used for?
Hello Corin, fulldup is available at http://github.com/jmettraux/ruote/tree/r0.9.19/lib/openwfe/utils.rb#L73-117 It should simply produces a complete of the object. In some situations it's OK to have a shallow clone, letting two workitems share the same object, but in some concurrence cases this is not desirable. If your object responds to fulldup (even the class) then things should be fine. I guess you could be safe with a shallow fulldup, but remember that the engine, for some expressions (ParticipantExpression is one of them), stores the workitem in its expression storage. This is important for when a participant expression gets cancelled or times out and the flow has to resume with the workitem as it was when it reached the expression. I hope this well help, cheers, -- John Mettraux - http://jmettraux.wordpress.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "OpenWFEru users" 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-users?hl=en -~----------~----~----~----~------~----~------~--~---
