Class Context
java.lang.Object
org.camunda.bpm.engine.impl.context.Context
- Author:
- Tom Baeyens, Daniel Meyer, Thorben Lindhauer
-
Field Summary
FieldsModifier 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TexecuteWithinProcessApplication(Callable<T> callback, ProcessApplicationReference processApplicationReference) UseexecuteWithinProcessApplication(Callable, ProcessApplicationReference, InvocationContext)instead if anInvocationContextis available.static <T> TexecuteWithinProcessApplication(Callable<T> callback, ProcessApplicationReference processApplicationReference, InvocationContext invocationContext) static BpmnExecutionContextstatic CaseExecutionContextstatic CommandContextstatic CommandInvocationContextstatic CoreExecutionContext<? extends CoreExecution>static ProcessApplicationReferencestatic ExecutionContextDeprecated.static JobExecutorContextprotected static <T> Deque<T>getStack(ThreadLocal<Deque<T>> threadLocal) static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidsetCommandContext(CommandContext commandContext) static voidsetCommandInvocationContext(CommandInvocationContext commandInvocationContext) static voidstatic voidsetExecutionContext(CaseExecutionEntity execution) static voidsetExecutionContext(ExecutionEntity execution) static voidsetJobExecutorContext(JobExecutorContext jobExecutorContext) static voidsetProcessEngineConfiguration(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 anInvocationContextis available. -
executeWithinProcessApplication
public static <T> T executeWithinProcessApplication(Callable<T> callback, ProcessApplicationReference processApplicationReference, InvocationContext invocationContext)
-
getBpmnExecutionContext()