public class Context extends Object
Modifier and Type | Field and Description |
---|---|
protected static ThreadLocal<Stack<CommandContext>> |
commandContextThreadLocal |
protected static ThreadLocal<Stack<CommandInvocationContext>> |
commandInvocationContextThreadLocal |
protected static ThreadLocal<Stack<ExecutionContext>> |
executionContextStackThreadLocal |
protected static ThreadLocal<JobExecutorContext> |
jobExecutorContextThreadLocal |
protected static ThreadLocal<Stack<ProcessApplicationReference>> |
processApplicationContext |
protected static ThreadLocal<Stack<ProcessEngineConfigurationImpl>> |
processEngineConfigurationStackThreadLocal |
Constructor and Description |
---|
Context() |
protected static ThreadLocal<Stack<CommandContext>> commandContextThreadLocal
protected static ThreadLocal<Stack<CommandInvocationContext>> commandInvocationContextThreadLocal
protected static ThreadLocal<Stack<ProcessEngineConfigurationImpl>> processEngineConfigurationStackThreadLocal
protected static ThreadLocal<Stack<ExecutionContext>> executionContextStackThreadLocal
protected static ThreadLocal<JobExecutorContext> jobExecutorContextThreadLocal
protected static ThreadLocal<Stack<ProcessApplicationReference>> processApplicationContext
public static CommandContext getCommandContext()
public static void setCommandContext(CommandContext commandContext)
public static void removeCommandContext()
public static CommandInvocationContext getCommandInvocationContext()
public static void setCommandInvocationContext(CommandInvocationContext commandInvocationContext)
public static void removeCommandInvocationContext()
public static ProcessEngineConfigurationImpl getProcessEngineConfiguration()
public static void setProcessEngineConfiguration(ProcessEngineConfigurationImpl processEngineConfiguration)
public static void removeProcessEngineConfiguration()
public static ExecutionContext getExecutionContext()
public static void setExecutionContext(InterpretableExecution execution)
public static void removeExecutionContext()
protected static <T> Stack<T> getStack(ThreadLocal<Stack<T>> threadLocal)
public static JobExecutorContext getJobExecutorContext()
public static void setJobExecutorContext(JobExecutorContext jobExecutorContext)
public static void removeJobExecutorContext()
public static ProcessApplicationReference getCurrentProcessApplication()
public static void setCurrentProcessApplication(ProcessApplicationReference reference)
public static void removeCurrentProcessApplication()
public static <T> T executeWithinProcessApplication(Callable<T> callback, ProcessApplicationReference processApplicationReference)
callback
- processApplicationReference
- Copyright © 2015. All rights reserved.