[JBoss JIRA] (DROOLS-4604) Query code generation neglects query parameter(s)
by IVAN ZILOTTI (Jira)
[ https://issues.jboss.org/browse/DROOLS-4604?page=com.atlassian.jira.plugi... ]
IVAN ZILOTTI updated DROOLS-4604:
---------------------------------
Issue Type: Bug (was: Feature Request)
> 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: Major
>
> 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)
5 years, 1 month
[JBoss JIRA] (DROOLS-4604) Query code generation neglects query parameter(s)
by IVAN ZILOTTI (Jira)
IVAN ZILOTTI created DROOLS-4604:
------------------------------------
Summary: Query code generation neglects query parameter(s)
Key: DROOLS-4604
URL: https://issues.jboss.org/browse/DROOLS-4604
Project: Drools
Issue Type: Feature Request
Components: core engine
Affects Versions: 7.27.0.Final
Reporter: IVAN ZILOTTI
Assignee: Mario Fusco
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)
5 years, 1 month
[JBoss JIRA] (WFLY-12641) Add test module using microprofile-jwt TCK
by Darran Lofthouse (Jira)
Darran Lofthouse created WFLY-12641:
---------------------------------------
Summary: Add test module using microprofile-jwt TCK
Key: WFLY-12641
URL: https://issues.jboss.org/browse/WFLY-12641
Project: WildFly
Issue Type: Sub-task
Components: Security, Test Suite
Reporter: Darran Lofthouse
Assignee: Darran Lofthouse
Fix For: 19.0.0.Beta1
Additional integration tests will be added but the TCK is a good start.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 1 month