psdi.app.escalation.engine

Class EscalationTask

  • java.lang.Object
    • psdi.app.escalation.engine.EscalationTask


  • public class EscalationTask
    extends java.lang.Object
    A class to represent an escalation task that's performed to identify records that need to be escalated based on some escalation criteria. An instance of this task is associated with each type of escalation and performs the work independently. This task is typically invoked through a crontask instance.
    • Constructor Summary

      Constructors 
      Constructor and Description
      EscalationTask() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      MXLogger getLogger()
      Returns the logger to be used to log messages.
      UserInfo getUserInfo()
      Returns the user information to be used to retrieve the business objects.
      protected boolean isCalendarBased(ReferencePointData refPointData)
      Check is the escalation point has a calendar on it
      void performTask(java.lang.String taskName, java.lang.String instanceName)
      Performs the escalation task using the escalation definition and the associated reference points.
      void setLogger(MXLogger logger)
      Set the logger to be used to log messages.
      void setUserInfo(UserInfo userInfo)
      Sets the the user information to be used to retrieve the business objects.
      protected void storeNonRepeatableEscalationObject(MboRemote referencePoint, MboRemote escObject)
      Writes out a record in the ESCREPEATTRACK table to indicate that the business object does not need to be escalated again when processing the reference point.
      protected void storeNonRepeatableEscalationObject(ReferencePointData refPointData, boolean executedActions, boolean executedNotifications, MboRemote referencePoint, MboRemote escObject)
      Write the escrepeattrack record.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EscalationTask

        public EscalationTask()
    • Method Detail

      • performTask

        public void performTask(java.lang.String taskName,
                                java.lang.String instanceName)
        Performs the escalation task using the escalation definition and the associated reference points.
        Parameters:
        taskName - task name used to identify the escalation.
        instanceName - instance name used to identify the escalation.
      • storeNonRepeatableEscalationObject

        protected void storeNonRepeatableEscalationObject(ReferencePointData refPointData,
                                                          boolean executedActions,
                                                          boolean executedNotifications,
                                                          MboRemote referencePoint,
                                                          MboRemote escObject)
        Write the escrepeattrack record.
        Parameters:
        refPointData - The refpointdata.
        executedActions - Flag to indicate whether actions have been executed.
        executedNotifications - Flag to indicate whether notifications have been sent.
        referencePoint - The reference point.
        escObject - The main object being escalated.
      • storeNonRepeatableEscalationObject

        protected void storeNonRepeatableEscalationObject(MboRemote referencePoint,
                                                          MboRemote escObject)
        Writes out a record in the ESCREPEATTRACK table to indicate that the business object does not need to be escalated again when processing the reference point.
        Parameters:
        referencePoint - reference point
        escObject - business object
      • isCalendarBased

        protected boolean isCalendarBased(ReferencePointData refPointData)
        Check is the escalation point has a calendar on it
        Parameters:
        refPointData -
        Returns:
      • getLogger

        public MXLogger getLogger()
        Returns the logger to be used to log messages.
        Returns:
        the logger to be used to log messages.
      • setLogger

        public void setLogger(MXLogger logger)
        Set the logger to be used to log messages.
        Parameters:
        logger - the logger to be used to log messages.
      • getUserInfo

        public UserInfo getUserInfo()
        Returns the user information to be used to retrieve the business objects.
        Returns:
        the user information to be used to retrieve the business objects.
      • setUserInfo

        public void setUserInfo(UserInfo userInfo)
        Sets the the user information to be used to retrieve the business objects. This must be associated with an administrative user.
        Parameters:
        userInfo - the user information to be used to retrieve the business objects.