Bug 724729 (BRMS-590)

Summary: Need hotfix for BRMS-586 for BRMS 5.1.0.GA
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Matt Davis <mattd>
Component: BRE (Expert, Fusion)Assignee: Jboss Support <support-patch>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: 5.1.0 GACC: armand.welsh, rwagner, tschloss, tsurdilo
Target Milestone: ---   
Target Release: One Off Releases   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-590
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-24 05:46:53 UTC Type: Support Patch
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
drools-compiler-5.1.0.BRMS.jar
none
drools-core-5.1.0.BRMS.jar none

Description Matt Davis 2011-05-11 15:06:35 UTC
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000007AQwS&sfdc.override=1
Patch Instructions: PATCH NAME: 
        BRMS-590
PRODUCT NAME:
        BRMS
VERSION:
        5.1.0     
SHORT DESCRIPTION: 
       Rules do not fire according to salience after multiple fact updates
LONG DESCRIPTION: 
       Rules do not fire according to salience after multiple fact updates
MANUAL INSTALL INSTRUCTIONS:
        To install this patch replace the following with the jars included in this patch:            
           For BRMS Manager :
           $JBOSS_HOME/jboss-as/server/$PROFILE/jboss-brms.war/WEB-INF/lib/drools-core-5.1.0.BRMS.jar
           $JBOSS_HOME/jboss-as/server/$PROFILE/jboss-brms.war/WEB-INF/lib/drools-compiler-5.1.0.BRMS.jar
          For BRMS Engine :
          The drools-core-5.1.0.BRMS.jar and drools-complier-5.1.0.BRMS.jar files included with your application.
COMPATIBILITY: 
        These jars are compatible with JBoss BRMS Platform 5.1.0.GA
DEPENDENCIES:
        N/A
SUPERSEDES:
        N/A
SUPERSEDED BY:
       N/A
CREATOR:
        Tiho Surdilovic
DATE:
        05/19/2011




Patch Repository Link: https://access.redhat.com/jbossnetwork/restricted/softwareDetail.html?softwareId=6713
SVN / CVS Isolated Branch: https://svn.jboss.org/repos/labs/labs/jbossrules/soa_branches/BRMS-5.1-GA_BRMS-590/
Support Case Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000007AQwS&sfdc.override=1
securitylevel_name: Public

"Print" rules with salience -100/-101 are activated as soon as corresponding facts are inserted. Other rules at salience 0 fire correctly, updating inserted facts. For a certain update pattern, Print rules suddenly fire prematurely, with existing activations of salience 0 firing later. A complete trace of all events:

