[
https://issues.jboss.org/browse/DROOLS-3523?page=com.atlassian.jira.plugi...
]
Luca Molteni commented on DROOLS-3523:
--------------------------------------
The documentation says at
https://docs.jboss.org/drools/release/7.16.0.Final/drools-docs/html_singl...
"packages
By default all the Drools artifacts under the resources folder, at any level, are included
into the KieBase. This attribute allows to limit the artifacts that will be compiled in
this KieBase to only the ones belonging to the list of packages."
So it seems like this attribute is not working as intended
kbase 'packages' in kmodule.xml works differently with
executable-model
-----------------------------------------------------------------------
Key: DROOLS-3523
URL:
https://issues.jboss.org/browse/DROOLS-3523
Project: Drools
Issue Type: Bug
Components: executable model
Affects Versions: 7.16.0.Final
Reporter: Toshiya Kobayashi
Assignee: Luca Molteni
Priority: Major
Labels: support
Attachments: execution-model-test-kbase-package.zip
When we configure 'packages' attribute in kbase element in kmodule.xml, normal
build works but executable-model build results in empty kbase.
{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<kmodule
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://jboss.org/kie/6.0.0/kmodule">
<kbase name="mykbase" packages="rules"
default="true">
<ksession name="myksession" default="true" />
</kbase>
</kmodule>
{code}
executable-model seems to expect that the kbase's packages value must match the
"package" declaration in DRL.
Please confirm the behaviour with the attached execution-model-test-kbase-package.zip.
* Normal build
** mvn clean install -DskipTests
** mvn clean test
{noformat}
...
kiePackages = [[Package name=com.sample]]
Hello, john
...
{noformat}
* executable-model build
** mvn clean install -DgenerateModel=YES -DskipTests
** mvn clean test
{noformat}
...
kiePackages = []
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.341 s
<<< FAILURE! - in com.example.DroolsTest
...
{noformat}
--
This message was sent by Atlassian Jira
(v7.12.1#712002)