You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by "alishaaaqil (via GitHub)" <gi...@apache.org> on 2025/08/04 09:06:20 UTC
[I] Lambda expressions are not supported [incubator-kie-issues]
alishaaaqil opened a new issue, #2046:
URL: https://github.com/apache/incubator-kie-issues/issues/2046
Generating a project including a process with a lambda expression fails:
Caused by: org.kie.kogito.codegen.process.ProcessCodegenException: Processes with errors are Invalid process: 'scripts.bpmn'. Found error: org.kie.kogito.process.validation.ValidationException: Node 'Lambda Expression' [_80B09524-487E-4738-A2AB-2D3ABEB17547] uses unknown variable in the script: personsList.stream()
at org.kie.kogito.codegen.process.ProcessCodegen.handleValidation(ProcessCodegen.java:171)
at org.kie.kogito.codegen.process.ProcessCodegen.ofCollectedResources(ProcessCodegen.java:150)
at org.kie.kogito.codegen.process.ProcessCodegenFactory.create(ProcessCodegenFactory.)ava:32
at org.kie.kogito.codegen.core.utils.ApplicationGeneratorDiscovery.lambda$loadGenerators$0(ApplicationGeneratorDiscovery.java:60)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1939)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at org.kie.kogito.codegen.core.utils.ApplicationGeneratorDiscovery.loadGenerators(ApplicationGeneratorDiscovery.java:62)
at org.kie.kogito.codegen.core.utils.ApplicationGeneratorDiscovery.discover(ApplicationGeneratorDiscovery.java:50)
at org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor.generateFiles(KogitoAssetsProcessor.java:298)
at org.kie.kogito.quarkus.common.deployment.KogitoAssetsProcessor.generateSources(KogitoAssetsProcessor.java:147)
Workaround
By replacing
.filter(p -> p.getIsValid())
with
.filter(gr.eurobank.bamoe.lab.v1.dto.Person::getIsValid)
everything works just fine.
--
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: commits-unsubscribe@kie.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org
Re: [I] Lambda expressions are not supported [incubator-kie-issues]
Posted by "martinweiler (via GitHub)" <gi...@apache.org>.
martinweiler closed issue #2046: Lambda expressions are not supported
URL: https://github.com/apache/incubator-kie-issues/issues/2046
--
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: commits-unsubscribe@kie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org