Executing a process with multiple BusinessRulesTask is getting stuck in an infinite loop
Issue
-
A successfully validated
DRLis executed by ajbpm process. The execution stops at the node where the business rule task should be executed; the java process consumes all available CPU time and the BPM Suite execution is not possible for any other process. -
If the complete
DRLis used, the behaviour described above occurs. If one of the rules is omitted, the rule execution works. -
Following is a simplified version of the rules.
rule r1 ruleflow-group "group1"
salience 100
when
$person: Person( $addressList : addresses )
Address( zipCode == "10243" ) from $addressList
$cheese : Cheese( )
then
System.out.println("r1 executed");
end
rule r2 ruleflow-group "group1"
salience 5
when
$person: Person( $addressList : addresses )
Address( zipCode == "10318" ) from $addressList
$cheese : Cheese( )
then
System.out.println("r2 executed");
end
Environment
- Red Hat JBoss BPM Suite
- 6.2.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
