The error you get is due to the second condition (application:
Application()) not being included in the generated rules. Empty cell means:
the column's snippet is not included in the rule.
Since you don't have a constraint for Application() you can employ a trick:
remove the column and prefix the text application: Application() to the text
in cell C7.
In Rule 1, do you really want to test whether a payment is not greater than
zero?
Do you realize that Rules 2 and 3 would both fire for certain payment
amounts?
You can update a String field. To concatenate, use
x.setString( x.getString() + "whatever" );
-W
On 9 September 2011 14:08, john@oa <john(a)openaspect.co.uk> wrote:
Guvnor: guvnor-5.2.0.Final-tomcat-6.0
Hi
I am a Drools Newbie and I have an integer field called score that I need
to
add to when a rule matches in a spreadsheet decision table. i.e. the score
field should hold a running total of all scores that are matched. However,
I can't even update the field in the table. I have attached the
spreadsheet
for review. In this spreadsheet I am simply trying to set the score, and
that is failing with:
DScoringTable] Rule Compilation error application cannot be resolved
My goal is to have different decision tables that will all need to update
the same score, and keep a running total of the total score.
Any help very much appreciated! I hope that I am just missing something
obvious.
http://drools.46999.n3.nabble.com/file/n3322713/demo-score-sheet.xls
demo-score-sheet.xls
In future I may wish to also update a String field and keep concatenating
to
that field, is this possible?
John
--
View this message in context:
http://drools.46999.n3.nabble.com/Spreadsheet-Rule-Compilation-error-xxx-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users