Class DATManageNotificationSapIntegration
java.lang.Object
overit.geocall.da.DATask
overit.geocallapp.wfm.notifications.notification.dat.DATManageNotificationSapIntegration
- All Implemented Interfaces:
Serializable,Runnable,Identified,Tool
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DAXWFMAAvvisiprotected Stringprotected Notificationprotected Longprotected Stringstatic final LongFields inherited from class overit.geocall.da.DATask
_usedConnections, _usedCouriers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody()Abstract method, that must be implemented, that represent the start point of the task.voidprotected voidinit()protected voidmanageSapCreation(Notification notification, Long notificationId, Long integrationMode, PooledConnection pc) protected voidmanageSapIntegration(Notification notification, Long notificationId, PooledConnection pc) protected voidmanageSapModification(Notification notification, Long notificationId, Long integrationMode, PooledConnection pc) voidsetNotification(Notification notification) voidsetNotificationId(Long notificationId) protected voidupdateSapCode(Long notificationId, String sapCode, PooledConnection pc) protected voidupdateStatusInvioSap(Notification notification, Long notificationId, boolean success, String error, PooledConnection pc) Methods inherited from class overit.geocall.da.DATask
commit, deliverCourier, getConnection, getDA, getIdentity, getServiceConnection, holdFactoryCourier, holdUserCourier, releaseConnection, rollback, run, setIdentity, start, startInBackground, synchronizeOn
-
Field Details
-
MAX_ATTEMPTS
-
_daAAvvisi
-
_notification
-
_notificationId
-
_statusInvioSap
-
_esitoInvioSap
-
-
Constructor Details
-
DATManageNotificationSapIntegration
public DATManageNotificationSapIntegration()
-
-
Method Details
-
body
Description copied from class:DATaskAbstract method, that must be implemented, that represent the start point of the task. The method contains the application logic of the specific task.- Specified by:
bodyin classDATask- Throws:
DAException- If there is a (blocking) data-access error, a DAException is thrown to the callerDAValidateException- If there are error in the data validation phase, a DAValidateException is thrown
-
execute
- Throws:
DAExceptionDAValidateException
-
init
protected void init() -
manageSapIntegration
protected void manageSapIntegration(Notification notification, Long notificationId, PooledConnection pc) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
manageSapCreation
protected void manageSapCreation(Notification notification, Long notificationId, Long integrationMode, PooledConnection pc) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
manageSapModification
protected void manageSapModification(Notification notification, Long notificationId, Long integrationMode, PooledConnection pc) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateStatusInvioSap
protected void updateStatusInvioSap(Notification notification, Long notificationId, boolean success, String error, PooledConnection pc) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
updateSapCode
protected void updateSapCode(Long notificationId, String sapCode, PooledConnection pc) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
setNotification
-
setNotificationId
-
getStatusInvioSap
-
getEsitoInvioSap
-