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

Kris Verlaenen (JIRA) jira-events at lists.jboss.org
Thu Jun 26 05:47:58 EDT 2008


     [ http://jira.jboss.com/jira/browse/JBRULES-1636?page=all ]

Kris Verlaenen resolved JBRULES-1636.
-------------------------------------

    Fix Version/s: 5.0.0-M1
       Resolution: Done

Ruleflow group is now using the more generic InternalAgendaGroup interface

> 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
>             Fix For: 5.0.0-M1
>
>
> 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

        



More information about the jboss-jira mailing list