[rules-users] Getting Latest Matching Fact

Davide Sottara dsotty at gmail.com
Fri Aug 24 05:05:10 EDT 2012


You should also be able to use runtime salience:

rule "Helloworld_13"
salience ( 65535 - $list.indexOf( $trandet ) )    // lower indexes first
when
  $p1 : Policy( $list : vehicleslist )
  $trandet : Vehicle( name in ("CAR") ) from $list
then
  ...
end

Davide



--
View this message in context: http://drools.46999.n3.nabble.com/Getting-Latest-Matching-Fact-tp4019345p4019383.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list