]
Alejandro Guizar updated JBPM-2828:
-----------------------------------
Component/s: Runtime Engine
ContextInstance.deleteVariable() does not delete the variable from
the database
-------------------------------------------------------------------------------
Key: JBPM-2828
URL:
https://jira.jboss.org/browse/JBPM-2828
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 3.2.8
Reporter: Martin Putz
Assignee: Martin Putz
Fix For: jBPM 3.2.9
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: