[rules-users] DSL to multiline DRL?

Tim 4076 tm4076 at gmail.com
Thu Oct 21 05:06:27 EDT 2010


Is it possible to have a single line of DSL convert into multiple lines of DRL?

I want to hide the implementation of my rules from the user. So, using
my previous post as an example:

rule "group 1"
when
  $a : Trans( $groupValue : prodCat, $date : date )
  not Trans( this != $a, prodCat == $groupValue, date < $date )
  $b : LinkedList( size >= 1 ) from collect ( Trans( this != $a,
prodCat == $groupValue, date > $date ) )
then
  //do something
end

should become something like:

rule "group 1"
when
  There are mutliple transactions with the same value for prodCat
then
  //do something
end



Thanks,
Tim



More information about the rules-users mailing list