Create — "Print customer"
Fact ex50.Customer: 1 - Homer - 0 @0:1:18082301:1:1:DEFAULT
Bindings: $c: 1 - Homer - 0
Insert ex50.Customer [0:1:18082301:1:1:DEFAULT]
new: 1 - Homer - 0
Create — "Print customer"
Fact ex50.Customer: 2 - Bart - 0 @0:2:7189308:2:2:DEFAULT
Bindings: $c: 2 - Bart - 0
Insert ex50.Customer [0:2:7189308:2:2:DEFAULT]
new: 2 - Bart - 0
Create — "Print customer"
Fact ex50.Customer: 3 - Marge - 0 @0:3:1205211:3:3:DEFAULT
Bindings: $c: 3 - Marge - 0
Insert ex50.Customer [0:3:1205211:3:3:DEFAULT]
new: 3 - Marge - 0
Create — "No rebate"
Fact ex50.Customer: 2 - Bart - 0 @0:2:7189308:2:2:DEFAULT
Fact ex50.Sale: 27 - 2 - 111 - 0 @0:4:22669032:27:4:DEFAULT
Bindings: $cid: 2 $s: 27 - 2 - 111 - 0 $amount: 111 $c: 2 - Bart - 0
Create — "Print sales"
Fact ex50.Sale: 27 - 2 - 111 - 0 @0:4:22669032:27:4:DEFAULT
Bindings: $s: 27 - 2 - 111 - 0
Insert ex50.Sale [0:4:22669032:27:4:DEFAULT]
new: 27 - 2 - 111 - 0
Create — "No rebate"
Fact ex50.Customer: 2 - Bart - 0 @0:2:7189308:2:2:DEFAULT
Fact ex50.Sale: 28 - 2 - 678 - 0 @0:5:21403224:28:5:DEFAULT
Bindings: $cid: 2 $s: 28 - 2 - 678 - 0 $amount: 678 $c: 2 - Bart - 0
Create — "Print sales"
Fact ex50.Sale: 28 - 2 - 678 - 0 @0:5:21403224:28:5:DEFAULT
Bindings: $s: 28 - 2 - 678 - 0
Insert ex50.Sale [0:5:21403224:28:5:DEFAULT]
new: 28 - 2 - 678 - 0
Create — "No rebate"
Fact ex50.Customer: 2 - Bart - 0 @0:2:7189308:2:2:DEFAULT
Fact ex50.Sale: 29 - 2 - 250 - 0 @0:6:20486975:29:6:DEFAULT
Bindings: $cid: 2 $s: 29 - 2 - 250 - 0 $amount: 250 $c: 2 - Bart - 0
Create — "Print sales"
Fact ex50.Sale: 29 - 2 - 250 - 0 @0:6:20486975:29:6:DEFAULT
Bindings: $s: 29 - 2 - 250 - 0
Insert ex50.Sale [0:6:20486975:29:6:DEFAULT]
new: 29 - 2 - 250 - 0
Create — "No rebate"
Fact ex50.Customer: 2 - Bart - 0 @0:2:7189308:2:2:DEFAULT
Fact ex50.Sale: 30 - 2 - 450 - 0 @0:7:22571162:30:7:DEFAULT
Bindings: $cid: 2 $s: 30 - 2 - 450 - 0 $amount: 450 $c: 2 - Bart - 0
Create — "Print sales"
Fact ex50.Sale: 30 - 2 - 450 - 0 @0:7:22571162:30:7:DEFAULT
Bindings: $s: 30 - 2 - 450 - 0
Insert ex50.Sale [0:7:22571162:30:7:DEFAULT]
new: 30 - 2 - 450 - 0
Create — "No rebate"
Fact ex50.Customer: 3 - Marge - 0 @0:3:1205211:3:3:DEFAULT
Fact ex50.Sale: 45 - 3 - 446 - 0 @0:8:20666938:45:8:DEFAULT
Bindings: $cid: 3 $s: 45 - 3 - 446 - 0 $amount: 446 $c: 3 - Marge - 0
Create — "Print sales"
Fact ex50.Sale: 45 - 3 - 446 - 0 @0:8:20666938:45:8:DEFAULT
Bindings: $s: 45 - 3 - 446 - 0
Insert ex50.Sale [0:8:20666938:45:8:DEFAULT]
new: 45 - 3 - 446 - 0
Create — "Rebate"
Fact ex50.Customer: 3 - Marge - 0 @0:3:1205211:3:3:DEFAULT
Fact ex50.Sale: 46 - 3 - 3280 - 0 @0:9:27309374:46:9:DEFAULT
Bindings: $cid: 3 $s: 46 - 3 - 3280 - 0 $amount: 3280 $c: 3 - Marge - 0
Create — "Print sales"
Fact ex50.Sale: 46 - 3 - 3280 - 0 @0:9:27309374:46:9:DEFAULT
Bindings: $s: 46 - 3 - 3280 - 0
Insert ex50.Sale [0:9:27309374:46:9:DEFAULT]
new: 46 - 3 - 3280 - 0
Create — "No rebate"
Fact ex50.Customer: 3 - Marge - 0 @0:3:1205211:3:3:DEFAULT
Fact ex50.Sale: 47 - 3 - 340 - 0 @0:10:31128398:47:10:DEFAULT
Bindings: $cid: 3 $s: 47 - 3 - 340 - 0 $amount: 340 $c: 3 - Marge - 0
Create — "Print sales"
Fact ex50.Sale: 47 - 3 - 340 - 0 @0:10:31128398:47:10:DEFAULT
Bindings: $s: 47 - 3 - 340 - 0
Insert ex50.Sale [0:10:31128398:47:10:DEFAULT]
new: 47 - 3 - 340 - 0
Create — "Rebate"
Fact ex50.Customer: 3 - Marge - 0 @0:3:1205211:3:3:DEFAULT
Fact ex50.Sale: 48 - 3 - 1250 - 0 @0:11:27841632:48:11:DEFAULT
Bindings: $cid: 3 $s: 48 - 3 - 1250 - 0 $amount: 1250 $c: 3 - Marge - 0
Create — "Print sales"
Fact ex50.Sale: 48 - 3 - 1250 - 0 @0:11:27841632:48:11:DEFAULT
Bindings: $s: 48 - 3 - 1250 - 0
Insert ex50.Sale [0:11:27841632:48:11:DEFAULT]
new: 48 - 3 - 1250 - 0
firing...
Fire/beg — "Rebate"
Fact ex50.Customer: 3 - Marge - 0 @0:3:1205211:3:3:DEFAULT
Fact ex50.Sale: 48 - 3 - 1250 - 0 @0:11:27841632:48:11:DEFAULT
Bindings: $cid: 3 $s: 48 - 3 - 1250 - 0 $amount: 1250 $c: 3 - Marge - 0
Modify ex50.Sale [0:11:27841632:48:12:DEFAULT]
new: 48 - 3 - 1250 - 62
Modify ex50.Customer [0:3:1205211:3:13:DEFAULT]
new: 3 - Marge - 1
REBATE: 48 - 3 - 1250 - 62
Fire/end — "Rebate"
Fact ex50.Customer: 3 - Marge - 1 @0:3:1205211:3:13:DEFAULT
Fact ex50.Sale: 48 - 3 - 1250 - 62 @0:11:27841632:48:12:DEFAULT
Bindings: $cid: 3 $s: 48 - 3 - 1250 - 62 $amount: 1250 $c: 3 - Marge - 1
Fire/beg — "No rebate"
Fact ex50.Customer: 3 - Marge - 1 @0:3:1205211:3:13:DEFAULT
Fact ex50.Sale: 47 - 3 - 340 - 0 @0:10:31128398:47:10:DEFAULT
Bindings: $cid: 3 $s: 47 - 3 - 340 - 0 $amount: 340 $c: 3 - Marge - 1
Modify ex50.Sale [0:10:31128398:47:14:DEFAULT]
new: 47 - 3 - 340 - 0
Modify ex50.Customer [0:3:1205211:3:15:DEFAULT]
new: 3 - Marge - 2
NO_REBATE: 47 - 3 - 340 - 0
Fire/end — "No rebate"
Fact ex50.Customer: 3 - Marge - 2 @0:3:1205211:3:15:DEFAULT
Fact ex50.Sale: 47 - 3 - 340 - 0 @0:10:31128398:47:14:DEFAULT
Bindings: $cid: 3 $s: 47 - 3 - 340 - 0 $amount: 340 $c: 3 - Marge - 2
Fire/beg — "Rebate"
Fact ex50.Customer: 3 - Marge - 2 @0:3:1205211:3:15:DEFAULT
Fact ex50.Sale: 46 - 3 - 3280 - 0 @0:9:27309374:46:9:DEFAULT
Bindings: $cid: 3 $s: 46 - 3 - 3280 - 0 $amount: 3280 $c: 3 - Marge - 2
Modify ex50.Sale [0:9:27309374:46:16:DEFAULT]
new: 46 - 3 - 3280 - 164
Create — "3rd sale"
Fact ex50.Sale: 45 - 3 - 446 - 0 @0:8:20666938:45:8:DEFAULT
Fact ex50.Customer: 3 - Marge - 3 @0:3:1205211:3:17:DEFAULT
Bindings: $cid: 3 $s: 45 - 3 - 446 - 0 $c: 3 - Marge - 3
Create — "3rd sale"
Fact ex50.Sale: 48 - 3 - 1250 - 62 @0:11:27841632:48:12:DEFAULT
Fact ex50.Customer: 3 - Marge - 3 @0:3:1205211:3:17:DEFAULT
Bindings: $cid: 3 $s: 48 - 3 - 1250 - 62 $c: 3 - Marge - 3
Create — "3rd sale"
Fact ex50.Sale: 47 - 3 - 340 - 0 @0:10:31128398:47:14:DEFAULT
Fact ex50.Customer: 3 - Marge - 3 @0:3:1205211:3:17:DEFAULT
Bindings: $cid: 3 $s: 47 - 3 - 340 - 0 $c: 3 - Marge - 3
Create — "3rd sale"
Fact ex50.Sale: 46 - 3 - 3280 - 164 @0:9:27309374:46:16:DEFAULT
Fact ex50.Customer: 3 - Marge - 3 @0:3:1205211:3:17:DEFAULT
Bindings: $cid: 3 $s: 46 - 3 - 3280 - 164 $c: 3 - Marge - 3
Modify ex50.Customer [0:3:1205211:3:17:DEFAULT]
new: 3 - Marge - 3
REBATE: 46 - 3 - 3280 - 164
Fire/end — "Rebate"
Fact ex50.Customer: 3 - Marge - 3 @0:3:1205211:3:17:DEFAULT
Fact ex50.Sale: 46 - 3 - 3280 - 164 @0:9:27309374:46:16:DEFAULT
Bindings: $cid: 3 $s: 46 - 3 - 3280 - 164 $amount: 3280 $c: 3 - Marge - 3
Fire/beg — "3rd sale"
Fact ex50.Sale: 46 - 3 - 3280 - 164 @0:9:27309374:46:16:DEFAULT
Fact ex50.Customer: 3 - Marge - 3 @0:3:1205211:3:17:DEFAULT
Bindings: $cid: 3 $s: 46 - 3 - 3280 - 164 $c: 3 - Marge - 3
Create — "3rd sale"
Fact ex50.Sale: 46 - 3 - 3280 - 174 @0:9:27309374:46:18:DEFAULT
Fact ex50.Customer: 3 - Marge - 3 @0:3:1205211:3:17:DEFAULT
Bindings: $cid: 3 $s: 46 - 3 - 3280 - 174 $c: 3 - Marge - 3
Modify ex50.Sale [0:9:27309374:46:18:DEFAULT]
new: 46 - 3 - 3280 - 174
Cancel — "3rd sale" (WM change)
Fact ex50.Sale: 45 - 3 - 446 - 0 @0:8:20666938:45:8:DEFAULT
Fact ex50.Customer: 3 - Marge - 3 @0:3:1205211:3:19:DEFAULT
Bindings: $cid: 3 $s: 45 - 3 - 446 - 0 $c: 3 - Marge - 3
Cancel — "3rd sale" (WM change)
Fact ex50.Sale: 48 - 3 - 1250 - 62 @0:11:27841632:48:12:DEFAULT
Fact ex50.Customer: 3 - Marge - 3 @0:3:1205211:3:19:DEFAULT
Bindings: $cid: 3 $s: 48 - 3 - 1250 - 62 $c: 3 - Marge - 3
Cancel — "3rd sale" (WM change)
Fact ex50.Sale: 47 - 3 - 340 - 0 @0:10:31128398:47:14:DEFAULT
Fact ex50.Customer: 3 - Marge - 3 @0:3:1205211:3:19:DEFAULT
Bindings: $cid: 3 $s: 47 - 3 - 340 - 0 $c: 3 - Marge - 3
Cancel — "3rd sale" (WM change)
Fact ex50.Sale: 46 - 3 - 3280 - 174 @0:9:27309374:46:18:DEFAULT
Fact ex50.Customer: 3 - Marge - 3 @0:3:1205211:3:19:DEFAULT
Bindings: $cid: 3 $s: 46 - 3 - 3280 - 174 $c: 3 - Marge - 3
Modify ex50.Customer [0:3:1205211:3:19:DEFAULT]
new: 3 - Marge - 3
3RD BUY: 46 - 3 - 3280 - 174
Fire/end — "3rd sale"
Fact ex50.Sale: 46 - 3 - 3280 - 174 @0:9:27309374:46:18:DEFAULT
Fact ex50.Customer: 3 - Marge - 3 @0:3:1205211:3:19:DEFAULT
Bindings: $cid: 3 $s: 46 - 3 - 3280 - 174 $c: 3 - Marge - 3
Fire/beg — "No rebate"
Fact ex50.Customer: 2 - Bart - 0 @0:2:7189308:2:2:DEFAULT
Fact ex50.Sale: 30 - 2 - 450 - 0 @0:7:22571162:30:7:DEFAULT
Bindings: $cid: 2 $s: 30 - 2 - 450 - 0 $amount: 450 $c: 2 - Bart - 0
Modify ex50.Sale [0:7:22571162:30:20:DEFAULT]
new: 30 - 2 - 450 - 0
Modify ex50.Customer [0:2:7189308:2:21:DEFAULT]
new: 2 - Bart - 1
NO_REBATE: 30 - 2 - 450 - 0
Fire/end — "No rebate"
Fact ex50.Customer: 2 - Bart - 1 @0:2:7189308:2:21:DEFAULT
Fact ex50.Sale: 30 - 2 - 450 - 0 @0:7:22571162:30:20:DEFAULT
Bindings: $cid: 2 $s: 30 - 2 - 450 - 0 $amount: 450 $c: 2 - Bart - 1
Fire/beg — "No rebate"
Fact ex50.Customer: 2 - Bart - 1 @0:2:7189308:2:21:DEFAULT
Fact ex50.Sale: 27 - 2 - 111 - 0 @0:4:22669032:27:4:DEFAULT
Bindings: $cid: 2 $s: 27 - 2 - 111 - 0 $amount: 111 $c: 2 - Bart - 1
Modify ex50.Sale [0:4:22669032:27:22:DEFAULT]
new: 27 - 2 - 111 - 0
Modify ex50.Customer [0:2:7189308:2:23:DEFAULT]
new: 2 - Bart - 2
NO_REBATE: 27 - 2 - 111 - 0
Fire/end — "No rebate"
Fact ex50.Customer: 2 - Bart - 2 @0:2:7189308:2:23:DEFAULT
Fact ex50.Sale: 27 - 2 - 111 - 0 @0:4:22669032:27:22:DEFAULT
Bindings: $cid: 2 $s: 27 - 2 - 111 - 0 $amount: 111 $c: 2 - Bart - 2
Fire/beg — "Print customer"
Fact ex50.Customer: 2 - Bart - 2 @0:2:7189308:2:23:DEFAULT
Bindings: $c: 2 - Bart - 2
CUSTOMER: 2 - Bart - 2
Fire/end — "Print customer"
Fact ex50.Customer: 2 - Bart - 2 @0:2:7189308:2:23:DEFAULT
Bindings: $c: 2 - Bart - 2
Fire/beg — "Print customer"
Fact ex50.Customer: 1 - Homer - 0 @0:1:18082301:1:1:DEFAULT
Bindings: $c: 1 - Homer - 0
CUSTOMER: 1 - Homer - 0
Fire/end — "Print customer"
Fact ex50.Customer: 1 - Homer - 0 @0:1:18082301:1:1:DEFAULT
Bindings: $c: 1 - Homer - 0
Fire/beg — "Print sales"
Fact ex50.Sale: 48 - 3 - 1250 - 62 @0:11:27841632:48:12:DEFAULT
Bindings: $s: 48 - 3 - 1250 - 62
SALE: 48 - 3 - 1250 - 62
Fire/end — "Print sales"
Fact ex50.Sale: 48 - 3 - 1250 - 62 @0:11:27841632:48:12:DEFAULT
Bindings: $s: 48 - 3 - 1250 - 62
Fire/beg — "No rebate"
Fact ex50.Customer: 2 - Bart - 2 @0:2:7189308:2:23:DEFAULT
Fact ex50.Sale: 29 - 2 - 250 - 0 @0:6:20486975:29:6:DEFAULT
Bindings: $cid: 2 $s: 29 - 2 - 250 - 0 $amount: 250 $c: 2 - Bart - 2
Modify ex50.Sale [0:6:20486975:29:24:DEFAULT]
new: 29 - 2 - 250 - 0
Create — "3rd sale"
Fact ex50.Sale: 28 - 2 - 678 - 0 @0:5:21403224:28:5:DEFAULT
Fact ex50.Customer: 2 - Bart - 3 @0:2:7189308:2:25:DEFAULT
Bindings: $cid: 2 $s: 28 - 2 - 678 - 0 $c: 2 - Bart - 3
Create — "3rd sale"
Fact ex50.Sale: 30 - 2 - 450 - 0 @0:7:22571162:30:20:DEFAULT
Fact ex50.Customer: 2 - Bart - 3 @0:2:7189308:2:25:DEFAULT
Bindings: $cid: 2 $s: 30 - 2 - 450 - 0 $c: 2 - Bart - 3
Create — "3rd sale"
Fact ex50.Sale: 27 - 2 - 111 - 0 @0:4:22669032:27:22:DEFAULT
Fact ex50.Customer: 2 - Bart - 3 @0:2:7189308:2:25:DEFAULT
Bindings: $cid: 2 $s: 27 - 2 - 111 - 0 $c: 2 - Bart - 3
Create — "3rd sale"
Fact ex50.Sale: 29 - 2 - 250 - 0 @0:6:20486975:29:24:DEFAULT
Fact ex50.Customer: 2 - Bart - 3 @0:2:7189308:2:25:DEFAULT
Bindings: $cid: 2 $s: 29 - 2 - 250 - 0 $c: 2 - Bart - 3
Create — "Print customer"
Fact ex50.Customer: 2 - Bart - 3 @0:2:7189308:2:25:DEFAULT
Bindings: $c: 2 - Bart - 3
Modify ex50.Customer [0:2:7189308:2:25:DEFAULT]
new: 2 - Bart - 3
NO_REBATE: 29 - 2 - 250 - 0
Fire/end — "No rebate"
Fact ex50.Customer: 2 - Bart - 3 @0:2:7189308:2:25:DEFAULT
Fact ex50.Sale: 29 - 2 - 250 - 0 @0:6:20486975:29:24:DEFAULT
Bindings: $cid: 2 $s: 29 - 2 - 250 - 0 $amount: 250 $c: 2 - Bart - 3
Fire/beg — "3rd sale"
Fact ex50.Sale: 29 - 2 - 250 - 0 @0:6:20486975:29:24:DEFAULT
Fact ex50.Customer: 2 - Bart - 3 @0:2:7189308:2:25:DEFAULT
Bindings: $cid: 2 $s: 29 - 2 - 250 - 0 $c: 2 - Bart - 3
Create — "3rd sale"
Fact ex50.Sale: 29 - 2 - 250 - 10 @0:6:20486975:29:26:DEFAULT
Fact ex50.Customer: 2 - Bart - 3 @0:2:7189308:2:25:DEFAULT
Bindings: $cid: 2 $s: 29 - 2 - 250 - 10 $c: 2 - Bart - 3
Modify ex50.Sale [0:6:20486975:29:26:DEFAULT]
new: 29 - 2 - 250 - 10
Cancel — "3rd sale" (WM change)
Fact ex50.Sale: 28 - 2 - 678 - 0 @0:5:21403224:28:5:DEFAULT
Fact ex50.Customer: 2 - Bart - 3 @0:2:7189308:2:27:DEFAULT
Bindings: $cid: 2 $s: 28 - 2 - 678 - 0 $c: 2 - Bart - 3
Cancel — "3rd sale" (WM change)
Fact ex50.Sale: 30 - 2 - 450 - 0 @0:7:22571162:30:20:DEFAULT
Fact ex50.Customer: 2 - Bart - 3 @0:2:7189308:2:27:DEFAULT
Bindings: $cid: 2 $s: 30 - 2 - 450 - 0 $c: 2 - Bart - 3
Cancel — "3rd sale" (WM change)
Fact ex50.Sale: 27 - 2 - 111 - 0 @0:4:22669032:27:22:DEFAULT
Fact ex50.Customer: 2 - Bart - 3 @0:2:7189308:2:27:DEFAULT
Bindings: $cid: 2 $s: 27 - 2 - 111 - 0 $c: 2 - Bart - 3
Cancel — "3rd sale" (WM change)
Fact ex50.Sale: 29 - 2 - 250 - 10 @0:6:20486975:29:26:DEFAULT
Fact ex50.Customer: 2 - Bart - 3 @0:2:7189308:2:27:DEFAULT
Bindings: $cid: 2 $s: 29 - 2 - 250 - 10 $c: 2 - Bart - 3
Modify ex50.Customer [0:2:7189308:2:27:DEFAULT]
new: 2 - Bart - 3
3RD BUY: 29 - 2 - 250 - 10
Fire/end — "3rd sale"
Fact ex50.Sale: 29 - 2 - 250 - 10 @0:6:20486975:29:26:DEFAULT
Fact ex50.Customer: 2 - Bart - 3 @0:2:7189308:2:27:DEFAULT
Bindings: $cid: 2 $s: 29 - 2 - 250 - 10 $c: 2 - Bart - 3
Fire/beg — "No rebate"
Fact ex50.Customer: 2 - Bart - 3 @0:2:7189308:2:27:DEFAULT
Fact ex50.Sale: 28 - 2 - 678 - 0 @0:5:21403224:28:5:DEFAULT
Bindings: $cid: 2 $s: 28 - 2 - 678 - 0 $amount: 678 $c: 2 - Bart - 3
Modify ex50.Sale [0:5:21403224:28:28:DEFAULT]
new: 28 - 2 - 678 - 0
Create — "after 3rd sale"
Fact ex50.Customer: 2 - Bart - 4 @0:2:7189308:2:29:DEFAULT
Bindings: $c: 2 - Bart - 4
Modify ex50.Customer [0:2:7189308:2:29:DEFAULT]
new: 2 - Bart - 4
NO_REBATE: 28 - 2 - 678 - 0
Fire/end — "No rebate"
Fact ex50.Customer: 2 - Bart - 4 @0:2:7189308:2:29:DEFAULT
Fact ex50.Sale: 28 - 2 - 678 - 0 @0:5:21403224:28:28:DEFAULT
Bindings: $cid: 2 $s: 28 - 2 - 678 - 0 $amount: 678 $c: 2 - Bart - 4
Fire/beg — "after 3rd sale"
Fact ex50.Customer: 2 - Bart - 4 @0:2:7189308:2:29:DEFAULT
Bindings: $c: 2 - Bart - 4
Modify ex50.Customer [0:2:7189308:2:30:DEFAULT]
new: 2 - Bart - 4
Fire/end — "after 3rd sale"
Fact ex50.Customer: 2 - Bart - 4 @0:2:7189308:2:30:DEFAULT
Bindings: $c: 2 - Bart - 4
Fire/beg — "Print customer"
Fact ex50.Customer: 2 - Bart - 4 @0:2:7189308:2:30:DEFAULT
Bindings: $c: 2 - Bart - 4
CUSTOMER: 2 - Bart - 4
Fire/end — "Print customer"
Fact ex50.Customer: 2 - Bart - 4 @0:2:7189308:2:30:DEFAULT
Bindings: $c: 2 - Bart - 4
Fire/beg — "Print sales"
Fact ex50.Sale: 47 - 3 - 340 - 0 @0:10:31128398:47:14:DEFAULT
Bindings: $s: 47 - 3 - 340 - 0
SALE: 47 - 3 - 340 - 0
Fire/end — "Print sales"
Fact ex50.Sale: 47 - 3 - 340 - 0 @0:10:31128398:47:14:DEFAULT
Bindings: $s: 47 - 3 - 340 - 0
Fire/beg — "No rebate"
Fact ex50.Customer: 3 - Marge - 3 @0:3:1205211:3:19:DEFAULT
Fact ex50.Sale: 45 - 3 - 446 - 0 @0:8:20666938:45:8:DEFAULT
Bindings: $cid: 3 $s: 45 - 3 - 446 - 0 $amount: 446 $c: 3 - Marge - 3
Modify ex50.Sale [0:8:20666938:45:31:DEFAULT]
new: 45 - 3 - 446 - 0
Create — "after 3rd sale"
Fact ex50.Customer: 3 - Marge - 4 @0:3:1205211:3:32:DEFAULT
Bindings: $c: 3 - Marge - 4
Modify ex50.Customer [0:3:1205211:3:32:DEFAULT]
new: 3 - Marge - 4
NO_REBATE: 45 - 3 - 446 - 0
Fire/end — "No rebate"
Fact ex50.Customer: 3 - Marge - 4 @0:3:1205211:3:32:DEFAULT
Fact ex50.Sale: 45 - 3 - 446 - 0 @0:8:20666938:45:31:DEFAULT
Bindings: $cid: 3 $s: 45 - 3 - 446 - 0 $amount: 446 $c: 3 - Marge - 4
Fire/beg — "after 3rd sale"
Fact ex50.Customer: 3 - Marge - 4 @0:3:1205211:3:32:DEFAULT
Bindings: $c: 3 - Marge - 4
Modify ex50.Customer [0:3:1205211:3:33:DEFAULT]
new: 3 - Marge - 4
Fire/end — "after 3rd sale"
Fact ex50.Customer: 3 - Marge - 4 @0:3:1205211:3:33:DEFAULT
Bindings: $c: 3 - Marge - 4
Fire/beg — "Print customer"
Fact ex50.Customer: 3 - Marge - 4 @0:3:1205211:3:33:DEFAULT
Bindings: $c: 3 - Marge - 4
CUSTOMER: 3 - Marge - 4
Fire/end — "Print customer"
Fact ex50.Customer: 3 - Marge - 4 @0:3:1205211:3:33:DEFAULT
Bindings: $c: 3 - Marge - 4
Fire/beg — "Print sales"
Fact ex50.Sale: 46 - 3 - 3280 - 174 @0:9:27309374:46:18:DEFAULT
Bindings: $s: 46 - 3 - 3280 - 174
SALE: 46 - 3 - 3280 - 174
Fire/end — "Print sales"
Fact ex50.Sale: 46 - 3 - 3280 - 174 @0:9:27309374:46:18:DEFAULT
Bindings: $s: 46 - 3 - 3280 - 174
Fire/beg — "Print sales"
Fact ex50.Sale: 45 - 3 - 446 - 0 @0:8:20666938:45:31:DEFAULT
Bindings: $s: 45 - 3 - 446 - 0
SALE: 45 - 3 - 446 - 0
Fire/end — "Print sales"
Fact ex50.Sale: 45 - 3 - 446 - 0 @0:8:20666938:45:31:DEFAULT
Bindings: $s: 45 - 3 - 446 - 0
Fire/beg — "Print sales"
Fact ex50.Sale: 30 - 2 - 450 - 0 @0:7:22571162:30:20:DEFAULT
Bindings: $s: 30 - 2 - 450 - 0
SALE: 30 - 2 - 450 - 0
Fire/end — "Print sales"
Fact ex50.Sale: 30 - 2 - 450 - 0 @0:7:22571162:30:20:DEFAULT
Bindings: $s: 30 - 2 - 450 - 0
Fire/beg — "Print sales"
Fact ex50.Sale: 29 - 2 - 250 - 10 @0:6:20486975:29:26:DEFAULT
Bindings: $s: 29 - 2 - 250 - 10
SALE: 29 - 2 - 250 - 10
Fire/end — "Print sales"
Fact ex50.Sale: 29 - 2 - 250 - 10 @0:6:20486975:29:26:DEFAULT
Bindings: $s: 29 - 2 - 250 - 10
Fire/beg — "Print sales"
Fact ex50.Sale: 28 - 2 - 678 - 0 @0:5:21403224:28:28:DEFAULT
Bindings: $s: 28 - 2 - 678 - 0
SALE: 28 - 2 - 678 - 0
Fire/end — "Print sales"
Fact ex50.Sale: 28 - 2 - 678 - 0 @0:5:21403224:28:28:DEFAULT
Bindings: $s: 28 - 2 - 678 - 0
Fire/beg — "Print sales"
Fact ex50.Sale: 27 - 2 - 111 - 0 @0:4:22669032:27:22:DEFAULT
Bindings: $s: 27 - 2 - 111 - 0
SALE: 27 - 2 - 111 - 0
Fire/end — "Print sales"
Fact ex50.Sale: 27 - 2 - 111 - 0 @0:4:22669032:27:22:DEFAULT
Bindings: $s: 27 - 2 - 111 - 0
done!

