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 TypeMethodDescriptionvoidDisassociates the current process instance with a context / scopevoidallows to flush the cached variables.org.camunda.bpm.engine.variable.VariableMaporg.camunda.bpm.engine.variable.VariableMaporg.camunda.bpm.engine.runtime.Executionget the current executionorg.camunda.bpm.engine.task.TaskgetTask()get the current taskorg.camunda.bpm.engine.variable.value.TypedValuegetVariable(String variableName) get a process variableorg.camunda.bpm.engine.variable.value.TypedValuegetVariableLocal(String variableName) get a local process variablevoidsetExecution(org.camunda.bpm.engine.runtime.Execution execution) associate with the provided executionvoidsetTask(org.camunda.bpm.engine.task.Task task) set a current taskvoidsetVariable(String variableName, Object value) set a process variablevoidsetVariableLocal(String variableName, Object value) set a local process variable
-
Method Details
-
disAssociate
void disAssociate()Disassociates the current process instance with a context / scope- Throws:
org.camunda.bpm.engine.ProcessEngineException- if no process instance is currently associated
-
getExecutionId
String getExecutionId()- Returns:
- the id of the execution currently associated or null
-
getExecution
org.camunda.bpm.engine.runtime.Execution getExecution()get the current execution -
setExecution
void setExecution(org.camunda.bpm.engine.runtime.Execution execution) associate with the provided execution -
setTask
void setTask(org.camunda.bpm.engine.task.Task task) set a current task -
getTask
org.camunda.bpm.engine.task.Task getTask()get the current task -
setVariable
set a process variable -
getVariable
get a process variable -
getCachedVariables
org.camunda.bpm.engine.variable.VariableMap getCachedVariables()- Returns:
- a
VariableMapof process variables cached between flushes
-
setVariableLocal
set a local process variable -
getVariableLocal
get a local process variable -
getCachedLocalVariables
org.camunda.bpm.engine.variable.VariableMap getCachedLocalVariables()- Returns:
- a
VariableMapof local process variables cached between flushes
-
flushVariableCache
void flushVariableCache()allows to flush the cached variables.
-