I get it to work. Four steps where needed:
1. Adding
private KnowledgeBase *kBase*;//injected with Spring
// Build the Solver
SolverFactory solverFactory = new
XmlSolverFactory(/planner/solverConfig.xml);
RuleBase ruleBase = ((InternalKnowledgeBase)
Thanks for the clear recipe!
I've documented step 2 and 3 in the optaplanner manual (step 1 is
already partially documented and the other part is documented in
guvnor's docs).
Step 4 sounds like a bug, so please raise an issue
if uploading the
Thanks for your answer, it helps.
But just after solving one problem I am facing another. When uploading
my domain facts to Guvnor I get exception (from guvnor logs):
...
Servlet.service() for servlet AssetFileServlet threw exception:
javax.enterprise.event.ObserverException
...
Caused by:
Hello,
How Optaplanner and Guvnor should be integrated? I am using Drools
5.5.0.Final. I have configuration with spring so I have access to
KnowledgeBase.
I found in documentation:
5.3.4.2.2. A RuleBase (possibly defined by Guvnor)
On 17-06-13 15:33, Bartek wrote:
Hello,
How Optaplanner and Guvnor should be integrated? I am using
Drools 5.5.0.Final. I have configuration with spring so I have
access to KnowledgeBase.
I found in documentation: