Interface ContextAssociationManager
- All Known Implementing Classes:
DefaultContextAssociationManager
public interface ContextAssociationManager
Represents a means for associating an execution with a context.
This enables activiti-cdi to provide contextual business process management
services, without relying on a specific context like i.e. the conversation
context.
- Author:
- Daniel Meyer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Disassociates the current process instance with a context / scopevoid
allows to flush the cached variables.get the current executiongetTask()
get the current taskgetVariable
(String variableName) get a process variablegetVariableLocal
(String variableName) get a local process variablevoid
setExecution
(Execution execution) associate with the provided executionvoid
set a current taskvoid
setVariable
(String variableName, Object value) set a process variablevoid
setVariableLocal
(String variableName, Object value) set a local process variable
-
Method Details
-
disAssociate
void disAssociate()Disassociates the current process instance with a context / scope- Throws:
ProcessEngineException
- if no process instance is currently associated
-
getExecutionId
String getExecutionId()- Returns:
- the id of the execution currently associated or null
-
getExecution
Execution getExecution()get the current execution -
setExecution
associate with the provided execution -
setTask
set a current task -
getTask
Task getTask()get the current task -
setVariable
set a process variable -
getVariable
get a process variable -
getCachedVariables
VariableMap getCachedVariables()- Returns:
- a
VariableMap
of process variables cached between flushes
-
setVariableLocal
set a local process variable -
getVariableLocal
get a local process variable -
getCachedLocalVariables
VariableMap getCachedLocalVariables()- Returns:
- a
VariableMap
of local process variables cached between flushes
-
flushVariableCache
void flushVariableCache()allows to flush the cached variables.
-