I'm having some trouble getting a rule that I know works in .drl form, to work in a decision table.
Here is my rule in drl form:
rule = "slider1"
dialect "mvel"
when
$person: Person()
ArrayList( size >= 2 )
from collect( TestResult( name in ("TestA","TestB"), result == "high" )
from $person.getLabResults()
)
then
$person.setString("It worked");
end
Here is what I am trying in the spreadsheet:
CONDITION
-------------------
$person:Person()
-------------------
ArrayList( size >= 1 )
from collect( TestResult( name in $param, result == 'high' )
from $person.getLabResults() )
-------------------
Lab Names
-------------------
"TestA","TestB"
When I try to run the rule from the spread sheet, I am getting this error:
Error while creating KieBase[Message [id=1, level=ERROR, path=com/creo/drools/decisiontables/sample-decision-table.xls, line=11, column=0
text=[ERR 102] Line 11:53 mismatched input 'from' in rule "Young safe package 1"], Message [id=2, level=ERROR, path=com/creo/drools/decisiontables/sample-decision-table.xls, line=0, column=0
text=Parser returned a null Package]]
It seems like something isn't working correctly with the from clause, but I have no idea why. I have tried numerous google searches and this is the only thing I could find: http://drools-moved.46999.n3.nabble.com/Question-on-excel-decision-table-with-quot-variable-Type-from-collection-quot-td1186138.html
Any ideas? It's driving me crazy why this won't work in the spread sheet.