Thanks sumedha. But the thing is that i was having very period to do this. So i have not gone into full detail.
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?


On 2/8/07, rules-users-request@lists.jboss.org < rules-users-request@lists.jboss.org> wrote:
Send rules-users mailing list submissions to
        rules-users@lists.jboss.org

To subscribe or unsubscribe via the World Wide Web, visit
         https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
        rules-users-request@lists.jboss.org

You can reach the person managing the list at
        rules-users-owner@lists.jboss.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-users digest..."


Today's Topics:

   1. retracting a fact after all interested rules have fired??
      (Justine Hlista)
   2. Re: Adding DROOLS/JBoss Rules to classpath (Kris Verlaenen)
   3. Rule engine query. (Mahantesh)
   4. Rule engine query. (Mahantesh)
   5. Re: Rule engine query. (sumedha rubasinghe)


----------------------------------------------------------------------

Message: 1
Date: Wed, 7 Feb 2007 18:00:25 -0600
From: "Justine Hlista" <justine@vsasset.com>
Subject: [rules-users] retracting a fact after all interested rules
        have    fired??
To: rules-users@lists.jboss.org
Message-ID: <cc2c89a0702071600k8a3196fo200b693fcbe483@mail.gmail.com >
Content-Type: text/plain; charset="iso-8859-1"

Need some instruction for retraction strategies. We have an application that
receives messages about the status of various things in the system, and at
the moment I am asserting these messages as facts. The rules are written
against these messages. Various rules might be interested in various values
in the message, and they all fire independently. The problem is that after
all the existing rules that are interested in the message have fired, I want
to retract the message. How do I ensure that all the interested rules have
fired first??

At the moment, I am trying to use a salience value of -1 to make sure a
simple "cleanup" rule fires last:

rule "cleanupMessage"
no-loop true
salience -1
    when
        msg : MyMessage()
    then
        retract(msg)
end

Does this sound like a reasonable solution? Is there a better one??

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070207/215f8d9e/attachment-0001.html

------------------------------

Message: 2
Date: Thu, 8 Feb 2007 02:33:05 +0100
From: "Kris Verlaenen" <kris.verlaenen@cs.kuleuven.be >
Subject: Re: [rules-users] Adding DROOLS/JBoss Rules to classpath
To: "Rules Users List" <rules-users@lists.jboss.org>
Message-ID: <001c01c74b21$14fe42c0$a9925b0a@BORG2 >
Content-Type: text/plain; charset="windows-1252"

Yes, the drools jars do not contain any source by default (to limit the size of the jars).
There are two ways to use the source of these classes though:
* 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.
* 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.

Kris

  ----- Original Message -----
  From: Steven Williams
  To: Rules Users List
  Sent: Wednesday, February 07, 2007 1:53 AM
  Subject: Re: [rules-users] Adding DROOLS/JBoss Rules to classpath


  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?

  thanks
  Steve


  On 2/7/07, Kris Verlaenen <kris.verlaenen@cs.kuleuven.be> wrote:
    Currently, a JBoss Rules project is just a Java project with two additional characteristics:
     * The JBoss Rules classpath container is added to the classpath of the project
     * A JBoss Rules builder automatically checks all rules for possible errors

    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.

    Kris

      ----- Original Message -----
      From: Grimshaw, Jeffrey
      To: Rules Users List
      Sent: Monday, February 05, 2007 7:23 PM
      Subject: [rules-users] Adding DROOLS/JBoss Rules to classpath


      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:

      <classpathentry kind="con" path="DROOLS/JBoss Rules"/>

      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.

      Thanks,

      -- Jeff Grimshaw





--------------------------------------------------------------------------


      _______________________________________________
      rules-users mailing list
      rules-users@lists.jboss.org
      https://lists.jboss.org/mailman/listinfo/rules-users



    Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm for more information.


    _______________________________________________
    rules-users mailing list
    rules-users@lists.jboss.org
    https://lists.jboss.org/mailman/listinfo/rules-users





  --
  Steven Williams

  Supervising Consultant

  Object Consulting
  Office: 8615 4500 Mob: 0439 898 668 Fax: 8615 4501
   stevenw@objectconsulting.com.au
  www.objectconsulting.com.au

  consulting | development | training | support
  our experience makes the difference


