[rules-users] rules-users Digest, Vol 43, Issue 7

Fnu Mahalakshmi FMahalakshmi at nyx.com
Wed Jun 2 12:39:04 EDT 2010


Hi,

Thanks a lot. I will try it out.
I had one more doubt. Is it anyway possible to pass the data I want to test my rules against in the guvnor editor itself??
I am using a text document as the input data set.

Thanks a ton!

-----Original Message-----
From: rules-users-bounces at lists.jboss.org [mailto:rules-users-bounces at lists.jboss.org] On Behalf Of rules-users-request at lists.jboss.org
Sent: Wednesday, June 02, 2010 12:00 PM
To: rules-users at lists.jboss.org
Subject: rules-users Digest, Vol 43, Issue 7

Send rules-users mailing list submissions to
	rules-users at 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 at lists.jboss.org

You can reach the person managing the list at
	rules-users-owner at 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. Re: Doubt of object referencing in creating rules
      (Esteban Aliverti)


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

Message: 1
Date: Wed, 2 Jun 2010 11:59:35 -0300
From: Esteban Aliverti <esteban.aliverti at gmail.com>
Subject: Re: [rules-users] Doubt of object referencing in creating
	rules
To: Rules Users List <rules-users at lists.jboss.org>
Message-ID:
	<AANLkTikTWWpjlxYsuqlLLOjS8Kz1S_skNwVT5tRYN6lL at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

You could do something like this:

   rule "something"
   when
      $c: Customer (name = "XX")
   then
      $c.getSales().setType("A");
      $c.getSales().setId(1);
   end

Did you read this?:
http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.html

<http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.html>
Best,

On Tue, Jun 1, 2010 at 11:37 AM, Fnu Mahalakshmi <FMahalakshmi at nyx.com>wrote:

> Hi,
>
> Can anyone tell me how I could deal with complex object referencing while
> creating rules?
> I have:
> Class Customer{
> String name;
> Sale sales;
> ..
> }
>
> When I create my rules:
> When customer.name = XXX
> Then sales.type = A
>        sales.id = 1
>
>
> Above is what I want to do.
> I have 2 classes: Customer and sales.
> How could I effectively depict my rules to do the above??
>
> Please help.
>
> Thank you.
>
> Please consider the environment before printing this email.
>
> Visit our website at http://www.nyse.com
>
> ****************************************************
>
> Note:  The information contained in this message and any attachment to it
> is privileged, confidential and protected from disclosure.  If the reader of
> this message is not the intended recipient, or an employee or agent
> responsible for delivering this message to the intended recipient, you are
> hereby notified that any dissemination, distribution or copying of this
> communication is strictly prohibited.  If you have received this
> communication in error, please notify the sender immediately by replying to
> the message, and please delete it from your system.  Thank you.  NYSE
> Euronext.
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100602/0bcf81fd/attachment-0001.html 

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

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


End of rules-users Digest, Vol 43, Issue 7
******************************************
Please consider the environment before printing this email.

Visit our website at http://www.nyse.com

****************************************************

Note:  The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure.  If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.  If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system.  Thank you.  NYSE Euronext.





More information about the rules-users mailing list