public class DefaultContextAssociationManager extends Object implements ContextAssociationManager, Serializable
Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultContextAssociationManager.ConversationScopedAssociation |
protected static class |
DefaultContextAssociationManager.RequestScopedAssociation |
protected static class |
DefaultContextAssociationManager.ScopedAssociation |
Constructor and Description |
---|
DefaultContextAssociationManager() |
Modifier and Type | Method and Description |
---|---|
void |
disAssociate()
Disassociates the current process instance with a context / scope
|
protected void |
ensureCommandContextNotActive() |
void |
flushVariableCache()
allows to flush the cached variables.
|
protected List<Class<? extends DefaultContextAssociationManager.ScopedAssociation>> |
getAvailableScopedAssociationClasses()
Override to add different / additional contexts.
|
protected Class<? extends DefaultContextAssociationManager.ScopedAssociation> |
getBroadestActiveContext() |
Map<String,Object> |
getCachedVariables() |
Map<String,Object> |
getCachedVariablesLocal() |
Execution |
getExecution()
get the current execution
|
protected ExecutionEntity |
getExecutionFromContext() |
String |
getExecutionId() |
protected DefaultContextAssociationManager.ScopedAssociation |
getScopedAssociation() |
Task |
getTask()
get the current task
|
Object |
getVariable(String variableName)
get a process variable
|
Object |
getVariableLocal(String variableName)
get a local process variable
|
void |
setExecution(Execution execution)
associate with the provided execution
|
void |
setTask(Task task)
set a current task
|
void |
setVariable(String variableName,
Object value)
set a process variable
|
void |
setVariableLocal(String variableName,
Object value)
set a local process variable
|
protected Class<? extends DefaultContextAssociationManager.ScopedAssociation> getBroadestActiveContext()
protected List<Class<? extends DefaultContextAssociationManager.ScopedAssociation>> getAvailableScopedAssociationClasses()
protected DefaultContextAssociationManager.ScopedAssociation getScopedAssociation()
public void setExecution(Execution execution)
ContextAssociationManager
setExecution
in interface ContextAssociationManager
public void disAssociate()
ContextAssociationManager
disAssociate
in interface ContextAssociationManager
public String getExecutionId()
getExecutionId
in interface ContextAssociationManager
public Execution getExecution()
ContextAssociationManager
getExecution
in interface ContextAssociationManager
public Object getVariable(String variableName)
ContextAssociationManager
getVariable
in interface ContextAssociationManager
public void setVariable(String variableName, Object value)
ContextAssociationManager
setVariable
in interface ContextAssociationManager
public Object getVariableLocal(String variableName)
ContextAssociationManager
getVariableLocal
in interface ContextAssociationManager
public void setVariableLocal(String variableName, Object value)
ContextAssociationManager
setVariableLocal
in interface ContextAssociationManager
protected ExecutionEntity getExecutionFromContext()
public Task getTask()
ContextAssociationManager
getTask
in interface ContextAssociationManager
public void setTask(Task task)
ContextAssociationManager
setTask
in interface ContextAssociationManager
public Map<String,Object> getCachedVariables()
getCachedVariables
in interface ContextAssociationManager
public Map<String,Object> getCachedVariablesLocal()
getCachedVariablesLocal
in interface ContextAssociationManager
public void flushVariableCache()
ContextAssociationManager
flushVariableCache
in interface ContextAssociationManager
protected void ensureCommandContextNotActive()
Copyright © 2015. All rights reserved.