|
On 17-06-13 15:33, Bartek wrote:
Hello,yes, it's the correct way for optaplanner 5.5.x with drools 5.5.x: IIRC, the guvnor docs explains how you can get a KnowledgeBase (~ drools 5 api), which you can transform into a RuleBase (~ drools 4 api which is still available in 5.5.x) like this: ((InternalKnowledgeBase)
myKnowledgeBase).getRuleBase()See http://stackoverflow.com/questions/11017613/live-rule-creation-in-drools-planner IIRC, KnowledgeAgent connects to guvnor and builds a KnowledgeBase. That being said, for optaplanner 6.0.x with drools 6.0.x, everything is standardized on KieBase (~ drools 6 api) (which is like the KnowledgeBase in the 5 api). We recently released 6.0.0.Beta3 (drools, guvnor and optaplanner release together). So there's solverFactory.getSolverConfig().getScoreDirectorFactoryConfig.setKieBase(kieBase); The optaplanner and drools stuff is pretty stable, even if it's called Beta3 (CR1 is coming soon), but I have no idea about the state of guvnor's KieBase support.
|
_______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
