Details
-
Bug
-
Resolution: Done
-
Major
-
4.0.7
-
None
Description
When modifying the insurance sample RuleFlowTest.java class to use sequential mode with stateless session and calling a ruleflow from a rule, I receive the following error:
java.lang.ClassCastException: org.drools.common.ArrayAgendaGroup incompatible with org.drools.common.BinaryHeapQueueAgendaGroup
Here is more detail:
Inside RuleFlowTest.java ...
...
RuleBase ruleBase = readRule();
StatelessSession statelessSession = ruleBase.newStatelessSession();
StatelessSessionResult statelessSessionResult = statelessSession.executeWithResults(facts);
Inside readRule() I have ...
...
RuleBaseConfiguration conf = new RuleBaseConfiguration();
conf.setSequentialAgenda(SequentialAgenda.SEQUENTIAL); //I also tried without this line
conf.setSequential(true);
Inside rule (drl) I have:
rule "startRuleFlow"
salience 1000
when
then
drools.getWorkingMemory().startProcess("process.name");
end
The error occurs in the RHS above.