[rules-users] How to figure out the recent node(s) in a drools flow ?

PAYET, Manuel manuel.payet at capgemini.com
Thu May 27 04:32:07 EDT 2010


Excuse me, I think that I haven't been clear enough.
The drools-bam module doesn't force you to activate the persistence. 
That's two differents things in fact. 
>From what I've understood of the execution mechanism of drools, by default, it doesn't write anything in any database, so, if you want to have the recent node state of a flow from oustide the program that executes the flow, you have to write into a database, I can't figure out any other solutions...
Drools-bam module creates two really simple tables that's named by default processinstancelog and nodeinstancelog. So it's really easy to request in those. That's the only way I can find out for your matter.

By the way drools-bam can be found in the maven jboss repository (version 5.1.0-M1).

If you find out any other solution, please tell me, I'm interested.

-----Message d'origine-----
De : robert.weissmann at web.de [mailto:robert.weissmann at web.de] 
Envoyé : mercredi 26 mai 2010 22:30
À : Rules Users List; PAYET, Manuel
Objet : Re: [rules-users] How to figure out the recent node(s) in a drools flow ?

Hm,

for the event-listener way I need to have an App up and running to catch those, but what about an App which will be turned on later, but needs to know the actuall state of the process. This leaves only the first possibility, to use the persistence mechanism and check out the database ?

That sounds pretty strange to me, since the mechanism to continue from the actual (last actual) state of the process must be there already (or is this not possible with the drools flow ? ) and therefor I was hoping to get direct API-access to this mechanism.

So please, let me know if the DB is the only way to figure out at which recent state (which nodes are recently active) the process instance is or if there is some API to get this information directly.

Cheers, Rob.

Am 26.05.2010, 10:15 Uhr, schrieb PAYET, Manuel
<manuel.payet at capgemini.com>:

> There are different ways of doing this:
> -you can activate the drools-bam module to trace the activities of 
> your nodes in database -you can add an eventlistener to your process 
> (session.addEventListener) and by this, you can track which node was 
> activated etc...
> -probably other ways :p
>
> -----Message d'origine-----
> De : rules-users-bounces at lists.jboss.org
> [mailto:rules-users-bounces at lists.jboss.org] De la part de Robert 
> Envoyé : mercredi 26 mai 2010 10:15 À : rules-users at lists.jboss.org 
> Objet : [rules-users] How to figure out the recent node(s) in a drools 
> flow ?
>
> How am I able to figure out at which point (node(s)) the recent 
> process instance is ?
>
> I was looking hard for some methods in the API, but could not find any.
>
> Cheers, Rob.
>
> --
> Erstellt mit Operas revolutionärem E-Mail-Modul:  
> http://www.opera.com/mail/
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>
>
>
>
> This message contains information that may be privileged or confidential  
> and is the property of the Capgemini Group. It is
> intended only for the person to whom it is addressed. If you are not the  
> intended recipient, you are not authorized to
> read, print, retain, copy, disseminate, distribute, or use this message  
> or any part thereof. If you receive this message
> in error, please notify the sender immediately and delete all copies of  
> this message.
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


-- 
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/






This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this message.





More information about the rules-users mailing list