问题
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