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
ConstructorDescriptionBpmPeriodicTimerHelper
(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 boolean
Checks ifdueDateDescription
is period by ISO 8601 standard, like "PT10M"boolean
isValidDate
(LocalDateTime newTimerDateTime) Checks ifnewTimerDateTime
is valid for given timer definition.protected LocalDateTime
protected Duration
parsePeriod
(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 ifnewTimerDateTime
is valid for given timer definition. -
getNextTimerDate
Delegates calculation next timer date to provided business calendar. -
parseDate
-
parsePeriod
-
isPeriod
Checks ifdueDateDescription
is period by ISO 8601 standard, like "PT10M"
-