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