[rules-dev] Reusing query's in accumulate functions

Geoffrey De Smet ge0ffrey.spam at gmail.com
Sun Jul 29 08:29:11 EDT 2007


I wonder if there are any plans to allow query's to be reused in 
accumulate functions? Something like

    query "multipleQueensHorizontal"
        Queen($id : id, $y : y);
        Queen(id > $id, y == $y);
    end

    rule "x"
      when
        Integer() from accumulate(
          count(query "multipleQueensHorizontal") // <==
        );
      then
        ...
     end

If not, mind if I make a (long term) issue if you think it's a good idea 
and possible to implement?
Is there an issue for Multiple Pattern Accumulate and if not, mind if I 
create one?

Thanks as always :)

-- 
With kind regards,
Geoffrey De Smet




More information about the rules-dev mailing list