session.addEventListener(yourEventListener)
more info at
http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/drools-flow/html...
:)
read the doc man! It would be easier for you ;)
________________________________
De : rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] De
la part de santosh mukherjee
Envoyé : vendredi 16 juillet 2010 12:03
À : Rules Users List
Objet : Re: [rules-users] Problem in Drools Flow
Hi,
I want my drools flow process to execute from the beginning for every event that I
receive. Can anybody tell me how this can be done.
Thanks.
Santosh Mukherjee
On Fri, Jul 16, 2010 at 1:24 PM, santosh mukherjee
<sam.sensation@gmail.com<mailto:sam.sensation@gmail.com>> wrote:
Hi,
Can somebody please explain to me how does the events actually flows through in a process.
Do I need to have all the events objects previously stored in working memory?
I mean during the running of a process, at any node suppose I generate a new event object
and insert it into ksession, then will that event object be processed from the start node
of the process??
I guess basically what I am asking is are all the event object processed from the start
node of the process in drools flow?
Thank You
Santosh Mukherjee
2010/7/16 PAYET, Manuel
<manuel.payet@capgemini.com<mailto:manuel.payet@capgemini.com>>
You can make the session a parameter of the constructor of your handler :)
________________________________
De : rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>
[mailto:rules-users-bounces@lists.jboss.org<mailto:rules-users-bounces@lists.jboss.org>]
De la part de santosh mukherjee
Envoyé : vendredi 16 juillet 2010 08:18
À : Rules Users List
Objet : [rules-users] Problem in Drools Flow
Hi,
How can I access the working memory of a process when inside a handler?? I want to check
if certain object is inside the working memory, then only the process should exit from the
workItem. Any idea on how this is to be done is welcome?
Thanks
Santosh Mukherjee
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@lists.jboss.org<mailto:rules-users@lists.jboss.org>
https://lists.jboss.org/mailman/listinfo/rules-users
</PRE><p style="font-family:arial;color:grey"
style="font-size:13px">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.</p><PRE>