On Fri, May 22, 2009 at 3:21 PM, Li Xiao <[email protected]> wrote:
>
> tested engine.join_until_idle, and found it never ends, with in memory
> engine, FsPersistedEngine and an ArDbPersistedEngine which is extended
> from DbPersistedEngine and use ArExpressionStorage as
> build_expression_storage. (in Jruby environment)
> and did little debug, found that in the join_untile_idle, the
> storage.size is always 5/12.
> is it correct?

Hi,

sorry #join_until_idle is a test-oriented method (I didn't mentioned
that in the rdoc :( ).

When the storage size is equal to 1, it means the engine has no
currently running process instance, in other words, it means the
engine is empty.
A storage size > 1 means there are alive process instances.

Please do not use join_until_idle. Simply use engine.stop.

When you restart the engine, do not forget to call engine.reload once
all the participants have registered so that all the process instances
in the storage get reactivated (which is especially important for
process instances that where inside of a <sleep> expression or
something like that).


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