psdi.app.recontask.engine

Class TaskDefinition

  • java.lang.Object
    • psdi.app.recontask.engine.TaskDefinition


  • public class TaskDefinition
    extends java.lang.Object
    This class describes the definition of a reconciliation task. A reconciliation task is comprised of an optional reconciliation task filter, at least one reconciliation link rule, and optional comparison rules.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected ReconInfo reconInfo 
    • Constructor Summary

      Constructors 
      Constructor and Description
      TaskDefinition()
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected void compare(java.util.Map[][] linkedPairs) 
      void initialize(MXLogger logger, MXLogger sqlLogger, UserInfo userInfo) 
      protected java.util.Map[][] link()
      Returns linked data set items for further comparison processing.
      protected void logTaskNoLinksFoundError()
      Logs an error message to indicate that links were generated for this reconciliation task.
      void performTask(java.lang.String taskName, java.lang.String cronName, java.lang.String instanceName)
      Performs the task of reconciling data between data set1 and data set2.
      protected MboRemote retrieveReconTaskMbo(java.lang.String taskName)
      Returns a reconciliation task business object associated with the given reconciliation task name.
      protected MboSetRemote retrieveReconTaskMboSet(java.lang.String taskName, boolean readonly) 
      • Methods inherited from class java.lang.Object

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

    • Constructor Detail

      • TaskDefinition

        public TaskDefinition()
        Constructor
    • Method Detail

      • performTask

        public void performTask(java.lang.String taskName,
                                java.lang.String cronName,
                                java.lang.String instanceName)
                         throws java.rmi.RemoteException,
                                MXException,
                                java.sql.SQLException
        Performs the task of reconciling data between data set1 and data set2. The leading set is determined by the filter type.
        Parameters:
        taskName - The name of this reconciliation task
        cronName - The name of the cron task responsible for reconciling data for this task
        instanceName - Specified instance associated with the given cron task
        Throws:
        java.rmi.RemoteException
        MXException
        java.sql.SQLException
      • retrieveReconTaskMbo

        protected MboRemote retrieveReconTaskMbo(java.lang.String taskName)
                                          throws MXException,
                                                 java.rmi.RemoteException
        Returns a reconciliation task business object associated with the given reconciliation task name.
        Parameters:
        taskName - task name
        Returns:
        reconciliation task business object, if found, otherwise null.
        Throws:
        MXException - if fails to obtain reconciliation business object
        java.rmi.RemoteException - if fails to obtain reconciliation business object
      • retrieveReconTaskMboSet

        protected MboSetRemote retrieveReconTaskMboSet(java.lang.String taskName,
                                                       boolean readonly)
                                                throws MXException,
                                                       java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • link

        protected java.util.Map[][] link()
                                  throws MXException,
                                         java.rmi.RemoteException,
                                         java.sql.SQLException
        Returns linked data set items for further comparison processing.
        Returns:
        - UIDAndKeys array of arrays, linked data set items.
        Throws:
        MXException
        java.rmi.RemoteException
        java.sql.SQLException
      • compare

        protected void compare(java.util.Map[][] linkedPairs)
                        throws MXException,
                               java.rmi.RemoteException,
                               java.sql.SQLException
        Throws:
        MXException
        java.rmi.RemoteException
        java.sql.SQLException
      • logTaskNoLinksFoundError

        protected void logTaskNoLinksFoundError()
        Logs an error message to indicate that links were generated for this reconciliation task.