如何在数据库中存储规则并在 java 文件中访问它们,而不是在 Drools 中使用 .drl 文件?
我正在使用 Drools 项目,并且希望将规则存储在数据库中,因为即使应用程序正在运行,它们也是可配置的。我在互联网上搜索过但没有找到满意的结果。
我的要求是:
“如何在数据库中存储规则并在java文件中访问它们而不是使用.drl文件?”
如果您有任何想法或示例来演示相同的内容,请分享。
谢谢。
I am using Drools project and want to store rules in database as they will be configurable, even when application is running. I have searched on internet but didn't find any satisfactory result.
My requirement is:
"How to store rules in database and access them in java files instead of using .drl files?"
If you have any idea or sample example to demonstrate the same, please share.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Drools Guvnor 使用 JCR(JackRabbit 或 ModeShape),您可以设置它们将规则保存到数据库中。它还为您提供了编辑规则和管理知识包的工具。它比您的要求多一点,但可能会让您了解如何进行数据库存储。
Drools Guvnor uses JCR ( JackRabbit or ModeShape ) you can set them to save your rules into database. It also provides you tools for editing the rules and managing your knowledge packages. It is a bit more than your asking for, but might give you an idea on how to do the db storing.