Interface CustomScheduledTaskServiceLocal

    • Field Detail

      • ATTR_SCHEDULED_TASK

        static final String ATTR_SCHEDULED_TASK
        Script attribute: the custom scheduled task
        See Also:
        Constant Field Values
      • ATTR_LOG

        static final String ATTR_LOG
        Script attribute: the custom scheduled task log for this execution
        See Also:
        Constant Field Values
    • Method Detail

      • getNextExecution

        Date getNextExecution​(CustomScheduledTask task)
        Calculates the next execution date, given the parameters. Is a separated method to allow testing
      • listIdsForRunningNow

        List<Long> listIdsForRunningNow()
        Returns a list with all custom scheduled task ids which should start running immediately
      • run

        boolean run​(Long taskId)
        Runs the task with the given identifier, generating a log. Assumes there is no current transaction.