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 Details Link icon

    • disAssociate Link icon

      void disAssociate()
      Disassociates the current process instance with a context / scope
      Throws:
      ProcessEngineException - if no process instance is currently associated
    • getExecutionId Link icon

      String getExecutionId()
      Returns:
      the id of the execution currently associated or null
    • getExecution Link icon

      Execution getExecution()
      get the current execution
    • setExecution Link icon

      void setExecution(Execution execution)
      associate with the provided execution
    • setTask Link icon

      void setTask(Task task)
      set a current task
    • getTask Link icon

      Task getTask()
      get the current task
    • setVariable Link icon

      void setVariable(String variableName, Object value)
      set a process variable
    • getVariable Link icon

      TypedValue getVariable(String variableName)
      get a process variable
    • getCachedVariables Link icon

      VariableMap getCachedVariables()
      Returns:
      a VariableMap of process variables cached between flushes
    • setVariableLocal Link icon

      void setVariableLocal(String variableName, Object value)
      set a local process variable
    • getVariableLocal Link icon

      TypedValue getVariableLocal(String variableName)
      get a local process variable
    • getCachedLocalVariables Link icon

      VariableMap getCachedLocalVariables()
      Returns:
      a VariableMap of local process variables cached between flushes
    • flushVariableCache Link icon

      void flushVariableCache()
      allows to flush the cached variables.