Schedule¶
-
public class
Schedule
¶ Represents schedule of the milestones. Clients are enrolled to the schedules, after this alerts will be raised. If the schedule is absolute: The alert reference time is the start of the schedule. All offsets for alerts are calculated from the start of schedule. If the schedule is not absolute(default): If there are no fulfilled milestones, the enrollment date is used as the alert reference time. If there are fulfilled milestones, the last milestone’s fulfillment date is used as the alert reference time.
Constructors¶
Methods¶
addMilestones¶
getDuration¶
getFirstMilestone¶
getMilestone¶
getNextMilestoneName¶
hasExpiredSince¶
-
public boolean
hasExpiredSince
(DateTime referenceDateTime, String currentMilestoneStr)¶ Checks whether the milstone with the given name has expired.
Parameters: - referenceDateTime – the expiration reference date and time
- currentMilestoneStr – the name of the milestone
Returns: true if the milestone has been expired