urbanairship-core/src/main/java/com/urbanairship/automation/AutomationEngine.java
private void handleExpiredEntries(@NonNull Collection<ScheduleEntry> entries) {
        List<String> schedulesToDelete = new ArrayList<>();
        List<ScheduleEntry> schedulesToUpdate = new ArrayList<>();

        for (ScheduleEntry scheduleEntry : entries) {
            scheduleEntry.setExecutionState(ScheduleEntry.STATE_FINISHED);
            if (scheduleEntry.getEditGracePeriod() >= 0) {
                schedulesToUpdate.add(scheduleEntry);
            } else {
                schedulesToDelete.add(scheduleEntry.scheduleId);
            }
        }

        dataManager.saveSchedules(schedulesToUpdate);
        dataManager.deleteSchedules(schedulesToDelete);
        notifyExpiredSchedules(entries);
    }
/**
     * Sets the execution state, saves the schedule, and notifies any listeners of the
     * expired schedules.
     *
     * @param entries The expired schedule entries.
     */
Sets the execution state, saves the schedule, and notifies any listeners of the
expired schedules.

@param entries The expired schedule entries.
Sets the execution state saves the schedule and notifies any listeners of the expired schedules . @param entries The expired schedule entries .
private void handleExpiredEntries(@NonNull Collection<ScheduleEntry> entries) {
        List<String> schedulesToDelete = new ArrayList<>();
        List<ScheduleEntry> schedulesToUpdate = new ArrayList<>();
        for (ScheduleEntry scheduleEntry : entries) {
            scheduleEntry.setExecutionState(ScheduleEntry.STATE_FINISHED);
            if (scheduleEntry.getEditGracePeriod() >= 0) {
                schedulesToUpdate.add(scheduleEntry);
            } else {
                schedulesToDelete.add(scheduleEntry.scheduleId);
            }
        }
        dataManager.saveSchedules(schedulesToUpdate);
        dataManager.deleteSchedules(schedulesToDelete);
        notifyExpiredSchedules(entries);
    }
private void handleExpiredEntries ( @ NonNull Collection < ScheduleEntry > entries ) { List < String > schedulesToDelete = new ArrayList < > ( ) ; List < ScheduleEntry > schedulesToUpdate = new ArrayList < > ( ) ; for ( ScheduleEntry scheduleEntry : entries ) { scheduleEntry . setExecutionState ( ScheduleEntry . STATE_FINISHED ) ; if ( scheduleEntry . getEditGracePeriod ( ) >= 0 ) { schedulesToUpdate . add ( scheduleEntry ) ; } else { schedulesToDelete . add ( scheduleEntry . scheduleId ) ; } } dataManager . saveSchedules ( schedulesToUpdate ) ; dataManager . deleteSchedules ( schedulesToDelete ) ; notifyExpiredSchedules ( entries ) ; }
Sets the execution state, saves the schedule, and notifies any listeners of the
 expired schedules.
Sets the execution state saves the schedule and notifies any listeners of the expired schedules .