[rules-users] facts custom sort

Syargey Syargey at tut.by
Fri Dec 2 04:42:45 EST 2011


I am still wondering why the following query doesn't work:

query sortFactsQuery1
	$tm: TreeMap()
  		from accumulate( $f: Fact(),
                     init( TreeMap map = new TreeMap(); ),
                   action( map.put(factKey($f), $f); ),
                   reverse( map.remove(factKey($f)); ),
                   result( map ) )
    $sortedFacts: Collection() from $tm.values()
end

--
View this message in context: http://drools.46999.n3.nabble.com/facts-custom-sort-tp3538410p3554200.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list