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> &lt;<a href="mailto:rules-users-request@lists.jboss.org">
rules-users-request@lists.jboss.org</a>&gt; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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 &#39;help&#39; to<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<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 &quot;Re: Contents of rules-users digest...&quot;<br><br><br>Today&#39;s Topics:<br><br>&nbsp;&nbsp; 1. retracting a fact after all interested rules have fired??<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Justine Hlista)<br>&nbsp;&nbsp; 2. Re: Adding DROOLS/JBoss Rules to classpath (Kris Verlaenen)
<br>&nbsp;&nbsp; 3. Rule engine query. (Mahantesh)<br>&nbsp;&nbsp; 4. Rule engine query. (Mahantesh)<br>&nbsp;&nbsp; 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: &quot;Justine Hlista&quot; &lt;<a href="mailto:justine@vsasset.com">justine@vsasset.com</a>&gt;<br>Subject: [rules-users] retracting a fact after all interested rules
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;have&nbsp;&nbsp;&nbsp;&nbsp;fired??<br>To: <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>Message-ID: &lt;<a href="mailto:cc2c89a0702071600k8a3196fo200b693fcbe483@mail.gmail.com">cc2c89a0702071600k8a3196fo200b693fcbe483@mail.gmail.com
</a>&gt;<br>Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<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 &quot;cleanup&quot; rule fires last:<br><br>rule &quot;cleanupMessage&quot;<br>no-loop true<br>salience -1<br>&nbsp;&nbsp;&nbsp;&nbsp;when<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;msg : MyMessage()<br>&nbsp;&nbsp;&nbsp;&nbsp;then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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: &quot;Kris Verlaenen&quot; &lt;<a href="mailto:kris.verlaenen@cs.kuleuven.be">kris.verlaenen@cs.kuleuven.be</a>
&gt;<br>Subject: Re: [rules-users] Adding DROOLS/JBoss Rules to classpath<br>To: &quot;Rules Users List&quot; &lt;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>Message-ID: &lt;001c01c74b21$14fe42c0$a9925b0a@BORG2
&gt;<br>Content-Type: text/plain; charset=&quot;windows-1252&quot;<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 -&gt; Debug ...), there is a tab there you can use to add sources.&nbsp;&nbsp;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.&nbsp;&nbsp;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.&nbsp;&nbsp;So rebuilding those jars and adding the sources should do the trick for all your projects at once.
<br><br>Kris<br><br>&nbsp;&nbsp;----- Original Message -----<br>&nbsp;&nbsp;From: Steven Williams<br>&nbsp;&nbsp;To: Rules Users List<br>&nbsp;&nbsp;Sent: Wednesday, February 07, 2007 1:53 AM<br>&nbsp;&nbsp;Subject: Re: [rules-users] Adding DROOLS/JBoss Rules to classpath
<br><br><br>&nbsp;&nbsp;In addition to that Kris I have noticed that I can&#39;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>&nbsp;&nbsp;thanks
<br>&nbsp;&nbsp;Steve<br><br><br>&nbsp;&nbsp;On 2/7/07, Kris Verlaenen &lt;<a href="mailto:kris.verlaenen@cs.kuleuven.be">kris.verlaenen@cs.kuleuven.be</a>&gt; wrote:<br>&nbsp;&nbsp;&nbsp;&nbsp;Currently, a JBoss Rules project is just a Java project with two additional characteristics:
<br>&nbsp;&nbsp;&nbsp;&nbsp; * The JBoss Rules classpath container is added to the classpath of the project<br>&nbsp;&nbsp;&nbsp;&nbsp; * A JBoss Rules builder automatically checks all rules for possible errors<br><br>&nbsp;&nbsp;&nbsp;&nbsp;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.&nbsp;&nbsp;The latest version in trunk already contains a shortcut where you can right-click the .project file and select the &quot;Convert to JBoss Rules Project&quot; action.&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;Kris<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;----- Original Message -----<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;From: Grimshaw, Jeffrey<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To: Rules Users List<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sent: Monday, February 05, 2007 7:23 PM<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Subject: [rules-users] Adding DROOLS/JBoss Rules to classpath
<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hi all.&nbsp;&nbsp;I&#39;m having some trouble adding the JBoss Rules custom classpath container to an existing project in Eclipse.&nbsp;&nbsp;I can do it by adding the following line to the project&#39;s .classpath file:<br>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;classpathentry kind=&quot;con&quot; path=&quot;DROOLS/JBoss Rules&quot;/&gt;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Is there another/better way to do this?&nbsp;&nbsp;I would expect to be able to do it somewhere in Build Path --&gt; Add Libraries…, but I have had no luck.
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thanks,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- Jeff Grimshaw<br><br><br><br><br><br>--------------------------------------------------------------------------<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_______________________________________________<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rules-users mailing list
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br><br>
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;&nbsp;&nbsp;&nbsp;_______________________________________________<br>
&nbsp;&nbsp;&nbsp;&nbsp;rules-users mailing list<br>&nbsp;&nbsp;&nbsp;&nbsp;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>&nbsp;&nbsp;&nbsp;&nbsp;<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>&nbsp;&nbsp;--<br>&nbsp;&nbsp;Steven Williams<br><br>&nbsp;&nbsp;Supervising Consultant<br><br>&nbsp;&nbsp;Object Consulting<br>&nbsp;&nbsp;Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501<br>&nbsp;&nbsp;<a href="mailto:stevenw@objectconsulting.com.au">
stevenw@objectconsulting.com.au</a><br>&nbsp;&nbsp;<a href="http://www.objectconsulting.com.au">www.objectconsulting.com.au</a><br><br>&nbsp;&nbsp;consulting | development | training | support<br>&nbsp;&nbsp;our experience makes the difference<br><br>
<br>------------------------------------------------------------------------------<br><br><br>&nbsp;&nbsp;_______________________________________________<br>&nbsp;&nbsp;rules-users mailing list<br>&nbsp;&nbsp;<a href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br>&nbsp;&nbsp;<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 &lt;<a href="mailto:mahanteshsg@gmail.com">
mahanteshsg@gmail.com</a>&gt;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;<a href="mailto:ee7c194c0702072233t2e1f1d88q1d5aca2967dd242d@mail.gmail.com">
ee7c194c0702072233t2e1f1d88q1d5aca2967dd242d@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<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 &lt;<a href="mailto:mahanteshsg@gmail.com">
mahanteshsg@gmail.com</a>&gt;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;<a href="mailto:ee7c194c0702080059q27c59e0cvc1c0fae7020f8c65@mail.gmail.com">
ee7c194c0702080059q27c59e0cvc1c0fae7020f8c65@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<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: &quot;sumedha rubasinghe&quot; &lt;
<a href="mailto:sumedha.r@gmail.com">sumedha.r@gmail.com</a>&gt;<br>Subject: Re: [rules-users] Rule engine query.<br>To: &quot;Rules Users List&quot; &lt;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org
</a>&gt;<br>Message-ID:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;<a href="mailto:358531180702080246v654ecb29g369d14519bb275e5@mail.gmail.com">358531180702080246v654ecb29g369d14519bb275e5@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=&quot;utf-8&quot;
<br><br>Hi Mahantesh,<br>Using the Rule Engine is also a possibility. But you have to consider the<br>merits &amp; de-merits yourself considering the performance requirements of your<br>application.<br>Why don&#39;t you use AOP for this?
<br><br>/sumedha<br><br><br>On 2/8/07, Mahantesh &lt;<a href="mailto:mahanteshsg@gmail.com">mahanteshsg@gmail.com</a>&gt; wrote:<br>&gt;<br>&gt; Hi,<br>&gt;<br>&gt; I am using JBoss Rule Engine Drools 3.0 from last 2 months. As i know the
<br>&gt; rule engine is used in an application where the data or policies will be<br>&gt; changing on and on. But i am using in an project which has something<br>&gt; different.<br>&gt;<br>&gt; I am using it for filtering the data. I am having a server where there are
<br>&gt; lot of processes will be running and each process is having so many<br>&gt; attributes. So as i said i am using it for filtering the data based<br>&gt; different/combination of attributes.<br>&gt; But i am not able to understand whether i can use rule engine for this
<br>&gt; purpose? because samething i can do by executing the SQL query instead of<br>&gt; using Rule Engine.<br>&gt;<br>&gt; Whether it makes any sense or it is unneccessary performance bottleneck?<br>&gt; if i use what all the merits and demerits?
<br>&gt;<br>&gt; Thanks in advance,<br>&gt; Mahantesh.<br>&gt;<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; rules-users mailing list<br>&gt; <a href="mailto:rules-users@lists.jboss.org">
rules-users@lists.jboss.org</a><br>&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>&gt;<br>&gt;<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>