[rules-users] "contains..."

Manukyan, Sergey SManukyan at lear.com
Wed Jul 25 14:58:04 EDT 2007


Folks,

 

I am using MR3, have a situation when Parent has multiple Children, and
there is a rule that needs to be fired when parent has a child with
certain attribute (active == true)

 

Will need to do something like that :

 

rule

      when

     $p : Parent( active == false,  children contains Child() [ active
== true  ] )

      then

                 ... register error: inactive parent cannot have active
child.

end

 

 

Please advice on correct syntaxes how to do that. Also please keep in
mind, I don't want to insert children in facts memory.

 

Thanks,

 

-Sergey

 

 

 

 

 

 



**********************
** LEGAL DISCLAIMER **
**********************

This E-mail message and any attachments may contain 
legally privileged, confidential or proprietary 
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of 
this message to the intended recipient(s), you are 
hereby notified that any dissemination, distribution 
or copying of this E-mail message is strictly 
prohibited. If you have received this message in 
error, please immediately notify the sender and 
delete this E-mail message from your computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070725/ededd48d/attachment.html 


More information about the rules-users mailing list