Search code examples
drools

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


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.


Solution

  • 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.

    Hope it helps,