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