public class TraceableVariablesCommandContextCloseListener extends Object implements CommandContextCloseListener
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).| Modifier and Type | Field and Description |
|---|---|
protected TraceableObject<?,?> |
traceableObject |
| Constructor and Description |
|---|
TraceableVariablesCommandContextCloseListener(TraceableObject<?,?> traceableObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSessionsFlush(CommandContext commandContext) |
void |
closed(CommandContext commandContext) |
void |
closeFailure(CommandContext commandContext) |
void |
closing(CommandContext commandContext) |
boolean |
multipleAllowed() |
Integer |
order() |
protected TraceableObject<?,?> traceableObject
public TraceableVariablesCommandContextCloseListener(TraceableObject<?,?> traceableObject)
public void closing(CommandContext commandContext)
closing in interface CommandContextCloseListenerpublic void closed(CommandContext commandContext)
closed in interface CommandContextCloseListenerpublic void afterSessionsFlush(CommandContext commandContext)
afterSessionsFlush in interface CommandContextCloseListenerpublic void closeFailure(CommandContext commandContext)
closeFailure in interface CommandContextCloseListenerpublic Integer order()
order in interface CommandContextCloseListenerpublic boolean multipleAllowed()
multipleAllowed in interface CommandContextCloseListenerCopyright © 2021 Flowable. All rights reserved.