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

Jozef Marko (Jira) issues at jboss.org
Wed Nov 14 05:49:00 EST 2018


     [ https://issues.jboss.org/browse/DROOLS-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jozef Marko updated DROOLS-3317:
--------------------------------
    Tester: Jozef Marko


> 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
>    Affects Versions: 7.15.0.Final
>            Reporter: Toni Rikkola
>            Assignee: Michael Anstis
>            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.



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


More information about the jboss-jira mailing list