[jboss-jira] [JBoss JIRA] (DROOLS-3317) Guided Decision Tables: Insert in RHS not creating valid code for boolean fields.

Toni Rikkola (Jira) issues at jboss.org
Wed Nov 14 03:47:00 EST 2018


Toni Rikkola created DROOLS-3317:
------------------------------------

             Summary: Guided Decision Tables: Insert in RHS not creating valid code for boolean fields.
                 Key: DROOLS-3317
                 URL: https://issues.jboss.org/browse/DROOLS-3317
             Project: Drools
          Issue Type: Bug
          Components: Guided Decision Table Editor
            Reporter: Toni Rikkola
            Assignee: Michael Anstis


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.






--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list