[rules-dev] accumulate to acc

Mark Proctor mproctor at codehaus.org
Thu Aug 18 12:38:32 EDT 2011


We are looking to tighten up accumulate, using a new keyword to 
differentiate. It will use ; for separation, to follow a similar form to 
a 'for' loop.

acc( CE*;
<func>*;
<guard>? )

so something like:

acc( $o : Order();
         $min : min( $o.value ),
         $max : max($o.value);
         $min > 100 && $max < 100 )

I have wondered if we could use pipes on our functions, to be able to 
pass the results of one function into another - just not sure how that 
will work or look yet.
func(...) in func(...)
func(...) | func(...)

Mark



More information about the rules-dev mailing list