Bug 779624 (SOA-1995)

Summary: ContextInstance.deleteVariable() does not delete the variable from the database
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: Martin Weiler <mweiler>
Component: JBPM - within SOA, JBPM - standaloneAssignee: Alejandro Guizar <alex.guizar>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.3 CP02   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-1995
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 779625 (view as bug list) Environment:
Last Closed: 2010-05-31 09:32:11 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 Martin Weiler 2010-03-17 09:53:05 UTC
Date of First Response: 2010-05-18 12:49:33
Help Desk Ticket Reference: https://enterprise.redhat.com/issue-tracker/610413
project_key: SOA

Platform issue for JBPM-2828

Comment 1 Alejandro Guizar 2010-05-18 16:49:33 UTC
Linking project issue.

Comment 2 Alejandro Guizar 2010-05-18 16:49:33 UTC
Link: Added: This issue depends JBPM-2828


Comment 3 Alejandro Guizar 2010-05-18 17:25:10 UTC
Link: Added: This issue is related to SOA-1956


Comment 4 Alejandro Guizar 2010-05-28 04:18:44 UTC
Resolving since project issue JBPM-2828 and related issue SOA-1956 are both resolved already. Set the same fix version as SOA-1956, 5.0.2. If you reopen, please reassign appropriately.

Comment 5 Jiri Pechanec 2010-05-31 09:32:11 UTC
Verified in CR1

Comment 6 Dana Mison 2010-06-08 03:58:03 UTC
More info needed for 5.0.2 release notes:  are the following statements true, and what should ??? be below

ContextInstance.deleteVariable(name) did not actually delete variables from the database, the  
VariableContainer.deleteVariable() method instead removed references to the process execution. 
This could lead to orphaned records in the database.

??? now removes the variables from the database if the logging service is disabled.  If logging is enabled 
the new VariableDeleteLog holds a reference to the variable and it is removed when the 
process instance is deleted.



Comment 8 Dana Mison 2010-06-22 00:48:38 UTC
Added to SOA 5.1 Release Notes as resolved:

JBPM-2828
ContextInstance.deleteVariable(name) was not actually deleting variables from the database, and instead only
removed references to the process execution. This could lead to orphaned records in the database.  This method
now removes the variables from the database if the logging service is disabled. If logging is enabled
the new VariableDeleteLog holds a reference to the variable and it is removed when the
process instance is deleted. 

Comment 9 Alejandro Guizar 2010-08-06 17:46:27 UTC
Link: Added: This issue is duplicated by SOA-2208