[jboss-jira] [JBoss JIRA] (DROOLS-4286) Fails to extends rule from other .drl file with same package name.
Gajendra Jore (Jira)
issues at jboss.org
Wed Jul 3 02:40:00 EDT 2019
[ https://issues.jboss.org/browse/DROOLS-4286?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gajendra Jore updated DROOLS-4286:
----------------------------------
Description:
I am facing same issue on version 7.22.0.
Steps to reproduce:
1. Create parent.drl file contains parent rule as
2. Create child.drl file with child rule extends parent rule.
3. *+Both files have same package name+*.
4. While creating KieBase it throws exception from *newKnowledgeBase()* method of *KnowledgeBuilderImpl.java* class and exception is as follows,
+ *Unable to resolve parent rule, please check that both rules are in the same package : [Rule name='childRule'] Unresolved parent name parentRule*+
was:
I am facing same issue on version 7.22.0.
Steps to reproduce:
1. Create parent.drl file contains parent rule as
2. Create child.drl file with child rule extends parent rule.
3. *+Both files have same package name+*.
4. While creating KieBase it throws exception from *newKnowledgeBase()* method of *KnowledgeBuilderImpl.java* class and exception is as follows,
+ *Unable to resolve parent rule, please check that both rules are in the same package : [Rule name='childRule'] Unresolved parent name parentRule*+
Summary: Fails to extends rule from other .drl file with same package name. (was: Fails to extends rule from other file with same package name.)
> Fails to extends rule from other .drl file with same package name.
> ------------------------------------------------------------------
>
> Key: DROOLS-4286
> URL: https://issues.jboss.org/browse/DROOLS-4286
> Project: Drools
> Issue Type: Sub-task
> Affects Versions: 7.22.0.Final
> Reporter: Gajendra Jore
> Assignee: Mario Fusco
> Priority: Major
>
> I am facing same issue on version 7.22.0.
> Steps to reproduce:
> 1. Create parent.drl file contains parent rule as
> 2. Create child.drl file with child rule extends parent rule.
> 3. *+Both files have same package name+*.
> 4. While creating KieBase it throws exception from *newKnowledgeBase()* method of *KnowledgeBuilderImpl.java* class and exception is as follows,
> + *Unable to resolve parent rule, please check that both rules are in the same package : [Rule name='childRule'] Unresolved parent name parentRule*+
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list