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
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to