On Tue, Jun 19, 2012 at 12:06:36PM -0700, ddeng wrote:
>
> def test_misc
>       pdef = Ruote.process_definition do
>          concurrence do
>            alpha :task => 'clean car'
>            bravo :task => 'sell car'
>          end
>       end
>
>     @dashboard.register_participant ".+", Ruote::StorageParticipant
>     [email protected](pdef)
>     sleep(3)
>     puts @dashboard.process(wfid).workitems.inspect
>     puts "-----------"
>     puts @dashboard.process(wfid).stored_workitems.inspect
>
>   end
>
> I this example, stored_workitems and workitems will both return two
> workitems

Yes, since stored_workitems returns all the workitems for the process
instance that are "in the storage participant" and workitems returns all the
workitems that are currently being handled by participants (that include
storage participants).

If you have participants that, for example, dispatch work over AMQP and then
wait for an answer to come, the stored_workitems count will be lesser than
the workitems count (actually the stored_workitems count is always inferior
or equal to the workitems count).

If your participants are all storage participants, then the two counts are
equal.


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

Reply via email to