简体   繁体   English

Drools DRL 导出到 Java 和 Python

[英]Drools DRL Export to Java and Python

There is requirement to convert Drools DRL file into equivalent Java and Python Code as a Export Feature.需要将 Drools DRL 文件转换为等效的 Java 和 Python 代码作为导出功能。 Please provide some insights whether any tools available for this.请提供一些见解,是否有任何可用的工具。 Or we can use DRL Debug Dump can be used to export Java equivalent code.或者我们可以使用 DRL Debug Dump 来导出 Java 等效代码。 Please share your suggestions and inputs.请分享您的建议和意见。

There is no Java equivalent code for a DRL. DRL 没有 Java 等效代码。 The DRL is processed in a way that generates a graph of nodes (based on the RETE algorithm) that are evaluated when information is made available to a session. DRL 以生成节点图(基于 RETE 算法)的方式进行处理,当信息可用于会话时评估这些节点图。 If you were expecting to get some Java classes with a bunch of if-else statements, then you are out of luck.如果您期望获得一些带有一堆if-else语句的 Java 类,那么您就很不走运了。

There are ways to export the RETE Graph if you want to, but I'm sure that's not what you are looking for.如果您愿意,有多种方法可以导出 RETE 图表,但我敢肯定这不是您想要的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM