org.drools.modelcompiler.builder.errors.UnknownDeclarationException: Unknown declaration: resultList
at org.drools.modelcompiler.builder.generator.RuleContext.lambda$getDeclarationByIdWithException$0(RuleContext.java:268)
at java.base/java.util.Optional.orElseThrow(Optional.java:408)
at org.drools.modelcompiler.builder.generator.RuleContext.getDeclarationByIdWithException(RuleContext.java:268)
at org.drools.modelcompiler.builder.generator.BoxedParameters.getBoxedParametersWithUnboxedAssignment(BoxedParameters.java:47)
at org.drools.modelcompiler.builder.generator.Consequence.executeCall(Consequence.java:289)
at org.drools.modelcompiler.builder.generator.Consequence.createCall(Consequence.java:155)
at org.drools.impact.analysis.parser.impl.RhsParser.parse(RhsParser.java:64)
at org.drools.impact.analysis.parser.impl.PackageParser.parseRule(PackageParser.java:63)
at org.drools.impact.analysis.parser.impl.PackageParser.parse(PackageParser.java:50)
at org.drools.impact.analysis.parser.internal.ImpactModelBuilderImpl.buildRules(ImpactModelBuilderImpl.java:189)
at org.drools.impact.analysis.parser.internal.ImpactModelBuilderImpl.doSecondBuildStep(ImpactModelBuilderImpl.java:111)
at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:115)
at org.drools.compiler.builder.impl.CompositeKnowledgeBuilderImpl.build(CompositeKnowledgeBuilderImpl.java:99)
at org.drools.compiler.kie.builder.impl.AbstractKieProject.buildKnowledgePackages(AbstractKieProject.java:270)
at org.drools.compiler.kie.builder.impl.AbstractKieProject.buildKnowledgePackages(AbstractKieProject.java:216)
at org.drools.compiler.kie.builder.impl.AbstractKieProject.verify(AbstractKieProject.java:80)
at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildKieProject(KieBuilderImpl.java:277)
at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:245)
at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:202)
at org.drools.impact.analysis.parser.ModelBuilder.createKieBuilder(ModelBuilder.java:56)
at org.drools.impact.analysis.parser.ModelBuilder.createKieBuilder(ModelBuilder.java:39)
at org.drools.impact.analysis.parser.ModelBuilder.build(ModelBuilder.java:31)
at org.drools.impact.analysis.integrationtests.DrlSyntaxTest.testGlobal(DrlSyntaxTest.java:161)