[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
Mon Apr 6 07:25:57 EDT 2020


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

Jozef Marko closed DROOLS-3317.
-------------------------------
    Fix Version/s: 7.36.0.Final
       Resolution: Cannot Reproduce


Tried to construct rule with setting boolean on right site. No validation/build error thrown. 

> 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
>             Fix For: 7.36.0.Final
>
>
> 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.13.8#713008)


More information about the jboss-jira mailing list