Class MScheduler

    • Constructor Detail

      • MScheduler

        public MScheduler​(Properties ctx,
                          int AD_Scheduler_ID,
                          String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        AD_Scheduler_ID - id
        trxName - transaction
      • MScheduler

        public MScheduler​(Properties ctx,
                          ResultSet rs,
                          String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
      • MScheduler

        public MScheduler​(MScheduler copy)
        Parameters:
        copy -
    • Method Detail

      • getActive

        public static MScheduler[] getActive​(Properties ctx)
        Get Active
        Parameters:
        ctx - context
        Returns:
        active processors
      • getDateNextRun

        public Timestamp getDateNextRun​(boolean requery)
        Get Date Next Run
        Specified by:
        getDateNextRun in interface AdempiereProcessor
        Parameters:
        requery - requery
        Returns:
        date next run
      • deleteLog

        public int deleteLog()
        Delete old Request Log
        Returns:
        number of records
      • getProcess

        public MProcess getProcess()
        Get Process
        Returns:
        process
      • getParameters

        public MSchedulerPara[] getParameters​(boolean reload)
        Get Parameters
        Parameters:
        reload - reload
        Returns:
        parameter
      • getRecipients

        public MSchedulerRecipient[] getRecipients​(boolean reload)
        Get Recipients
        Parameters:
        reload - reload
        Returns:
        Recipients
      • getRecipientAD_User_IDs

        public Integer[] getRecipientAD_User_IDs()
        Get Recipient AD_User_IDs
        Returns:
        array of user IDs
      • getRecipientAD_User_IDs

        public Integer[] getRecipientAD_User_IDs​(boolean excludeUploadRecipient)
        Get Recipient AD_User_IDs
        Parameters:
        excludeUploadRecipient -
        Returns:
        array of user IDs
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        true
      • isIgnoreProcessingTime

        public boolean isIgnoreProcessingTime()
        Specified by:
        isIgnoreProcessingTime in interface AdempiereProcessor2
        Returns:
        true if previous DateNextRun should be use as base to calculate the new DateNextRun value. False to follow the legacy behaviour where current server time is use as the base to the new DateNextRun value.
      • getUploadRecipients

        public MSchedulerRecipient[] getUploadRecipients()
        Returns:
        list of upload recipients