I tried this example, but in this case, stored_workitems will also returns 2 wokitems. Doesn't it?
On Tuesday, June 19, 2012 2:45:03 PM UTC-4, John Mettraux wrote: > > > On Tue, Jun 19, 2012 at 11:38:13AM -0700, ddeng wrote: > > > > In the ProcessStatus class, there are two methods: workitems and > > stored_workitems > > > > What is the difference? > > Hello, > > copying the rdoc... > > ---8<--- > # An array of the workitems currently in the storage participant for > this > # process instance. > # > # Do not confuse with #workitems > # > attr_reader :stored_workitems > > # Returns a list of the workitems currently 'out' to participants > # > # For example, with an instance of > # > # Ruote.process_definition do > # concurrence do > # alpha :task => 'clean car' > # bravo :task => 'sell car' > # end > # end > # > # calling engine.process(wfid).workitems will yield two workitems > # (alpha and bravo). > # > # Warning : do not confuse the workitems here with the workitems held > # in a storage participant or equivalent. > # > def workitems > --->8--- > > > Best regards, > > -- > John Mettraux - http://lambda.io/jmettraux > > -- 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
