2011/5/19 Abhay B. Chaware <Abhay.Chaware(a)kpitcummins.com>
Correct. But does it then internally build the DRL into
binary/compiled
format and then uses it for updating knowledge base ?
------------------------------
*From:* rules-users-bounces(a)lists.jboss.org [mailto:
rules-users-bounces(a)lists.jboss.org] *On Behalf Of *Wolfgang Laun
*Sent:* Thursday, May 19, 2011 11:59 AM
*To:* Rules Users List
*Subject:* Re: [rules-users] Drools and threads
You can feed a KnowledgeBuilder with a number of data formats, DRL being
just one of them. The full standard procedurefor building is to add one or
more resources to the builder (indicating its type), check for errors and
create a KnowledgeBase; then proceed with a session, etc.
-W
2011/5/19 Abhay B. Chaware <Abhay.Chaware(a)kpitcummins.com>
Little confused about the third question I had, about rules compilation. I
now know that rules are to be compiled. When I use Guvnor, I have to
package the rules ( this is where they are compiled into binary format )
and download the package file and feed it into the production memory /
knowledge base using changesets/agents.
But I have also seen examples of drools and also created a few ones where I
build the eclipse project and package the entire app as webapp ( .war ) and
the rules file is in the classes/lib directory as a .drl file. ( uncompiled
). And it still works ! Does the drools runtime compile it at runtime ?
and then uses it or what ?
Regards,
Abhay Chaware
Sr. Designer | KPIT Cummins Infosystems Ltd | Board: +91 020 6652 5000 |
Extn: 2989 | abhay.chaware(a)kpitcummins.com |www.kpitcummins.com
P Please consider the environment before printing this e-mail
------------------------------
*From:* rules-users-bounces(a)lists.jboss.org [mailto:
rules-users-bounces(a)lists.jboss.org] *On Behalf Of *Wolfgang Laun
*Sent:* Tuesday, May 17, 2011 3:31 PM
*To:* Rules Users List
*Subject:* Re: [rules-users] Drools and threads
2011/5/17 Abhay B. Chaware <Abhay.Chaware(a)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(a)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 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(a)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 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(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users