[jboss-jira] [JBoss JIRA] Created: (JBRULES-1636) sequential mode may be broken for ruleflow

Peter Samouelian (JIRA) jira-events at lists.jboss.org
Fri Jun 6 14:31:27 EDT 2008


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: Mark Proctor


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();
...insert facts ...
StatelessSessionResult statelessSessionResult = statelessSession.executeWithResults(diplomate);

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

        



More information about the jboss-jira mailing list