Class TraceableVariablesCommandContextCloseListener

java.lang.Object
org.flowable.variable.service.impl.types.TraceableVariablesCommandContextCloseListener
All Implemented Interfaces:
CommandContextCloseListener

public class TraceableVariablesCommandContextCloseListener extends Object implements CommandContextCloseListener
A CommandContextCloseListener that holds one TraceableObject instance that is added by MutableVariableType(s). On the closing(CommandContext) of the CommandContext, the TraceableObject will be verified if it is dirty. If so, it will update the right entities such that changes will be flushed. It's important that this happens in the closing(CommandContext), as this happens before the CommandContext.close() is called and when all the sessions are flushed (including the DbSqlSession in the relational DB case (the data needs to be ready then).
Author:
Joram Barrez, Filip Hrisafov