如何为Drools KieScanner创建和添加kjar? [英] How to create and add kjar for Drools KieScanner?

查看:166
本文介绍了如何为Drools KieScanner创建和添加kjar?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目标是向现有会话添加新规则.这可以通过使用KieScanner来完成,它会基于"kjar"将KieContainer更新到更高版本,然后更新会话,而无需创建新会话并重新建立事实基础.

The goal is to add new rules to an existing session. This can be accomplished by using the KieScanner, which would update the KieContainer to a higher version based on a "kjar" and then update the session without the need to create a new one and re-establish the fact base.

现在的问题是,如何创建kjar并将其添加到本地Maven存储库中,并使工件可以被KieScanner解析和访问.

Now the question is how one would create the kjars and add these to a local Maven repository with the artifacts resolvable and accessible by the KieScanner.

可悲的是,官方Drools回购中的示例毫无帮助,因为它们非常适合自己的需求,并且更加复杂.除了仅提及在没有提供具体示例的情况下应有的可能以外,关于该主题的所有内容甚至文档都没有提供任何详细信息或提供更多信息.

The examples in the official Drools repo are sadly of no help as they are geared very much towards their own needs and are of greater complexity. Nothing found on the topic and not even the documentation provides any details or gives more information than simply mentioning that it should be possible without providing a concrete example.

那么,如何使用Drools KieScanner进行工作,并且仍然是紧凑/通用的示例,包括创建和添加kjars的样子如何?

So how does a working and still compact/general example for the use of Drools KieScanner including the creation and adding of the kjars look like?

推荐答案

有帮助吗?

在本教程中,我们将研究Drools KIE CI模块的使用,该模块允许我们使用Maven解析策略加载位于不同maven工件(jar文件)中的规则."

"On this tutorial we will look at the use of the Drools KIE CI module, which allows us to load rules located in the different maven artefact (jar file) by using Maven Resolution strategies."

这有点过时了,但是对我有帮助.

It is a bit dated, but it helped me.

https://salaboy.com/2015/10/23/back-to-basics-3-using-drools-kie-ci-continuous-integration/

也要注意这一点 Drools Kie Scanner 7.5.0无法正常工作

这篇关于如何为Drools KieScanner创建和添加kjar?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