org.camunda.bpm.engine.cdi.impl.context
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
 void disAssociate()
          Disassociates the current process instance with a context / scope
 void flushVariableCache()
          allows to flush the cached variables.
 Map<String,Object> getCachedVariables()
           
 Map<String,Object> getCachedVariablesLocal()
           
 Execution getExecution()
          get the current execution
 String getExecutionId()
           
 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
 

Method Detail

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

void setExecution(Execution execution)
associate with the provided execution


setTask

void setTask(Task task)
set a current task


getTask

Task getTask()
get the current task


setVariable

void setVariable(String variableName,
                 Object value)
set a process variable


getVariable

Object getVariable(String variableName)
get a process variable


getCachedVariables

Map<String,Object> getCachedVariables()
Returns:
a map of process variables cached between flushes

setVariableLocal

void setVariableLocal(String variableName,
                      Object value)
set a local process variable


getVariableLocal

Object getVariableLocal(String variableName)
get a local process variable


getCachedVariablesLocal

Map<String,Object> getCachedVariablesLocal()
Returns:
a map of local process variables cached between flushes

flushVariableCache

void flushVariableCache()
allows to flush the cached variables.



Copyright © 2014 camunda services GmbH. All Rights Reserved.