@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
- NullPointerException
- if any of the arguments is nullpublic ExecutionTrace handleCommUnit(CommunicationUnit communicationUnit) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
ProcessAgent
handleCommUnit
in interface ProcessAgent
ModelInstanceNotFoundException
InvalidModelInstanceStateException
ErrorException
public ExecutionTrace handleCommUnitInNewTransaction(CommunicationUnit communicationUnit) throws ModelInstanceNotFoundException, InvalidModelInstanceStateException, ErrorException
ProcessAgent
handleCommUnitInNewTransaction
in interface ProcessAgent
ModelInstanceNotFoundException
InvalidModelInstanceStateException
ErrorException
public ExecutionTrace handleCommUnitWithDeadlockRetry(CommunicationUnit communicationUnit) throws Exception
ProcessAgent
handleCommUnitWithDeadlockRetry
in interface ProcessAgent
ModelInstanceNotFoundException
InvalidModelInstanceStateException
Exception
public ExecutionTrace handleCommUnitWithErrorHandling(CommunicationUnit communicationUnit)
ProcessAgent
handleCommUnitWithErrorHandling
in interface ProcessAgent
public void ejbTimeout(javax.ejb.Timer timer)
ejbTimeout
in interface javax.ejb.TimedObject
public void initTimers()
ProcessAgent
com.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 ProcessAgent
public void terminateOnModelChange(ModelInstance modelInstance)
terminateOnModelChange
in interface ProcessAgent
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.