Comment 1 Matt Davis 2011-05-11 15:07:58 UTC
Link: Added: This issue Cloned from BRMS-586


Comment 2 Matt Davis 2011-05-11 15:07:58 UTC
Link: Added: This issue Cloned from JBRULES-2942


Comment 3 Matt Davis 2011-05-11 20:11:26 UTC
Workflow: Removed: jira Added: JBoss Platforms Support Case Workflow v1
Support Case Reference: Added: https://c.na7.visual.force.com/apex/Case_View?id=500A0000007AQwS&sfdc.override=1


Comment 4 Tihomir Surdilovic 2011-05-13 18:38:53 UTC
created one-off branch https://svn.jboss.org/repos/labs/labs/jbossrules/soa_branches/BRMS-5.1-GA_BRMS-590/

Comment 5 Tihomir Surdilovic 2011-05-13 18:38:53 UTC
SVN / CVS Isolated Branch: Added: https://svn.jboss.org/repos/labs/labs/jbossrules/soa_branches/BRMS-5.1-GA_BRMS-590/


Comment 6 Tihomir Surdilovic 2011-05-14 03:08:07 UTC
Hudson job: https://hudson.qa.jboss.com/hudson/view/BRMS/job/brms-5.1-BRMS-590/

Comment 7 Tihomir Surdilovic 2011-05-14 04:19:07 UTC
Fixes committed to one-off branch

