[
http://jira.jboss.com/jira/browse/JBRULES-1636?page=all ]
Kris Verlaenen reassigned JBRULES-1636:
---------------------------------------
Assignee: Kris Verlaenen (was: Mark Proctor)
sequential mode may be broken for ruleflow
------------------------------------------
Key: JBRULES-1636
URL:
http://jira.jboss.com/jira/browse/JBRULES-1636
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Rule Flow
Affects Versions: 4.0.7
Environment: RAD 7.0.0
Reporter: Peter Samouelian
Assigned To: Kris Verlaenen
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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira