Niyas wrote:
Why in the second case it's not printing anything? I am not asked
about usom valid identifiers....  pls see the below two rules..

Is there any difference between the below two rules

rule "Credti Accept" salience 10
    when
cust:Customer(customerAge > 18) then System.out.println("Credit Card Allowed For :: " +cust.getCustomerName());
        //retract(cust);
end




rule "Credti Accept" salience 10
    when
$cust:Customer(customerAge > 18) then System.out.println("Credit Card Allowed For :: " +$cust.getCustomerName());
        //retract(cust);
end

On 12/21/06, nicolae oana <[EMAIL PROTECTED]> wrote:
Hi Niyas,

There is no difference between your two declarations emp and $emp . The sign
'$' is used as first letter in the name of a declaration just to
differentiate declarations from fields. You can used or not. It's your
choice. But I think it is appropriate to use it, just to follow the drools
standards in writing the code.

Best regards,
                 Oana.

Niyas <[EMAIL PROTECTED]> wrote: I am new to jBoss Rule - Drools and I am
hust going thru' the manual
and trying some examples using JBoss Rules IDE in Eclipse..

I am having doubt in bound variable:

what is the difference between emp: Employee and $emp:Employee (the $
sign)? give some example

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email


change the rule names. both the rule names r same.the rule compiler will not be able to differentiate.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to