|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.cdi.impl.context.DefaultContextAssociationManager
public class DefaultContextAssociationManager
Default implementation of the business process association manager. Uses a fallback-strategy to associate the process instance with the "broadest" active scope, starting with the conversation.
Subclass in order to implement custom association schemes and association with custom scopes.
| Nested Class Summary | |
|---|---|
protected static class |
DefaultContextAssociationManager.ConversationScopedAssociation
|
protected static class |
DefaultContextAssociationManager.RequestScopedAssociation
|
protected static class |
DefaultContextAssociationManager.ScopedAssociation
|
| Constructor Summary | |
|---|---|
DefaultContextAssociationManager()
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultContextAssociationManager()
| Method Detail |
|---|
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 ContextAssociationManagerpublic void disAssociate()
ContextAssociationManager
disAssociate in interface ContextAssociationManagerpublic String getExecutionId()
getExecutionId in interface ContextAssociationManagerpublic Execution getExecution()
ContextAssociationManager
getExecution in interface ContextAssociationManagerpublic Object getVariable(String variableName)
ContextAssociationManager
getVariable in interface ContextAssociationManager
public void setVariable(String variableName,
Object value)
ContextAssociationManager
setVariable in interface ContextAssociationManagerpublic Object getVariableLocal(String variableName)
ContextAssociationManager
getVariableLocal in interface ContextAssociationManager
public void setVariableLocal(String variableName,
Object value)
ContextAssociationManager
setVariableLocal in interface ContextAssociationManagerprotected ExecutionEntity getExecutionFromContext()
public Task getTask()
ContextAssociationManager
getTask in interface ContextAssociationManagerpublic void setTask(Task task)
ContextAssociationManager
setTask in interface ContextAssociationManagerpublic Map<String,Object> getCachedVariables()
getCachedVariables in interface ContextAssociationManagerpublic Map<String,Object> getCachedVariablesLocal()
getCachedVariablesLocal in interface ContextAssociationManagerpublic void flushVariableCache()
ContextAssociationManager
flushVariableCache in interface ContextAssociationManagerprotected void ensureCommandContextNotActive()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||