Thanks sumedha. But the thing is that i was having very period to do this. So i have not gone into full detail. <br>I want to know one more thing is what is the difference between using DRL rule and XML rule? which is best in all ways?
<br><br><br><div><span class="gmail_quote">On 2/8/07, <b class="gmail_sendername"><a href="mailto:rules-users-request@lists.jboss.org">rules-users-request@lists.jboss.org</a></b> <<a href="mailto:rules-users-request@lists.jboss.org">
rules-users-request@lists.jboss.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Send rules-users mailing list submissions to
<br> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="https://lists.jboss.org/mailman/listinfo/rules-users">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br>or, via email, send a message with subject or body 'help' to<br> <a href="mailto:rules-users-request@lists.jboss.org">rules-users-request@lists.jboss.org
</a><br><br>You can reach the person managing the list at<br> <a href="mailto:rules-users-owner@lists.jboss.org">rules-users-owner@lists.jboss.org</a><br><br>When replying, please edit your Subject line so it is more specific
<br>than "Re: Contents of rules-users digest..."<br><br><br>Today's Topics:<br><br> 1. retracting a fact after all interested rules have fired??<br> (Justine Hlista)<br> 2. Re: Adding DROOLS/JBoss Rules to classpath (Kris Verlaenen)
<br> 3. Rule engine query. (Mahantesh)<br> 4. Rule engine query. (Mahantesh)<br> 5. Re: Rule engine query. (sumedha rubasinghe)<br><br><br>----------------------------------------------------------------------<br><br>
Message: 1<br>Date: Wed, 7 Feb 2007 18:00:25 -0600<br>From: "Justine Hlista" <<a href="mailto:justine@vsasset.com">justine@vsasset.com</a>><br>Subject: [rules-users] retracting a fact after all interested rules
<br> have fired??<br>To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>Message-ID: <<a href="mailto:cc2c89a0702071600k8a3196fo200b693fcbe483@mail.gmail.com">cc2c89a0702071600k8a3196fo200b693fcbe483@mail.gmail.com
</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Need some instruction for retraction strategies. We have an application that<br>receives messages about the status of various things in the system, and at
<br>the moment I am asserting these messages as facts. The rules are written<br>against these messages. Various rules might be interested in various values<br>in the message, and they all fire independently. The problem is that after
<br>all the existing rules that are interested in the message have fired, I want<br>to retract the message. How do I ensure that all the interested rules have<br>fired first??<br><br>At the moment, I am trying to use a salience value of -1 to make sure a
<br>simple "cleanup" rule fires last:<br><br>rule "cleanupMessage"<br>no-loop true<br>salience -1<br> when<br> msg : MyMessage()<br> then<br> retract(msg)<br>end<br><br>Does this sound like a reasonable solution? Is there a better one??
<br><br>Thanks!<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://lists.jboss.org/pipermail/rules-users/attachments/20070207/215f8d9e/attachment-0001.html">http://lists.jboss.org/pipermail/rules-users/attachments/20070207/215f8d9e/attachment-0001.html
</a><br><br>------------------------------<br><br>Message: 2<br>Date: Thu, 8 Feb 2007 02:33:05 +0100<br>From: "Kris Verlaenen" <<a href="mailto:kris.verlaenen@cs.kuleuven.be">kris.verlaenen@cs.kuleuven.be</a>
><br>Subject: Re: [rules-users] Adding DROOLS/JBoss Rules to classpath<br>To: "Rules Users List" <<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>><br>Message-ID: <001c01c74b21$14fe42c0$a9925b0a@BORG2
><br>Content-Type: text/plain; charset="windows-1252"<br><br>Yes, the drools jars do not contain any source by default (to limit the size of the jars).<br>There are two ways to use the source of these classes though:
<br> * When you are trying to debug an application in eclipse, and you open the debug dialog (right click your Java main class, select Debug As -> Debug ...), there is a tab there you can use to add sources. If you download the sources from svn and import these as Java projects in eclipse, you can just add those projects to the source lookup path. I added a screenshot to help you out with that.
<br> * If you add the sources to the drools jars directly (in the same dir as the corresponding class files, so not in a separate src dir or something like that), those sources will be found automatically as well. So rebuilding those jars and adding the sources should do the trick for all your projects at once.
<br><br>Kris<br><br> ----- Original Message -----<br> From: Steven Williams<br> To: Rules Users List<br> Sent: Wednesday, February 07, 2007 1:53 AM<br> Subject: Re: [rules-users] Adding DROOLS/JBoss Rules to classpath
<br><br><br> In addition to that Kris I have noticed that I can't attach source to any of the drools jars in eclipse - it seems to treat these jars differently. Do you know how we can attach the source?<br><br> thanks
<br> Steve<br><br><br> On 2/7/07, Kris Verlaenen <<a href="mailto:kris.verlaenen@cs.kuleuven.be">kris.verlaenen@cs.kuleuven.be</a>> wrote:<br> Currently, a JBoss Rules project is just a Java project with two additional characteristics:
<br> * The JBoss Rules classpath container is added to the classpath of the project<br> * A JBoss Rules builder automatically checks all rules for possible errors<br><br> In the current version of the IDE (3.0.5
) you can only convert existing projects to JBoss rules projects by manually altering the .project and .classpath files as described in the documentation. The latest version in trunk already contains a shortcut where you can right-click the .project file and select the "Convert to JBoss Rules Project" action. I will see whether it is possible to add the JBoss Rules classpath container to the list of libraries that can be added.
<br><br> Kris<br><br> ----- Original Message -----<br> From: Grimshaw, Jeffrey<br> To: Rules Users List<br> Sent: Monday, February 05, 2007 7:23 PM<br> Subject: [rules-users] Adding DROOLS/JBoss Rules to classpath
<br><br><br> Hi all. I'm having some trouble adding the JBoss Rules custom classpath container to an existing project in Eclipse. I can do it by adding the following line to the project's .classpath file:<br>
<br> <classpathentry kind="con" path="DROOLS/JBoss Rules"/><br><br> Is there another/better way to do this? I would expect to be able to do it somewhere in Build Path --> Add Libraries…, but I have had no luck.
<br><br> Thanks,<br><br> -- Jeff Grimshaw<br><br><br><br><br><br>--------------------------------------------------------------------------<br><br><br> _______________________________________________<br> rules-users mailing list
<br> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br> <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br>
<br><br> Disclaimer: <a href="http://www.kuleuven.be/cwis/email_disclaimer.htm">http://www.kuleuven.be/cwis/email_disclaimer.htm</a> for more information.<br><br><br> _______________________________________________<br>
rules-users mailing list<br> <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br> <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users
</a><br><br><br><br><br><br> --<br> Steven Williams<br><br> Supervising Consultant<br><br> Object Consulting<br> Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501<br> <a href="mailto:stevenw@objectconsulting.com.au">
stevenw@objectconsulting.com.au</a><br> <a href="http://www.objectconsulting.com.au">www.objectconsulting.com.au</a><br><br> consulting | development | training | support<br> our experience makes the difference<br><br>
<br>------------------------------------------------------------------------------<br><br><br> _______________________________________________<br> rules-users mailing list<br> <a href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br> <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br>Disclaimer: <a href="http://www.kuleuven.be/cwis/email_disclaimer.htm">
http://www.kuleuven.be/cwis/email_disclaimer.htm</a><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://lists.jboss.org/pipermail/rules-users/attachments/20070208/0054f20a/attachment-0001.html">
http://lists.jboss.org/pipermail/rules-users/attachments/20070208/0054f20a/attachment-0001.html</a><br><br>------------------------------<br><br>Message: 3<br>Date: Thu, 8 Feb 2007 12:03:18 +0530<br>From: Mahantesh <<a href="mailto:mahanteshsg@gmail.com">
mahanteshsg@gmail.com</a>><br>Subject: [rules-users] Rule engine query.<br>To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>Message-ID:<br> <<a href="mailto:ee7c194c0702072233t2e1f1d88q1d5aca2967dd242d@mail.gmail.com">
ee7c194c0702072233t2e1f1d88q1d5aca2967dd242d@mail.gmail.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Hi,<br><br>I am using JBoss Rule Engine Drools 3.0 from last 2 months. As i know the<br>
rule engine is used in an application where the data or policies will be<br>changing on and on. But i am using in an project which has something<br>different.<br><br>I am using it for filtering the data. I am having a server where there are
<br>lot of processes will be running and each process is having so many<br>attributes. So as i said i am using it for filtering the data based<br>different/combination of attributes.<br>But i am not able to understand whether i can use rule engine for this
<br>purpose? because samething i can do by executing the SQL query instead of<br>using Rule Engine.<br><br>Whether it makes any sense or it is unneccessary performance bottleneck? if<br>i use what all the merits and demerits?
<br><br>Thanks in advance,<br>Mahantesh.<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://lists.jboss.org/pipermail/rules-users/attachments/20070208/507f4199/attachment-0001.html">
http://lists.jboss.org/pipermail/rules-users/attachments/20070208/507f4199/attachment-0001.html</a><br><br>------------------------------<br><br>Message: 4<br>Date: Thu, 8 Feb 2007 14:29:31 +0530<br>From: Mahantesh <<a href="mailto:mahanteshsg@gmail.com">
mahanteshsg@gmail.com</a>><br>Subject: [rules-users] Rule engine query.<br>To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>Message-ID:<br> <<a href="mailto:ee7c194c0702080059q27c59e0cvc1c0fae7020f8c65@mail.gmail.com">
ee7c194c0702080059q27c59e0cvc1c0fae7020f8c65@mail.gmail.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Hi,<br><br>I am using JBoss Rule Engine Drools 3.0 from last 2 months. As i know the<br>
rule engine is used in an application where the data or policies will be<br>changing on and on. But i am using in an project which has something<br>different.<br><br>I am using it for filtering the data. I am having a server where there are
<br>lot of processes will be running and each process is having so many<br>attributes. So as i said i am using it for filtering the data based<br>different/combination of attributes.<br>But i am not able to understand whether i can use rule engine for this
<br>purpose? because samething i can do by executing the SQL query instead of<br>using Rule Engine.<br><br>Whether it makes any sense or it is unneccessary performance bottleneck? if<br>i use what all the merits and demerits?
<br><br>Thanks in advance,<br>Mahantesh.<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a href="http://lists.jboss.org/pipermail/rules-users/attachments/20070208/c320a71e/attachment-0001.html">
http://lists.jboss.org/pipermail/rules-users/attachments/20070208/c320a71e/attachment-0001.html</a><br><br>------------------------------<br><br>Message: 5<br>Date: Thu, 8 Feb 2007 16:16:00 +0530<br>From: "sumedha rubasinghe" <
<a href="mailto:sumedha.r@gmail.com">sumedha.r@gmail.com</a>><br>Subject: Re: [rules-users] Rule engine query.<br>To: "Rules Users List" <<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org
</a>><br>Message-ID:<br> <<a href="mailto:358531180702080246v654ecb29g369d14519bb275e5@mail.gmail.com">358531180702080246v654ecb29g369d14519bb275e5@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"
<br><br>Hi Mahantesh,<br>Using the Rule Engine is also a possibility. But you have to consider the<br>merits & de-merits yourself considering the performance requirements of your<br>application.<br>Why don't you use AOP for this?
<br><br>/sumedha<br><br><br>On 2/8/07, Mahantesh <<a href="mailto:mahanteshsg@gmail.com">mahanteshsg@gmail.com</a>> wrote:<br>><br>> Hi,<br>><br>> I am using JBoss Rule Engine Drools 3.0 from last 2 months. As i know the
<br>> rule engine is used in an application where the data or policies will be<br>> changing on and on. But i am using in an project which has something<br>> different.<br>><br>> I am using it for filtering the data. I am having a server where there are
<br>> lot of processes will be running and each process is having so many<br>> attributes. So as i said i am using it for filtering the data based<br>> different/combination of attributes.<br>> But i am not able to understand whether i can use rule engine for this
<br>> purpose? because samething i can do by executing the SQL query instead of<br>> using Rule Engine.<br>><br>> Whether it makes any sense or it is unneccessary performance bottleneck?<br>> if i use what all the merits and demerits?
<br>><br>> Thanks in advance,<br>> Mahantesh.<br>><br>><br>><br>> _______________________________________________<br>> rules-users mailing list<br>> <a href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br>> <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>><br>><br>-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>URL: <a href="http://lists.jboss.org/pipermail/rules-users/attachments/20070208/33198bec/attachment.html">http://lists.jboss.org/pipermail/rules-users/attachments/20070208/33198bec/attachment.html
</a><br><br>------------------------------<br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br><br>End of rules-users Digest, Vol 3, Issue 17<br>******************************************<br></blockquote></div><br>