[rules-users] sorting rows/ules fired in a decision table

lhorton LHorton at ABCLegal.com
Sat Sep 3 10:44:01 EDT 2011


I have done something similar to this.  You can use the "sequential" keyword
in a decision table (this keyword is in the RuleSet area - see table 6.1 in
the 5.2.0 Expert document).  If you set sequential to true, the rules in the
table will fire from top down.  (If you look at the drl rules that are
generated from the spreadsheet, you will see that the drools compiler
creates salience entries for you, so the end result is as if you had created
salience entries yourself as Michael suggested).

In my case, I am adding documents to a list.  I created rows in the decision
table, each row/rule to add a document, and ordered the rows in the order I
wanted the documents added.  Then when the rules fire, the matching
documents get added in the order I want.


--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-sorting-rows-ules-fired-in-a-decision-table-tp3305610p3306693.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list