ContextInstance.deleteVariable() does not delete the variable from the database
-------------------------------------------------------------------------------
Key: JBPM-2828
URL:
https://jira.jboss.org/jira/browse/JBPM-2828
Project: jBPM
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: jBPM 3.2.8
Reporter: Martin Putz
Assignee: Martin Putz
A call to ContextInstance.deleteVariable(name) does not actually delete the variable from
the database. Instead, in the VariableContainer.deleteVariable() method, only the
references to the process execution are removed, and a new log entry is added. This can
lead to orphaned records in the database.
The applied fix removes the variable instances from the database *if the logging service
is disabled*. With the logging service enabled, the variable cannot be deleted right away,
as the new VariableDeleteLog instance holds a reference to the variable. These records
will eventually be deleted upon process instance deletion.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira