[rules-dev] rules-dev Digest, Vol 33, Issue 14

Nikhil S. Kulkarni Nikhil.Kulkarni at mastek.com
Wed Sep 16 10:32:47 EDT 2009


Hi,
Apologies for Posting this on dev.

-----Original Message-----
From: rules-dev-bounces at lists.jboss.org [mailto:rules-dev-bounces at lists.jboss.org] On Behalf Of rules-dev-request at lists.jboss.org
Sent: Wednesday, September 16, 2009 7:36 PM
To: rules-dev at lists.jboss.org
Subject: rules-dev Digest, Vol 33, Issue 14

Send rules-dev mailing list submissions to
        rules-dev at lists.jboss.org

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

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

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


Today's Topics:

   1. Problem in accesing rule constraint reference Variable
      (Nikhil S. Kulkarni)
   2. Re: Problem in accesing rule constraint reference Variable
      (Michael Neale)
   3. Problem in accesing rule constraint reference Variable
      (Nikhil S. Kulkarni)


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

Message: 1
Date: Wed, 16 Sep 2009 09:05:37 +0530
From: "Nikhil S. Kulkarni" <Nikhil.Kulkarni at mastek.com>
Subject: [rules-dev] Problem in accesing rule constraint reference
        Variable
To: "rules-dev at lists.jboss.org" <rules-dev at lists.jboss.org>
Message-ID:
        <697B15BDCE7BED458A324B1B4D09463D4CDDA28607 at IND-MHP1MCL001.mastek.com>
Content-Type: text/plain; charset="us-ascii"

Hi,
I am Using Drools 5

I am facing following Issue :-

1.       I am trying to access a rule Using rule flow Process but I am unable to access rule constraint reference

Variable which is easily accessible in normal .drl file



Following is the e.g. :-

In rule flow file, in Split node with XOR option, I have Written when condition in one of its Constraint

e.g.        emp : Employee(age>30,salary>25000)

In this case emp is my rule reference variable. I am trying  to access this  emp in Action node where I have written my then Condition.

e.g. System.out.println(emp.getName());

 but I am not able to get Control of same reference Variable emp. SO My Question is how to obtain same Employee object in that Action node.





Looking forward to listen from you.

Thanks & Regards,
Nikhil

MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20090916/e039e086/attachment-0001.html

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

Message: 2
Date: Wed, 16 Sep 2009 13:54:13 +1000
From: Michael Neale <michael.neale at gmail.com>
Subject: Re: [rules-dev] Problem in accesing rule constraint reference
        Variable
To: Rules Dev List <rules-dev at lists.jboss.org>
Message-ID:
        <96ab3ced0909152054q455c225ufaa25f1572f94ce2 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Probably a question for the user list - this is for the development of
drools itself.

On Wed, Sep 16, 2009 at 1:35 PM, Nikhil S. Kulkarni <
Nikhil.Kulkarni at mastek.com> wrote:

>  Hi,
>
> I am Using Drools 5
>
>
>
> I am facing following Issue :-
>
> 1.       I am trying to access a rule Using rule flow Process but I am
> unable to access rule constraint reference
>
> Variable which is easily accessible in normal .drl file
>
>
>
> Following is the e.g. :-
>
> In rule flow file, in Split node with XOR option, I have Written when
> condition in one of its Constraint
>
> e.g.        *emp* : Employee(age>30,salary>25000)
>
> In this case *emp* is my rule reference variable. I am trying  to access
> this  *emp* in Action node where I have written my then Condition.
>
> e.g. System.out.println(emp.getName());
>
>  but I am not able to get Control of same reference Variable *emp*. SO My
> Question is how to obtain same Employee object in that Action node.
>
>
>
>
>
> Looking forward to listen from you.
>
>
>
> Thanks & Regards,
>
> Nikhil
>
>
>
>
>
> MASTEK LTD.
> Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
> In the US, we're called MAJESCOMASTEK
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>


--
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20090916/2250e101/attachment-0001.html

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

Message: 3
Date: Wed, 16 Sep 2009 19:35:51 +0530
From: "Nikhil S. Kulkarni" <Nikhil.Kulkarni at mastek.com>
Subject: [rules-dev] Problem in accesing rule constraint reference
        Variable
To: "rules-dev at lists.jboss.org" <rules-dev at lists.jboss.org>
Message-ID:
        <697B15BDCE7BED458A324B1B4D09463D4CDDAB318E at IND-MHP1MCL001.mastek.com>
Content-Type: text/plain; charset="us-ascii"

Hi,
I am Using Drools 5

I am facing following Issue :-

1.       I am trying to access a rule Using rule flow Process but I am unable to access rule constraint reference

Variable which is easily accessible in normal .drl file



Following is the e.g. :-

In rule flow file, in Split node with XOR option, I have Written when condition in one of its Constraint

e.g.        emp : Employee(age>30,salary>25000)

In this case emp is my rule reference variable. I am trying  to access this  emp in Action node where I have written my then Condition.

e.g. System.out.println(emp.getName());

 but I am not able to get Control of same reference Variable emp. SO My Question is how to obtain same Employee object in that Action node.





Looking forward to listen from you.

Thanks & Regards,
Nikhil



MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20090916/8d6cb1c7/attachment.html

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

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


End of rules-dev Digest, Vol 33, Issue 14
*****************************************

MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




More information about the rules-dev mailing list