[rules-users] Drools and threads
Wolfgang Laun
wolfgang.laun at gmail.com
Tue May 17 06:01:07 EDT 2011
2011/5/17 Abhay B. Chaware <Abhay.Chaware at kpitcummins.com>
> Hi
>
> I have few questions about Drools.
>
> Are rules compiled, partially compiled or interpreted ?
>
Rules are indeed compiled, but any system where the order of execution
is so highly dynamic has to do some operation in an interpretative mode.
> When I call fireAllRules(), does it ( or can it ) create a new thread that
> runs parallely or the operation is sequential and the caller program HAS TO
> wait till all rules execution is done ?
>
No special thread is created. fireAllRules() returns when no more rule
activations are to be "fired".
> Also, How is the application data integrity guarantied? E.g. what happens
> when some of the facts are changed in middle of rules being executed .. ?
> what should happen ?
>
When a rule activation is executed, the code of the consequence frequently
changes one or more facts. This results in reevaluations of rule conditions,
etc. This is just the way Drools works.
-W
> -abhay
>
> This message contains information that may be privileged or confidential
> and is the property of the KPIT Cummins Infosystems Ltd. 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. KPIT Cummins Infosystems Ltd. does not accept any liability
> for virus infected mails.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110517/bd002c56/attachment.html
More information about the rules-users
mailing list