Local declarations in DRL files not getting compiled
Issue
-
If a data type is declared inside a
DRLtext, every build of the enclosing project will fail. -
Following is the sample
DRLfile which leads to exception in server.log
package org.kie.example;
declare Address
number : int
streetName : String
city : String
end
rule "Testrule"
when
$a : Address()
then
System.out.println("Hello World");
end
stacttracefrom server.log
...
...
12:15:29,229 ERROR [org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl] (http-/0.0.0.0:8443-25) Depl
oyment of unit org.kie.example:project1:1.0.0-SNAPSHOT failed: java.lang.IllegalArgumentException: Class org.kie.exampl
e.Address not found in the project: org.jbpm.console.ng.bd.exception.DeploymentException: java.lang.IllegalArgumentExce
ption: Class org.kie.example.Address not found in the project
at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.deploy(DeploymentManagerEntryPointImpl.
java:1
87) [jbpm-console-ng-business-domain-backend-6.2.0.Final-redhat-4.jar:6.2.0.Final-redhat-4]
at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.deploy(DeploymentManagerEntryPointImpl.
java:1
43) [jbpm-console-ng-business-domain-backend-6.2.0.Final-redhat-4.jar:6.2.0.Final-redhat-4]
at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.process(DeploymentManagerEntryPointImpl
.java:
497) [jbpm-console-ng-business-domain-backend-6.2.0.Final-redhat-4.jar:6.2.0.Final-redhat-4]
at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl$Proxy$_$$_WeldClientProxy.process(Deplo
ymentManagerEntryPointImpl$Proxy$_$$_WeldClientProxy.java) [jbpm-console-ng-business-domain-backend-6.2.0.Final-redhat-4.jar:
6.2.0.Final-redhat-4]
at org.kie.workbench.common.services.backend.builder.BuildServiceImpl.buildAndDeploy(BuildServiceImpl.java:115)[kie-wb-common-services-backend-6.2.0.Final-redhat-4.jar:6.2.0.Final-redhat-4]
at org.kie.workbench.common.services.backend.builder.BuildServiceImpl.buildAndDeploy(BuildServiceImpl.java:94) [kie-wb-common-services-backend-6.2.0.Final-redhat-4.jar:6.2.0.Final-redhat-4]
at org.kie.workbench.common.services.backend.builder.BuildServiceImpl$Proxy$_$$_WeldClientProxy.buildAndDeploy(BuildServiceImpl$Proxy$_$$_WeldClientProxy.java) [kie-wb-common-services-backend-6.2.0.Final-redhat-4.jar:6.2.0.Final-redhat-4]
...
...
Environment
- Red Hat JBoss BPM Suite 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