Comment 8 Tihomir Surdilovic 2011-05-14 05:13:50 UTC
Attachment: Added: drools-core-5.1.GA_BRMS-586.jar


Comment 9 Tihomir Surdilovic 2011-05-14 05:14:15 UTC
Attachment: Added: drools-compiler-5.1.GA_BRMS-586.jar


Comment 10 Tihomir Surdilovic 2011-05-14 05:19:08 UTC
I have create a job in hudson: https://hudson.qa.jboss.com/hudson/view/BRMS/job/brms-5.1-BRMS-590/

however was not sure if i did this 100% correctly. please let me know as creating a job from copying 5.1.GA job fails on modeshape building

Comment 11 Tihomir Surdilovic 2011-05-14 05:19:08 UTC
Patch Instructions: Added: patch svn branch: http://anonsvn.jboss.org/repos/labs/labs/jbossrules/soa_branches/BRMS-5.1-GA_BRMS-590/

build the branch in hudson and make sure tests run without errors

attach drools-core and drools-compiler jars to jira which are the two artifacts needed for the one-off patch to be included in


Comment 12 Lukáš Petrovický 2011-05-16 06:55:00 UTC
Assigning to a QE engineer. Work on the patch will begin tomorrow morning (CEST).

Comment 13 Tihomir Surdilovic 2011-05-16 13:55:17 UTC
Attachment: Removed: drools-compiler-5.1.GA_BRMS-586.jar 


