Class Context
java.lang.Object
org.camunda.bpm.engine.impl.context.Context
- Author:
- Tom Baeyens, Daniel Meyer, Thorben Lindhauer
-
Field Summary
Modifier and TypeFieldDescriptionprotected static ThreadLocal<Deque<CommandContext>>
protected static ThreadLocal<Deque<CommandInvocationContext>>
protected static ThreadLocal<Deque<CoreExecutionContext<? extends CoreExecution>>>
protected static ThreadLocal<JobExecutorContext>
protected static ThreadLocal<Deque<ProcessApplicationReference>>
protected static ThreadLocal<Deque<ProcessEngineConfigurationImpl>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
executeWithinProcessApplication
(Callable<T> callback, ProcessApplicationReference processApplicationReference) UseexecuteWithinProcessApplication(Callable, ProcessApplicationReference, InvocationContext)
instead if anInvocationContext
is available.static <T> T
executeWithinProcessApplication
(Callable<T> callback, ProcessApplicationReference processApplicationReference, InvocationContext invocationContext) static BpmnExecutionContext
static CaseExecutionContext
static CommandContext
static CommandInvocationContext
static CoreExecutionContext<? extends CoreExecution>
static ProcessApplicationReference
static ExecutionContext
Deprecated.static JobExecutorContext
protected static <T> Deque<T>
getStack
(ThreadLocal<Deque<T>> threadLocal) static void
static void
static void
static void
static void
static void
static void
setCommandContext
(CommandContext commandContext) static void
setCommandInvocationContext
(CommandInvocationContext commandInvocationContext) static void
static void
setExecutionContext
(CaseExecutionEntity execution) static void
setExecutionContext
(ExecutionEntity execution) static void
setJobExecutorContext
(JobExecutorContext jobExecutorContext) static void
setProcessEngineConfiguration
(ProcessEngineConfigurationImpl processEngineConfiguration)
-
Field Details
-
commandContextThreadLocal
-
commandInvocationContextThreadLocal
-
processEngineConfigurationStackThreadLocal
protected static ThreadLocal<Deque<ProcessEngineConfigurationImpl>> processEngineConfigurationStackThreadLocal -
executionContextStackThreadLocal
protected static ThreadLocal<Deque<CoreExecutionContext<? extends CoreExecution>>> executionContextStackThreadLocal -
jobExecutorContextThreadLocal
-
processApplicationContext
-
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
getCommandContext
-
setCommandContext
-
removeCommandContext
public static void removeCommandContext() -
getCommandInvocationContext
-
setCommandInvocationContext
-
removeCommandInvocationContext
public static void removeCommandInvocationContext() -
getProcessEngineConfiguration
-
setProcessEngineConfiguration
public static void setProcessEngineConfiguration(ProcessEngineConfigurationImpl processEngineConfiguration) -
removeProcessEngineConfiguration
public static void removeProcessEngineConfiguration() -
getExecutionContext
Deprecated.since 7.2, usegetBpmnExecutionContext()
-
getBpmnExecutionContext
-
getCaseExecutionContext
-
getCoreExecutionContext
-
setExecutionContext
-
setExecutionContext
-
removeExecutionContext
public static void removeExecutionContext() -
getStack
-
getJobExecutorContext
-
setJobExecutorContext
-
removeJobExecutorContext
public static void removeJobExecutorContext() -
getCurrentProcessApplication
-
setCurrentProcessApplication
-
removeCurrentProcessApplication
public static void removeCurrentProcessApplication() -
executeWithinProcessApplication
public static <T> T executeWithinProcessApplication(Callable<T> callback, ProcessApplicationReference processApplicationReference) UseexecuteWithinProcessApplication(Callable, ProcessApplicationReference, InvocationContext)
instead if anInvocationContext
is available. -
executeWithinProcessApplication
public static <T> T executeWithinProcessApplication(Callable<T> callback, ProcessApplicationReference processApplicationReference, InvocationContext invocationContext)
-
getBpmnExecutionContext()