public class CommandContext extends Object
Modifier and Type | Field and Description |
---|---|
protected List<CommandContextListener> |
commandContextListeners |
protected FailedJobCommandFactory |
failedJobCommandFactory |
protected LinkedList<AtomicOperation> |
nextOperations |
protected ProcessEngineConfigurationImpl |
processEngineConfiguration |
protected Map<Class<?>,SessionFactory> |
sessionFactories |
protected Map<Class<?>,Session> |
sessions |
protected TransactionContext |
transactionContext |
Constructor and Description |
---|
CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration) |
CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration,
TransactionContextFactory transactionContextFactory) |
protected TransactionContext transactionContext
protected Map<Class<?>,SessionFactory> sessionFactories
protected LinkedList<AtomicOperation> nextOperations
protected ProcessEngineConfigurationImpl processEngineConfiguration
protected FailedJobCommandFactory failedJobCommandFactory
protected List<CommandContextListener> commandContextListeners
public CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration)
public CommandContext(ProcessEngineConfigurationImpl processEngineConfiguration, TransactionContextFactory transactionContextFactory)
public void performOperation(AtomicOperation executionOperation, InterpretableExecution execution)
protected ProcessApplicationReference getTargetProcessApplication(InterpretableExecution execution)
protected boolean requiresContextSwitch(AtomicOperation executionOperation, ProcessApplicationReference processApplicationReference)
public void close(CommandInvocationContext commandInvocationContext)
protected boolean shouldLogInfo(Throwable exception)
protected boolean shouldLogFine(Throwable exception)
protected void fireCommandContextClose()
protected void fireCommandFailed(Throwable t)
protected void flushSessions()
protected void closeSessions(CommandInvocationContext commandInvocationContext)
public <T> T getSession(Class<T> sessionClass)
public DbSqlSession getDbSqlSession()
public DeploymentManager getDeploymentManager()
public ResourceManager getResourceManager()
public ByteArrayManager getByteArrayManager()
public ProcessDefinitionManager getProcessDefinitionManager()
public ExecutionManager getExecutionManager()
public TaskManager getTaskManager()
public IdentityLinkManager getIdentityLinkManager()
public VariableInstanceManager getVariableInstanceManager()
public HistoricProcessInstanceManager getHistoricProcessInstanceManager()
public HistoricDetailManager getHistoricDetailManager()
public UserOperationLogManager getOperationLogManager()
public HistoricVariableInstanceManager getHistoricVariableInstanceManager()
public HistoricActivityInstanceManager getHistoricActivityInstanceManager()
public HistoricTaskInstanceManager getHistoricTaskInstanceManager()
public HistoricIncidentManager getHistoricIncidentManager()
public JobManager getJobManager()
public JobDefinitionManager getJobDefinitionManager()
public IncidentManager getIncidentManager()
public IdentityInfoManager getIdentityInfoManager()
public AttachmentManager getAttachmentManager()
public TableDataManager getTableDataManager()
public CommentManager getCommentManager()
public EventSubscriptionManager getEventSubscriptionManager()
public Map<Class<?>,SessionFactory> getSessionFactories()
public PropertyManager getPropertyManager()
public StatisticsManager getStatisticsManager()
public HistoricStatisticsManager getHistoricStatisticsManager()
public AuthorizationManager getAuthorizationManager()
public ReadOnlyIdentityProvider getReadOnlyIdentityProvider()
public WritableIdentityProvider getWritableIdentityProvider()
public void registerCommandContextListener(CommandContextListener commandContextListener)
public TransactionContext getTransactionContext()
public FailedJobCommandFactory getFailedJobCommandFactory()
public Authentication getAuthentication()
public void runWithoutAuthentication(Runnable runnable)
public String getAuthenticatedUserId()
Copyright © 2015. All rights reserved.