Comment 14 Tihomir Surdilovic 2011-05-16 13:55:21 UTC
Attachment: Removed: drools-core-5.1.GA_BRMS-586.jar 


Comment 15 Tihomir Surdilovic 2011-05-16 14:26:46 UTC
bits available at http://jawa05.englab.brq.redhat.com/patches/BRMS-590/
for the patch we need drools-core and drools-compiler jars only 

Comment 16 Tomas Schlosser 2011-05-17 08:19:33 UTC
QE Tests failed. The BRMS-586 bug is fixed, but new bug was introduced. In CEP managed lifecycle and @expires metadata don't work.

To reproduce:
Insert new TestEvent fact into session then wait for 15 seconds and expect the TestEvent to be retracted "entryPoint.getFactHandles().contains(handle)"

DRL:
declare TestEvent
    @role( event )
    @expires( 10s )
end

rule "TestEventReceived"
    no-loop
    when
        $event : TestEvent ( value != null ) over window:time( 10s ) from entry-point EventStream
    then
        #consequences
end

Comment 17 Tihomir Surdilovic 2011-05-17 15:02:49 UTC
I am able to reproduce the mentioned bug. Looking into it.

Comment 18 Tihomir Surdilovic 2011-05-17 15:51:43 UTC
Fix checked into the patch branch. please re-test

