[JBoss JIRA] (DROOLS-4602) kie-maven-plugin fails with nested kbases and dependency versions declared in bom
by Tibor Zimanyi (Jira)
[ https://issues.jboss.org/browse/DROOLS-4602?page=com.atlassian.jira.plugi... ]
Tibor Zimanyi updated DROOLS-4602:
----------------------------------
Story Points: 3
Sprint: 2019 Week 41-43 (from Okt 7)
> kie-maven-plugin fails with nested kbases and dependency versions declared in bom
> ---------------------------------------------------------------------------------
>
> Key: DROOLS-4602
> URL: https://issues.jboss.org/browse/DROOLS-4602
> Project: Drools
> Issue Type: Bug
> Components: tools
> Affects Versions: 7.27.0.Final
> Reporter: Martin Weiler
> Assignee: Tibor Zimanyi
> Priority: Major
> Labels: support
> Attachments: hierarchical-kbase-bom.zip
>
>
> When we build 2 kjars and one kbase "includes" another, kie-maven-plugin fails to resolve the sub kbase if the dependency version is declared in a common bom:
> {noformat}
> Running test with rules version 7.27.0.Final and -DgenerateModel=NO
> 13:01:05,903 [ERROR] Unable to build KieBase, could not find include: subkbase
> 13:01:05,908 [ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.27.0.Final:build (default-build) on project kbase-parent: Execution default-build of goal org.kie:kie-maven-plugin:7.27.0.Final:build failed: Unable to get KieModule, Errors Existed: Error Messages:
> 13:01:05,910 [ERROR] Message [id=1, kieBase=parentkbase, level=ERROR, path=src/main/resources/META-INF/kmodule.xml, line=0, column=0
> 13:01:05,911 [ERROR] text=Unable to build KieBase, could not find include: subkbase]
> {noformat}
> Note that such a build is successful with RHDM 7.3.1 if the executable model is *not* used (see reproducer).
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 7 months
[JBoss JIRA] (DROOLS-4551) Build fails when condition in spreadsheet contains '(' and ')' separately as a value
by Luca Molteni (Jira)
[ https://issues.jboss.org/browse/DROOLS-4551?page=com.atlassian.jira.plugi... ]
Luca Molteni updated DROOLS-4551:
---------------------------------
Story Points: 7
> Build fails when condition in spreadsheet contains '(' and ')' separately as a value
> ------------------------------------------------------------------------------------
>
> Key: DROOLS-4551
> URL: https://issues.jboss.org/browse/DROOLS-4551
> Project: Drools
> Issue Type: Bug
> Components: build, decision tables
> Affects Versions: 7.25.0.Final, 7.26.0.Final
> Environment: - 7.25.0.Final or 7.26.0.Final
> - spreadsheet decition table
> - EscapeQuote: false
> Reporter: Hiroko Miura
> Assignee: Luca Molteni
> Priority: Major
> Labels: support
> Attachments: dt-build-err.zip
>
>
> If condition contains '(' and ')' separately as different value in value cell, build fails with error like:
> {noformat}
> [main] ERROR Unable to build KieBaseModel:dtables
> Unable to Analyse Expression $2:
> [Error: unable to resolve method using strict-mode: com.sample.Message.$2()]
> [Near : {... $2 ....}]
> ^
> [Line: 6, Column: 2] : [Rule name='HelloWorld_11']
> {noformat}
> This worked with 7.18.0.Final-redhat-00004 (RHDM7.4.1), but fails with 7.25.0.Final or 7.26.0.Final.
> Condition in DRL generated by spreadsheet compiler are different per these version.
> - 7.25.0.Final/7.26.0.Final
> {noformat}
> m:Message(status in (Message.HELLO), errorMessage in ("Hello", "Hi"), $2)
> {noformat}
> - 7.24.0.Final/7.18.0.Final
> {noformat}
> m:Message(status in (Message.HELLO), errorMessage in ("Hello", "Hi"))
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 7 months
[JBoss JIRA] (DROOLS-4604) Query code generation neglects query parameter(s)
by Mario Fusco (Jira)
[ https://issues.jboss.org/browse/DROOLS-4604?page=com.atlassian.jira.plugi... ]
Mario Fusco resolved DROOLS-4604.
---------------------------------
Resolution: Done
Fixed by https://github.com/kiegroup/drools/commit/73b2de0934cd0fc82aaae1b2ecfc250...
> Query code generation neglects query parameter(s)
> -------------------------------------------------
>
> Key: DROOLS-4604
> URL: https://issues.jboss.org/browse/DROOLS-4604
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 7.27.0.Final
> Reporter: IVAN ZILOTTI
> Assignee: Mario Fusco
> Priority: Minor
>
> The Drools _query_ code generated by the test method below is not including the query parameter ({{String eventId}}) specified via {{PackageDescrBuilder}}.
> Note that parameters to Drools _functions_ constructed through the same process are correctly included. See _org.drools.compiler.lang.api.DescrBuilderTest#testFunctions_.
>
> h3. Generated code
> {code:java}
> package org.test.rules
> import org.test.event.TemporalEvent
> query "getTemporalEventById"
> TemporalEvent( id == eventId ) from entry-point "TemporalEventStream"
> end
> {code}
> h3. Test
> {code:java}
> @Test
> public void testFluentQuery() {
> PackageDescrBuilder packBuilder =
> DescrFactory.newPackage()
> .name("org.test.rules")
> .newImport()
> .target("org.test.event.TemporalEvent")
> .end()
> .newQuery()
> .name("getTemporalEventById")
> .parameter("String", "eventId")
> .lhs()
> .pattern( "TemporalEvent")
> .constraint("id == eventId")
> .from()
> .entryPoint("EventStream")
> .end()
> .end()
> .end()
> .end();
> String query = new DrlDumper().dump(packBuilder.getDescr());
> System.out.println(query);
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 7 months
[JBoss JIRA] (DROOLS-4551) Build fails when condition in spreadsheet contains '(' and ')' separately as a value
by Luca Molteni (Jira)
[ https://issues.jboss.org/browse/DROOLS-4551?page=com.atlassian.jira.plugi... ]
Luca Molteni reassigned DROOLS-4551:
------------------------------------
Assignee: Luca Molteni (was: Ant Stephenson)
> Build fails when condition in spreadsheet contains '(' and ')' separately as a value
> ------------------------------------------------------------------------------------
>
> Key: DROOLS-4551
> URL: https://issues.jboss.org/browse/DROOLS-4551
> Project: Drools
> Issue Type: Bug
> Components: build, decision tables
> Affects Versions: 7.25.0.Final, 7.26.0.Final
> Environment: - 7.25.0.Final or 7.26.0.Final
> - spreadsheet decition table
> - EscapeQuote: false
> Reporter: Hiroko Miura
> Assignee: Luca Molteni
> Priority: Major
> Labels: support
> Attachments: dt-build-err.zip
>
>
> If condition contains '(' and ')' separately as different value in value cell, build fails with error like:
> {noformat}
> [main] ERROR Unable to build KieBaseModel:dtables
> Unable to Analyse Expression $2:
> [Error: unable to resolve method using strict-mode: com.sample.Message.$2()]
> [Near : {... $2 ....}]
> ^
> [Line: 6, Column: 2] : [Rule name='HelloWorld_11']
> {noformat}
> This worked with 7.18.0.Final-redhat-00004 (RHDM7.4.1), but fails with 7.25.0.Final or 7.26.0.Final.
> Condition in DRL generated by spreadsheet compiler are different per these version.
> - 7.25.0.Final/7.26.0.Final
> {noformat}
> m:Message(status in (Message.HELLO), errorMessage in ("Hello", "Hi"), $2)
> {noformat}
> - 7.24.0.Final/7.18.0.Final
> {noformat}
> m:Message(status in (Message.HELLO), errorMessage in ("Hello", "Hi"))
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
6 years, 7 months