Thank you very much!!


Tim


                                                                           
             "Edson Tirelli"                                               
             <[EMAIL PROTECTED]                                             
             >                                                          To 
             Sent by:                  "Rules Users List"                  
             rules-users-bounc         <[email protected]>       
             [EMAIL PROTECTED]                                          cc 
             g                                                             
                                                                   Subject 
                                       Re: [rules-users] is there anyway   
             08/30/2007 12:22          to access to lower level of an      
             PM                        attribute in LHS                    
                                                                           
                                                                           
             Please respond to                                             
             Rules Users List                                              
             <[EMAIL PROTECTED]                                             
               s.jboss.org>                                                
                                                                           
                                                                           





   Did you tried:

   Person( contact != null, contact.email == null )

   ?

   Edson


2007/8/30, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
  Hi group,

  Currently I have to use eval to access to lower lever of an attribute.
  For
  example:

  rule "test rule"
       when
        $person: Person ()
        eval (($person.getContact() != null) &&
  ($person.getContact().getEmail() == null))
       then
        System.out.println ("Email address is missing")
  end


  Is there anyway not to use eval. I would like to do something like this:
        $person: Person ($contact: contact != null, $contact.getEmail() ==
  null)

  but it throws errors


  Thanks,

  Tim

  _______________________________________________
  rules-users mailing list
  [email protected]
  https://lists.jboss.org/mailman/listinfo/rules-users



--
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  Office: +55 11 3529-6000
  Mobile: +55 11 9287-5646
  JBoss, a division of Red Hat @ www.jboss.com
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to