Short answer is you don't need to. Rules are declarative not procedural, it is up to
the rules engine to optimize how the rules are fired, if it knows that rule no 4 means
that none of the other rules can be fired then it won't evaluate them.
Thomas
> -----Original Message-----
> From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-
> bounces(a)lists.jboss.org] On Behalf Of Nikhil S. Kulkarni
> Sent: 11 June 2010 13:37
> To: 'rules-users(a)lists.jboss.org'
> Subject: Re: [rules-users] rules-users Digest, Vol 43, Issue 60
>
> Hi,
>
> Thanks Thomas for Reply for Re: [rules-users] How to break the rules execution
> if one has
> been satisfied ??
> My Question is like in Java as we have break statement so that we can
> terminate the loop,
> So if there are 1000 rules activated and Rule fired is Rule no 4 then How will
> I come out of this
> Immediately in order to save time of rules execution.
>
>
> Thanks & Regards,
> Nikhil S. Kulkarni
>
>
>
>
> -----Original Message-----
> From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-
> bounces(a)lists.jboss.org] On Behalf Of rules-users-request(a)lists.jboss.org
> Sent: Friday, June 11, 2010 5:16 PM
> To: rules-users(a)lists.jboss.org
> Subject: rules-users Digest, Vol 43, Issue 60
>
> Send rules-users mailing list submissions to
> rules-users(a)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(a)lists.jboss.org
>
> You can reach the person managing the list at
> rules-users-owner(a)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. Fwd: [drools-user] Write Drools Books - Packt Publishing.
> (Mark Proctor)
> 2. How to break the rules execution if one has been satisfied ??
> (Nikhil S. Kulkarni)
> 3. Re: How to break the rules execution if one has been
> satisfied ?? (Swindells, Thomas)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 11 Jun 2010 12:07:43 +0100
> From: Mark Proctor <mproctor(a)codehaus.org>
> Subject: [rules-users] Fwd: [drools-user] Write Drools Books - Packt
> Publishing.
> To: Rules Users List <rules-users(a)lists.jboss.org>, Rules Dev List
> <rules-dev(a)lists.jboss.org>
> Message-ID: <4C1218FF.8000608(a)codehaus.org>
> Content-Type: text/plain; charset="iso-8859-1"
>
> -------- Original Message --------Kshipra Singh <kshipras(a)packtpub.com>
>
> Hello Everybody,
> I represent Packt Publishing, the publishers of computer related books.
> We are planning to expand our range of Drools books and are currently
> inviting Drools experts interested in writing books for Packt.
> We do not expect our authors to have any past writing experience. All
> that you need to write for Packt is an expert knowledge of your subject,
> a passion to share it with others and an ability to communicate clearly
> in English.
> So, if you love Drools and fancy writing a book, here's an opportunity
> for you! Send us your book ideas at author(a)packtpub.com. Even if you
> don't have a book idea and are simply interested in writing a book, we
> are keen to hear from you!
> More details about this opportunity are available at :
>
http://authors.packtpub.com/content/packt-invites-drools-book-ideas-authors
> Thanks
> Kshipra Singh
> Author Relationship Manager
> Packt Publishing
>
www.PacktPub.com <
http://www.PacktPub.com>
>
> Skype: kshiprasingh15
> Twitter:
http://twitter.com/packtauthors
>
> Interested in becoming an author? Visit
http://authors.packtpub.com for
> all the information you need about writing for Packt.
>