[jboss-jira] [JBoss JIRA] (DROOLS-5215) With executable model drools keyword is not found when used in a method call

Mario Fusco (Jira) issues at jboss.org
Fri Apr 3 11:11:36 EDT 2020


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

Mario Fusco resolved DROOLS-5215.
---------------------------------
    Resolution: Done


Fixed by https://github.com/kiegroup/drools/commit/235827c64cfb39bb5ad54bac26891ab0574de84c


> With executable model drools keyword is not found when used in a method call
> ----------------------------------------------------------------------------
>
>                 Key: DROOLS-5215
>                 URL: https://issues.redhat.com/browse/DROOLS-5215
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 7.35.0.Final
>            Reporter: Matteo Casalino
>            Assignee: Mario Fusco
>            Priority: Major
>         Attachments: drools-keyword-in-method-call.zip
>
>
> Executable model rule compilation fails on rule consequents using the _drools_ keyword as a parameter of a method call.
> Example of DRL that fails to compile:
> {noformat}
>     function printRuleName(String ruleName) {
>       System.out.println(ruleName);
>     }
>     
>     rule "drools keyword in method call"
>     when
>     then
>         printRuleName(drools.getRule().getName());
>     end
> {noformat}
> The example works fine when compiling without executable model.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list