Folks,
I have a Parent and Children, but need to do aggregate function on collection of Parent WITH Children, to find the minimum expiration date on them, how can I create in LHS expression a collection of Parent WITH Children?
Like:
rule …
when
p : Parent()
c : Date() from accumulate( Child( d: date) from ($p.children and $p), min($d) ) // ?? what can I use to join collection of $p.children with $p to get another collection with them all ??
then
….
end
Thanks!
-Sergey