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<CoreExecutionContext<? extends CoreExecution>>> |
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<CoreExecutionContext<? extends CoreExecution>>> 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()
@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> 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)
executeWithinProcessApplication(Callable, ProcessApplicationReference, InvocationContext)
instead if an InvocationContext
is available.public static <T> T executeWithinProcessApplication(Callable<T> callback, ProcessApplicationReference processApplicationReference, InvocationContext invocationContext)
Copyright © 2018. All rights reserved.