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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTraceableVariablesCommandContextCloseListener(TraceableObject<?, ?> traceableObject) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterSessionsFlush(CommandContext commandContext) voidclosed(CommandContext commandContext) voidcloseFailure(CommandContext commandContext) voidclosing(CommandContext commandContext) booleanorder()
-
Field Details
-
traceableObject
-
-
Constructor Details
-
TraceableVariablesCommandContextCloseListener
-
-
Method Details
-
closing
- Specified by:
closingin interfaceCommandContextCloseListener
-
closed
- Specified by:
closedin interfaceCommandContextCloseListener
-
afterSessionsFlush
- Specified by:
afterSessionsFlushin interfaceCommandContextCloseListener
-
closeFailure
- Specified by:
closeFailurein interfaceCommandContextCloseListener
-
order
- Specified by:
orderin interfaceCommandContextCloseListener
-
multipleAllowed
public boolean multipleAllowed()- Specified by:
multipleAllowedin interfaceCommandContextCloseListener
-