------------------------------------------------------------------------------


  _______________________________________________
  rules-users mailing list
   rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070208/0054f20a/attachment-0001.html

------------------------------

Message: 3
Date: Thu, 8 Feb 2007 12:03:18 +0530
From: Mahantesh < mahanteshsg@gmail.com>
Subject: [rules-users] Rule engine query.
To: rules-users@lists.jboss.org
Message-ID:
        < ee7c194c0702072233t2e1f1d88q1d5aca2967dd242d@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I am using JBoss Rule Engine Drools 3.0 from last 2 months. As i know the
rule engine is used in an application where the data or policies will be
changing on and on. But i am using in an project which has something
different.

I am using it for filtering the data. I am having a server where there are
lot of processes will be running and each process is having so many
attributes. So as i said i am using it for filtering the data based
different/combination of attributes.
But i am not able to understand whether i can use rule engine for this
purpose? because samething i can do by executing the SQL query instead of
using Rule Engine.

Whether it makes any sense or it is unneccessary performance bottleneck? if
i use what all the merits and demerits?

Thanks in advance,
Mahantesh.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070208/507f4199/attachment-0001.html

------------------------------

Message: 4
Date: Thu, 8 Feb 2007 14:29:31 +0530
From: Mahantesh < mahanteshsg@gmail.com>
Subject: [rules-users] Rule engine query.
To: rules-users@lists.jboss.org
Message-ID:
        < ee7c194c0702080059q27c59e0cvc1c0fae7020f8c65@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi,

I am using JBoss Rule Engine Drools 3.0 from last 2 months. As i know the
rule engine is used in an application where the data or policies will be
changing on and on. But i am using in an project which has something
different.

I am using it for filtering the data. I am having a server where there are
lot of processes will be running and each process is having so many
attributes. So as i said i am using it for filtering the data based
different/combination of attributes.
But i am not able to understand whether i can use rule engine for this
purpose? because samething i can do by executing the SQL query instead of
using Rule Engine.

Whether it makes any sense or it is unneccessary performance bottleneck? if
i use what all the merits and demerits?

Thanks in advance,
Mahantesh.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070208/c320a71e/attachment-0001.html

------------------------------

Message: 5
Date: Thu, 8 Feb 2007 16:16:00 +0530
From: "sumedha rubasinghe" < sumedha.r@gmail.com>
Subject: Re: [rules-users] Rule engine query.
To: "Rules Users List" <rules-users@lists.jboss.org >
Message-ID:
        <358531180702080246v654ecb29g369d14519bb275e5@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Mahantesh,
Using the Rule Engine is also a possibility. But you have to consider the
merits & de-merits yourself considering the performance requirements of your
application.
Why don't you use AOP for this?

/sumedha


On 2/8/07, Mahantesh <mahanteshsg@gmail.com> wrote:
>
> Hi,
>
> I am using JBoss Rule Engine Drools 3.0 from last 2 months. As i know the
> rule engine is used in an application where the data or policies will be
> changing on and on. But i am using in an project which has something
> different.
>
> I am using it for filtering the data. I am having a server where there are
> lot of processes will be running and each process is having so many
> attributes. So as i said i am using it for filtering the data based
> different/combination of attributes.
> But i am not able to understand whether i can use rule engine for this
> purpose? because samething i can do by executing the SQL query instead of
> using Rule Engine.
>
> Whether it makes any sense or it is unneccessary performance bottleneck?
> if i use what all the merits and demerits?
>
> Thanks in advance,
> Mahantesh.
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users@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/20070208/33198bec/attachment.html

------------------------------

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


End of rules-users Digest, Vol 3, Issue 17
******************************************