Bug 724209 (BRMS-152) - Serialization of working memories for rulebases with Accumulates are failing
Summary: Serialization of working memories for rulebases with Accumulates are failing
Keywords:
Status: CLOSED NEXTRELEASE
Alias: BRMS-152
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: unspecified
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: 5.0.1
Assignee: Edson Tirelli
QA Contact:
URL: http://jira.jboss.org/jira/browse/BRM...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-07 12:40 UTC by nwallace
Modified: 2009-10-01 00:44 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-01 12:17:35 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker BRMS-152 0 Major Closed Serialization of working memories for rulebases with Accumulates are failing 2015-05-29 06:54:01 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.