Drool 5.3.3.Final to Drool 6.0.0.Final Migration. RuleAgent alternate in Drool 6

不问归期 提交于 2019-12-11 17:37:19

问题


I am new to drool and question might be quite easy but headache for a now

what is the alternate to org.drools.agent.RuleAgent in drools 6.0.0 or how can i create newInstance of RuleAgent using drool 6.0.0.


回答1:


The DroolsAgent class was removed from version 6 and greater. You can achieve a similar behavior (and probably event more) with the KieScanner or with KieContainer.updateToVersion().

Both ways are kind of documented in the oficial documentation.

  • KieScanner: http://docs.jboss.org/drools/release/7.0.0.Final/drools-docs/html_single/#_kiescanner
  • KieContainer.updateToVersion(): http://docs.jboss.org/drools/release/7.0.0.Final/drools-docs/html_single/#_kiescanner

Hope it helps,



来源:https://stackoverflow.com/questions/48886541/drool-5-3-3-final-to-drool-6-0-0-final-migration-ruleagent-alternate-in-drool-6

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!