drools-flow is now called jBPM5 and is in it's own maven module. You'll
need to have that on your classpath if you wish to use processes.
I would move to the new knowledge-api as soon as you can, because we
will start to refactor classees in core and compiler after 5.4.
Mark
On 01/02/2012 20:36, womuji wrote:
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.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users