Comment 19 Tihomir Surdilovic 2011-05-18 12:21:03 UTC
New build bits available at http://jawa05.englab.brq.redhat.com/patches/BRMS-590/CR2/

Comment 20 Tihomir Surdilovic 2011-05-18 12:26:29 UTC
Old bits previously tested (where bug was found) are here now http://jawa05.englab.brq.redhat.com/patches/BRMS-590/CR1/ 

Comment 21 Tomas Schlosser 2011-05-19 09:01:10 UTC
Verified that both bugs are fixed, tests passed.

Comment 22 Rick Wagner 2011-05-19 15:20:25 UTC
Previous Patch Instructions:
patch svn branch: http://anonsvn.jboss.org/repos/labs/labs/jbossrules/soa_branches/BRMS-5.1-GA_BRMS-590/

build the branch in hudson and make sure tests run without errors

attach drools-core and drools-compiler jars to jira which are the two artifacts needed for the one-off patch to be included in

Comment 23 Rick Wagner 2011-05-19 15:20:25 UTC
Patch Instructions: Removed: patch svn branch: http://anonsvn.jboss.org/repos/labs/labs/jbossrules/soa_branches/BRMS-5.1-GA_BRMS-590/

build the branch in hudson and make sure tests run without errors

attach drools-core and drools-compiler jars to jira which are the two artifacts needed for the one-off patch to be included in Added: PATCH NAME: 
        BRMS-590
