Package io.jmix.bpm.engine.calendar
Class BpmPeriodicTimerHelper
java.lang.Object
io.jmix.bpm.engine.calendar.BpmPeriodicTimerHelper
Helper class for calculating triggering date for
TimerEventDefinition
in case of using repeating intervals and non-default Flowable business calendar.-
Constructor Summary
ConstructorsConstructorDescriptionBpmPeriodicTimerHelper(BusinessCalendar businessCalendar, String dueDateDescription, int maxIterations) Parses all required information for resolving next date fromdueDateDescription. -
Method Summary
Modifier and TypeMethodDescriptionDelegates calculation next timer date to provided business calendar.protected booleanChecks ifdueDateDescriptionis period by ISO 8601 standard, like "PT10M"booleanisValidDate(LocalDateTime newTimerDateTime) Checks ifnewTimerDateTimeis valid for given timer definition.protected LocalDateTimeprotected DurationparsePeriod(String periodDescription)
-
Constructor Details
-
BpmPeriodicTimerHelper
public BpmPeriodicTimerHelper(BusinessCalendar businessCalendar, String dueDateDescription, int maxIterations) Parses all required information for resolving next date fromdueDateDescription.- Parameters:
businessCalendar- implementation ofio.jmix.businesscalendar.model.BusinessCalendar.dueDateDescription- repeating interval, acceptable values are R3/PT10H, R3/PT10H/${EndDate}, R3/2015-02-25T16:42:11+00:00/PT10 etc.maxIterations- maximum number of iterations for given timer.
-
-
Method Details
-
isValidDate
Checks ifnewTimerDateTimeis valid for given timer definition. -
getNextTimerDate
Delegates calculation next timer date to provided business calendar. -
parseDate
-
parsePeriod
-
isPeriod
Checks ifdueDateDescriptionis period by ISO 8601 standard, like "PT10M"
-