tkobayas commented on issue #6384: URL: https://github.com/apache/incubator-kie-drools/issues/6384#issuecomment-3083432179
Yes, only queries which have no argument generate REST endpoints. https://github.com/apache/incubator-kie-drools/blob/10.1.0/drools-model/drools-model-codegen/src/main/java/org/drools/model/codegen/execmodel/RuleUnitWriter.java#L120 ``` List<RuleUnitQueryWriter> queryWriters = pkgModel.getQueriesInRuleUnit(ruleUnitDescr).stream() .filter(query -> !query.hasParameters()) .map(query -> new RuleUnitQueryWriter(pkgModel, ruleUnitDescr, query)) .collect(toList()); ``` The generated REST endpoints are intended for convenience and not suited for complex use cases. When having arguments, please write your own REST endpoints. Thanks! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