PRODUCT NAME:
        BRMS
VERSION:
        5.1.0     
SHORT DESCRIPTION: 
       Rules do not fire according to salience after multiple fact updates
LONG DESCRIPTION: 
       Rules do not fire according to salience after multiple fact updates
MANUAL INSTALL INSTRUCTIONS:
        To install this patch replace the following with the jars included in this patch: 
           $JBOSS_HOME/jboss-as/lib/some.jar 
           $JBOSS_HOME/jboss-as/lib/another.jar
COMPATIBILITY: 
        N/A
DEPENDENCIES:
        N/A
SUPERSEDES:
        N/A
SUPERSEDED BY:
       N/A
CREATOR:
        Tiho Surdilovic
DATE:
        05/19/2011






Comment 24 Matt Davis 2011-05-19 15:55:00 UTC
Patch Instructions: Removed: PATCH NAME: 
        BRMS-590
PRODUCT NAME:
        BRMS
VERSION:
        5.1.0     
SHORT DESCRIPTION: 
       Rules do not fire according to salience after multiple fact updates
LONG DESCRIPTION: 
       Rules do not fire according to salience after multiple fact updates
MANUAL INSTALL INSTRUCTIONS:
        To install this patch replace the following with the jars included in this patch: 
           $JBOSS_HOME/jboss-as/lib/some.jar 
           $JBOSS_HOME/jboss-as/lib/another.jar
