[jboss-jira] [JBoss JIRA] (DROOLS-3523) kbase 'packages' in kmodule.xml works differently with executable-model

Tibor Zimányi (Jira) issues at jboss.org
Thu Jan 17 04:11:06 EST 2019


    [ https://issues.jboss.org/browse/DROOLS-3523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13683473#comment-13683473 ] 

Tibor Zimányi commented on DROOLS-3523:
---------------------------------------

I checked the reproducer and to me it looks like the bug is in DRL processing, not executable model. The reproducer fires a rule from "com.sample" package, however the KieBase from which KieSession is used, is defined just for package "rules". 

> 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)



More information about the jboss-jira mailing list