[rules-dev] Problem in accesing rule constraint reference Variable

Raphael Duarte Paiva raphaeldpaiva at gmail.com
Wed Sep 16 10:26:22 EDT 2009


It's me or you just sent the same email that Michael told that would be best
sent to rules-users and forwarded it there?

On Wed, Sep 16, 2009 at 11:05, 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
>
>


-- 
Abraços
Raphael Duarte Paiva
Graduando em Ciência da Computação

"For millions of years, mankind lived just like the animals. Then something
happened which unleashed the power of our imagination. We learned to talk
[...]" - Stephen Hawking, 1993
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20090916/0ac08425/attachment.html 


More information about the rules-dev mailing list