Bug 724209 (BRMS-152)

Summary: Serialization of working memories for rulebases with Accumulates are failing
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: nwallace <nwallace>
Component: unspecifiedAssignee: Edson Tirelli <ed.tirelli>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: unspecified   
Target Milestone: ---   
Target Release: 5.0.1   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-152
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-09-01 12:17:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description nwallace 2009-07-07 12:40:12 UTC
Date of First Response: 2009-09-10 00:21:57
securitylevel_name: Public

Serialization of working memories with rules like this are failing:

rule "Test sum" salience 80
    dialect "java"
    when
    	$sum    : Number( doubleValue >= 10 ) 
    	                       from accumulate( Person( $likes : likes ) and Cheese( type == $likes, $price : price  ),
                                                sum( $price ) );
    then
        results.add( $sum );
end

Comment 1 nwallace 2009-07-07 12:43:33 UTC
Link: Added: This issue is related to JBRULES-1855


Comment 2 nwallace 2009-09-01 12:17:35 UTC
Fix in place.

Comment 3 David Le Sage 2009-09-10 04:21:57 UTC
For the errata in the release notes, we require details of:

The CAUSE (what was actually broken)

The FIX (what was changed to eliminate this bug) and 

CONSEQUENCES of the fix (how this benefits users.)


Dot point explanations are fine.

Comment 4 David Le Sage 2009-09-23 05:24:19 UTC
We are still awaiting the outstanding information for the Release Notes on this one.  Please provide it as soon as possible. Thanks.

Comment 5 Edson Tirelli 2009-09-24 14:30:06 UTC
The CAUSE (what was actually broken)
 * Accumulate statements with multiple inner patterns (Person and Cheese in the above example) require the creation of subnetworks in the Rete network. The creation of a subnetwork requires the addition of a RightInputAdapterNode to merge the subnetwork back into the main network. The serialization algorithm was not handling RightInputAdapterNodes properly.

CONSEQUENCES of the bug (how it impacts users.)
 * when users tried to serialize a KnowledgeBase containing subnetworks (e.g., accumulate with multiple inner patterns), the serialization would fail with various errors.

The FIX (what was changed to eliminate this bug) and
 * The serialization code was changed to properly handle the RightInputAdapterNode

RESULTS of the fix (what now happens for users.)
 * Serialization of KnowledgeBases containing subnetworks now work fine.