COMPATIBILITY: 
        N/A
DEPENDENCIES:
        N/A
SUPERSEDES:
        N/A
SUPERSEDED BY:
       N/A
CREATOR:
        Tiho Surdilovic
DATE:
        05/19/2011



 Added: PATCH NAME: 
        BRMS-590
PRODUCT NAME:
        BRMS
VERSION:
        5.1.0     
SHORT DESCRIPTION: 
       Rules do not fire according to salience after multiple fact updates
LONG DESCRIPTION: 
       Rules do not fire according to salience after multiple fact updates
MANUAL INSTALL INSTRUCTIONS:
        To install this patch replace the following with the jars included in this patch:            
           For BRMS Manager :
           $JBOSS_HOME/jboss-as/server/$PROFILE/jboss-brms.war/WEB-INF/lib/drools-core-5.1.0.BRMS.jar
           $JBOSS_HOME/jboss-as/server/$PROFILE/jboss-brms.war/WEB-INF/lib/drools-compiler-5.1.0.BRMS.jar
          For BRMS Engine :
          The drools-core-5.1.0.BRMS.jar and drools-complier-5.1.0.BRMS.jar files included with your application.
COMPATIBILITY: 
        These jars are compatible with JBoss BRMS Platform 5.1.0.GA
DEPENDENCIES:
        N/A
SUPERSEDES:
        N/A
SUPERSEDED BY:
       N/A
CREATOR:
        Tiho Surdilovic
DATE:
        05/19/2011






Comment 25 Matt Davis 2011-05-19 15:58:11 UTC
Attachment: Added: drools-compiler-5.1.0.BRMS.jar
Attachment: Added: drools-core-5.1.0.BRMS.jar


Comment 26 Tushar Gandotra 2011-05-24 05:46:53 UTC
This patch is applicable to JBoss BRMS 5.1. It is available for download
from the following location:
https://access.redhat.com/jbossnetwork/restricted/softwareDetail.html?softwareId=6713

Comment 27 Tushar Gandotra 2011-05-24 05:46:53 UTC
Patch Repository Link: Added: https://access.redhat.com/jbossnetwork/restricted/softwareDetail.html?softwareId=6713


Comment 28 Rick Wagner 2011-06-07 19:26:32 UTC
This patch superceded by BRMS-599, which includes code for BRMS-538 and BRMS-590.