0

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.

Javed Shaikh
  • 663
  • 7
  • 16

1 Answers1

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.

Hope it helps,

Esteban Aliverti
  • 6,259
  • 2
  • 19
  • 31
  • RuleAgent agent = org.drools.agent.RuleAgent.newRuleAgent(properties); how can i acive same thing using KieScanner – Javed Shaikh Feb 20 '18 at 13:55
  • Read the documentation and check-out the tests they have. For example: https://github.com/kiegroup/drools/blob/master/kie-ci/src/test/java/org/kie/scanner/KieScannerIncrementalCompilationTest.java – Esteban Aliverti Feb 20 '18 at 14:51