[jboss-jira] [JBoss JIRA] (DROOLS-4307) Drools unable to compile rules when using a declared enum in the DRL file

Kris Verlaenen (Jira) issues at jboss.org
Mon Aug 5 06:10:38 EDT 2019


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

Kris Verlaenen updated DROOLS-4307:
-----------------------------------
    Sprint: 2019 Week 29-31, 2019 Week 32-34  (was: 2019 Week 29-31)


> Drools unable to compile rules when using a declared enum in the DRL file
> -------------------------------------------------------------------------
>
>                 Key: DROOLS-4307
>                 URL: https://issues.jboss.org/browse/DROOLS-4307
>             Project: Drools
>          Issue Type: Bug
>            Reporter: Robert Buchmann
>            Assignee: Luca Molteni
>            Priority: Major
>         Attachments: drl.zip
>
>
> I am finding inconsistent behaviour between drools reading rules from a local file (as a fileSystemResource) as opposed to pre compiling the rules into a kjar.
> This happens if I use an enum declared within the drl file in the "when" or "then" section of a rule within the same drl file. 
> The rule runs perfectly as expected if I load the rule from the filesystem, but fails to run if I have pre-compiled the rule. For this reason I think this is a bug as I would expect the same behaviour for both ways of running rules.
> I outlined the problem in more detail stackoverflow:
> https://stackoverflow.com/questions/56989080/drools-maven-plugin-not-understanding-locally-declared-enums-when-compiling-drl
> This is running JAVA8 and drools 7.23.0.Final



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


More information about the jboss-jira mailing list