vinodkumarkv opened a new issue, #6216: URL: https://github.com/apache/incubator-kie-drools/issues/6216
Hello, We are using the fact model to build the Knowledge Base like below Events.drl ``` Package com.example declare Person age: int address : Person.Address end declare Person.Address city: Stirng end ``` Rule.drl ``` Package com.example global java.util.List resultList; rule "rule0" when $p : Person( age >= 0 && age < 5 && address.city == "New York") then resultList.add( kcontext.getRule().getName() + " : " + $p ); end ``` Using the Below Code using drools version : 7.73.0.Final Dependency : <dependency> <groupId>org.drools</groupId> <artifactId>drools-core</artifactId> <version>7.73.0.Final</version> </dependency> <dependency> <groupId>org.drools</groupId> <artifactId>drools-compiler</artifactId> <version>7.73.0.Final</version> </dependency> <dependency> <groupId>org.drools</groupId> <artifactId>drools-decisiontables</artifactId> <version>7.73.0.Final</version> </dependency> Using the traditional method, would be using the below code to compile the drl files, where everything works. `KieBuilder kieBuilder = kieServices.newKieBuilder(kfs).buildAll();` Now, to move to KAJR and migration of project we started with the code changes <img width="380" alt="image" src="https://github.com/user-attachments/assets/040d352a-0cb2-4684-bc7e-cc57806feb4e" /> ` kieBuilder.buildAll(ExecutableModelProject.class);` But, now we see the buildAll fails saying the error : <img width="836" alt="image" src="https://github.com/user-attachments/assets/e64e4aa4-27f4-4b0b-a612-6ad1fc4940da" /> <img width="501" alt="image" src="https://github.com/user-attachments/assets/3fcdb7f8-20ac-4418-a188-51bd995f7e1c" /> We understood the error that class object is not getting formed correctly because of the way the Events.drl written. Is there any way to achieve the generation of KJAR or Rule Unit without chaining the Fact Model Event.drl and Rule.drl syntax. Also, our rule keeps on changing (Programmatically load rule ) , so only were exploring to options move to KJAR or Rule Unit of work. Thank you in advance. -- 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-unsubscr...@kie.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@kie.apache.org For additional commands, e-mail: commits-h...@kie.apache.org