Class CommandContext
java.lang.Object
org.activiti.engine.impl.interceptor.CommandContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ActivitiEngineAgendaprotected List<CommandContextCloseListener> protected Command<?> protected Throwableprotected FailedJobCommandFactoryprotected Map<String, ExecutionEntity> protected ProcessEngineConfigurationImplprotected LinkedList<Object> protected booleanprotected Map<Class<?>, SessionFactory> -
Constructor Summary
ConstructorsConstructorDescriptionCommandContext(Command<?> command, ProcessEngineConfigurationImpl processEngineConfiguration) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(String key, Object value) voidaddCloseListener(CommandContextCloseListener commandContextCloseListener) voidaddInvolvedExecution(ExecutionEntity executionEntity) voidclose()protected voidvoidStores the provided exception on thisCommandContextinstance.protected voidprotected voidprotected voidprotected voidprotected voidgetAttribute(String key) Command<?> <T> T<T> TgetSession(Class<T> sessionClass) Map<Class<?>, SessionFactory> booleanhasCloseListener(Class<?> type) booleanbooleanisReused()protected voidprotected voidvoidvoidsetReused(boolean reused)
-
Field Details
-
command
-
sessionFactories
-
sessions
-
exception
-
processEngineConfiguration
-
failedJobCommandFactory
-
closeListeners
-
attributes
-
reused
protected boolean reused -
agenda
-
involvedExecutions
-
resultStack
-
-
Constructor Details
-
CommandContext
public CommandContext(Command<?> command, ProcessEngineConfigurationImpl processEngineConfiguration)
-
-
Method Details
-
close
public void close() -
logException
protected void logException() -
rethrowExceptionIfNeeded
- Throws:
Error
-
addCloseListener
-
getCloseListeners
-
hasCloseListener
-
executeCloseListenersClosing
protected void executeCloseListenersClosing() -
executeCloseListenersAfterSessionFlushed
protected void executeCloseListenersAfterSessionFlushed() -
executeCloseListenersClosed
protected void executeCloseListenersClosed() -
executeCloseListenersCloseFailure
protected void executeCloseListenersCloseFailure() -
flushSessions
protected void flushSessions() -
closeSessions
protected void closeSessions() -
exception
Stores the provided exception on thisCommandContextinstance. That exception will be rethrown at the end of closing theCommandContextinstance.If there is already an exception being stored, a 'masked exception' message will be logged.
-
addAttribute
-
getAttribute
-
getGenericAttribute
-
getSession
-
getSessionFactories
-
getDbSqlSession
-
getEntityCache
-
getDeploymentEntityManager
-
getResourceEntityManager
-
getByteArrayEntityManager
-
getProcessDefinitionEntityManager
-
getModelEntityManager
-
getProcessDefinitionInfoEntityManager
-
getExecutionEntityManager
-
getTaskEntityManager
-
getIdentityLinkEntityManager
-
getVariableInstanceEntityManager
-
getHistoricProcessInstanceEntityManager
-
getHistoricDetailEntityManager
-
getHistoricVariableInstanceEntityManager
-
getHistoricActivityInstanceEntityManager
-
getHistoricTaskInstanceEntityManager
-
getHistoricIdentityLinkEntityManager
-
getEventLogEntryEntityManager
-
getJobEntityManager
-
getTimerJobEntityManager
-
getSuspendedJobEntityManager
-
getDeadLetterJobEntityManager
-
getAttachmentEntityManager
-
getTableDataManager
-
getCommentEntityManager
-
getPropertyEntityManager
-
getEventSubscriptionEntityManager
-
getHistoryManager
-
getJobManager
-
addInvolvedExecution
-
hasInvolvedExecutions
public boolean hasInvolvedExecutions() -
getInvolvedExecutions
-
getCommand
-
getSessions
-
getException
-
getFailedJobCommandFactory
-
getProcessEngineConfiguration
-
getEventDispatcher
-
getAgenda
-
getResult
-
setResult
-
isReused
public boolean isReused() -
setReused
public void setReused(boolean reused)
-