org.jbpm.process.core.timer

## Interface BusinessCalendar

- All Known Implementing Classes:
    BusinessCalendarImpl

      public interface BusinessCalendar

  BusinessCalendar allows for defining custom definitions of working days, hours and holidays to be taken under consideration when scheduling time based activities such as timers or deadlines.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Date` | `calculateBusinessTimeAsDate(String timeExpression)` Calculates given time expression into target date based on calendar configuration.
    `long` | `calculateBusinessTimeAsDuration(String timeExpression)` Calculates given time expression into duration in milliseconds based on calendar configuration.

- - ### Method Detail

    - #### calculateBusinessTimeAsDuration

          long calculateBusinessTimeAsDuration(String timeExpression)

      Calculates given time expression into duration in milliseconds based on calendar configuration.
      Parameters:
        `timeExpression` - time expression that is supported by business calendar implementation.
      Returns:
        duration expressed in milliseconds

    - #### calculateBusinessTimeAsDate

          Date calculateBusinessTimeAsDate(String timeExpression)

      Calculates given time expression into target date based on calendar configuration.
      Parameters:
        `timeExpression` - time expression that is supported by business calendar implementation.
      Returns:
        date when given time expression will match in the future

Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.