]
Michael Anstis reassigned DROOLS-3317:
--------------------------------------
Assignee: Guilherme Gomes (was: Michael Anstis)
Guided Decision Tables: Insert in RHS not creating valid code for
boolean fields.
---------------------------------------------------------------------------------
Key: DROOLS-3317
URL:
https://issues.redhat.com/browse/DROOLS-3317
Project: Drools
Issue Type: Bug
Components: Guided Decision Table Editor
Affects Versions: 7.15.0.Final
Reporter: Toni Rikkola
Assignee: Guilherme Gomes
Priority: Major
Labels: drools-tools
Insert a fact with a boolean field in dtable RHS.
The DRL generated looks like this:
{code:java}
rule "Row 3 The Table"
dialect "mvel"
when
s : Source( age >= 18 , kitten == "Dog" )
then
s.setRisk( "ok" );
DroolsUtil fact0 = new DroolsUtil();
fact0.setARuleFired( true );
insert( fact0 );
end
{code}
The line
{code:java}
fact0.setARuleFired( true );
{code}
does not compile. It should be ( for example ):
{code:java}
fact0.aRuleFired = true;
{code}
The above is done by inserting the fact with BRL action, but the same error bothers the
"Set the value of field" option.