[jboss-jira] [JBoss JIRA] (DROOLS-1327) Drools declared types cannot be references in jBPM Drools expressions due to compilation order.
Martin Cimbalek (JIRA)
issues at jboss.org
Wed Nov 16 08:51:00 EST 2016
[ https://issues.jboss.org/browse/DROOLS-1327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13323732#comment-13323732 ]
Martin Cimbalek commented on DROOLS-1327:
-----------------------------------------
Verified with 6.4.0.CR1
> Drools declared types cannot be references in jBPM Drools expressions due to compilation order.
> -----------------------------------------------------------------------------------------------
>
> Key: DROOLS-1327
> URL: https://issues.jboss.org/browse/DROOLS-1327
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.4.0.Final
> Environment: JBoss BPM Suite 6.3.3.GA
> Reporter: Duncan Doyle
> Assignee: Mario Fusco
> Fix For: 7.0.0.Beta3
>
>
> When you declare a type in a DRL using the "declare" syntax, that type cannot be referenced by Drools LHS expressions in a Sequence Flow (for example in the context of an X-OR Gateway). The DRL and BPMN2 file are in the same project.
> The problem is the order of compilation of CompositeKnowledgeBuilderImpl. The builder compiles the process definitions before the DRLs, which results in a situation where the declared types used in the process are not yet available in the Drools ProjectClassloader when. the process is compiled.
> Easy fix is to compile the process after the rules, which makes sense as the rules will normally not really on processes, but processes can really on rules.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list