@RunAs(value="processAgent") @PermitAll @DeclareRoles(value="processAgent") public class ProcessAgentImpl extends com.whitestein.lsps.common.SecureAndLoggingService implements ProcessAgent, javax.ejb.TimedObject
ProcessModel.MESSAGE_SELECTOR_PROPERTY| Constructor and Description |
|---|
ProcessAgentImpl()
Creates new instance.
|
ProcessAgentImpl(ModelInstanceDao modelInstanceDao,
ModelProviderService modelProviderService,
CommunicationService communicationService,
ProcessLogDao processLogDao,
UnprocessedInputsService unprocessedInputsService,
javax.ejb.SessionContext sessionContext,
javax.ejb.TimerService timerService)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ejbTimeout(javax.ejb.Timer timer) |
ExecutionTrace |
handleCommUnit(CommunicationUnit communicationUnit)
Handles a communication unit.
|
ExecutionTrace |
handleCommUnitInNewTransaction(CommunicationUnit communicationUnit)
Handles a communication unit in a new transaction.
|
ExecutionTrace |
handleCommUnitWithDeadlockRetry(CommunicationUnit communicationUnit)
Handles a communication unit in a new transaction with retrying in case of deadlock
|
ExecutionTrace |
handleCommUnitWithErrorHandling(CommunicationUnit communicationUnit)
Handles a communication unit with error-handling.
|
void |
initTimers()
This method is called from the
com.whitestein.lsps.tools.InitServiceImpl
at the application startup. |
void |
terminateOnModelChange(ModelInstance modelInstance) |
public ProcessAgentImpl()
public ProcessAgentImpl(ModelInstanceDao modelInstanceDao, ModelProviderService modelProviderService, CommunicationService communicationService, ProcessLogDao processLogDao, UnprocessedInputsService unprocessedInputsService, javax.ejb.SessionContext sessionContext, javax.ejb.TimerService timerService)
modelInstanceDao - modelProviderService - communicationService - processLogDao - unprocessedInputsService - sessionContext - timerService - java.lang.NullPointerException - if any of the arguments is nullpublic ExecutionTrace handleCommUnit(CommunicationUnit communicationUnit) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
ProcessAgenthandleCommUnit in interface ProcessAgentModelInstanceNotFoundExceptionInvalidModelInstanceStateExceptionErrorExceptionpublic ExecutionTrace handleCommUnitInNewTransaction(CommunicationUnit communicationUnit) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
ProcessAgenthandleCommUnitInNewTransaction in interface ProcessAgentModelInstanceNotFoundExceptionInvalidModelInstanceStateExceptionErrorExceptionpublic ExecutionTrace handleCommUnitWithDeadlockRetry(CommunicationUnit communicationUnit) throws java.lang.Exception
ProcessAgenthandleCommUnitWithDeadlockRetry in interface ProcessAgentModelInstanceNotFoundExceptionInvalidModelInstanceStateExceptionjava.lang.Exceptionpublic ExecutionTrace handleCommUnitWithErrorHandling(CommunicationUnit communicationUnit)
ProcessAgenthandleCommUnitWithErrorHandling in interface ProcessAgentpublic void ejbTimeout(javax.ejb.Timer timer)
ejbTimeout in interface javax.ejb.TimedObjectpublic void initTimers()
ProcessAgentcom.whitestein.lsps.tools.InitServiceImpl
at the application startup. Loads all timer notification entries from database and register them
again with system timer service.initTimers in interface ProcessAgentpublic void terminateOnModelChange(ModelInstance modelInstance)
terminateOnModelChange in interface ProcessAgentCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.