We are upgrading Drools Core from 5.1.1 to 5.3.1 and stilling using the old
RuleBase API, but we got Null Pointer Exception when running rules:
-----------------
Caused by: [Error: wm.startProcess($phase.id): null]
[Near : {... WorkingMemory wm = drools.getW ....}]
...
Caused by: java.lang.NullPointerException
at
org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingMemory.java:1073)
-----------------
where our DRL file has content:
-----------------
rule "Set ruleflow"
salience 10
when
$phase : Phase()
then
WorkingMemory wm = drools.getWorkingMemory();
wm.startProcess($phase.id);
end
-----------------
Do we have to switch to KnlowledgeBase API or sth wrong with our rule? ( it
worked fine with 5.1.1)
--
View this message in context:
http://drools.46999.n3.nabble.com/Difference-between-Rule-Base-and-Knowle...
Sent from the Drools: User forum mailing list archive at
Nabble.com.