[jboss-jira] [JBoss JIRA] (DROOLS-3282) Should not move to next AgendaGroup even if current is empty
Edoardo Vacchi (Jira)
issues at jboss.org
Tue Nov 27 09:36:00 EST 2018
[ https://issues.jboss.org/browse/DROOLS-3282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Edoardo Vacchi closed DROOLS-3282.
----------------------------------
Resolution: Rejected
not the right fix, add new primitive for suspension
> Should not move to next AgendaGroup even if current is empty
> ------------------------------------------------------------
>
> Key: DROOLS-3282
> URL: https://issues.jboss.org/browse/DROOLS-3282
> Project: Drools
> Issue Type: Bug
> Reporter: Edoardo Vacchi
> Assignee: Edoardo Vacchi
> Priority: Major
> Labels: drools-core
>
> Current implementation moves to next agend group if current agenda group is empty. This is unexpected, and in part detrimental in the impl of units: it is not possible to suspend execution of rules by switching to an empty group, because the engine will move to the next group anyway:
> {code}
> return nextRule != null && (!ruleAgendaItem.getAgendaGroup().equals( nextRule.getAgendaGroup() ) || !isHigherSalience(nextRule));
> {code}
> because the change in behavior is potentially backwards incompatible we add a flag {{keepWhenEmpty}} that must be set to {{true}} when we want to enable this new behavior
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list