public class Context extends Object
Modifier and Type | Field and Description |
---|---|
protected static ThreadLocal<Deque<CommandContext>> |
commandContextThreadLocal |
protected static ThreadLocal<Deque<CommandInvocationContext>> |
commandInvocationContextThreadLocal |
protected static ThreadLocal<Deque<CoreExecutionContext<? extends CoreExecution>>> |
executionContextStackThreadLocal |
protected static ThreadLocal<JobExecutorContext> |
jobExecutorContextThreadLocal |
protected static ThreadLocal<Deque<ProcessApplicationReference>> |
processApplicationContext |
protected static ThreadLocal<Deque<ProcessEngineConfigurationImpl>> |
processEngineConfigurationStackThreadLocal |
Constructor and Description |
---|
Context() |
protected static ThreadLocal<Deque<CommandContext>> commandContextThreadLocal
protected static ThreadLocal<Deque<CommandInvocationContext>> commandInvocationContextThreadLocal
protected static ThreadLocal<Deque<ProcessEngineConfigurationImpl>> processEngineConfigurationStackThreadLocal
protected static ThreadLocal<Deque<CoreExecutionContext<? extends CoreExecution>>> executionContextStackThreadLocal
protected static ThreadLocal<JobExecutorContext> jobExecutorContextThreadLocal
protected static ThreadLocal<Deque<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()
@Deprecated public static ExecutionContext getExecutionContext()
getBpmnExecutionContext()
public static BpmnExecutionContext getBpmnExecutionContext()
public static CaseExecutionContext getCaseExecutionContext()
public static CoreExecutionContext<? extends CoreExecution> getCoreExecutionContext()
public static void setExecutionContext(ExecutionEntity execution)
public static void setExecutionContext(CaseExecutionEntity execution)
public static void removeExecutionContext()
protected static <T> Deque<T> getStack(ThreadLocal<Deque<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)
executeWithinProcessApplication(Callable, ProcessApplicationReference, InvocationContext)
instead if an InvocationContext
is available.public static <T> T executeWithinProcessApplication(Callable<T> callback, ProcessApplicationReference processApplicationReference, InvocationContext invocationContext)
Copyright © 2021. All rights reserved.