Class TimerEventExpression

java.lang.Object
de.xima.fc.workflow.bpmn.TimerEventExpression
All Implemented Interfaces:
Serializable

public final class TimerEventExpression extends Object implements Serializable
Models the expression of a time event in BPMN. A timer event can be defined by a cycle (repeat in intervals), a date (specific point in time), or a duration (delay).
Since:
8.4.0
See Also:
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • expression

      public de.xima.bpmn_model.api.element.bpmn.common.Expression<?> expression()
      Gets the expression that defines the cycle, date, or duration of the timer event.
      Returns:
      The expression defining the time event.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • type

      public ETimeEventExpressionType type()
      Gets the type of the timer event expression (cycle, date, or duration).
      Returns:
      The type of the time event expression.
    • timeCycle

      public static TimerEventExpression timeCycle(de.xima.bpmn_model.api.element.bpmn.common.Expression<?> expression)
      Creates a new TimerEventExpression for a cycle time event that repeats at regular or irregular intervals.
      Parameters:
      expression - The expression defining the cycle
      Returns:
      A new timer event expression for a cycle.
    • timeDate

      public static TimerEventExpression timeDate(de.xima.bpmn_model.api.element.bpmn.common.Expression<?> expression)
      Creates a new TimerEventExpression for a date time event that triggers at a specific point in time.
      Parameters:
      expression - The expression defining the date
      Returns:
      A new timer event expression for a date.
    • timeDuration

      public static TimerEventExpression timeDuration(de.xima.bpmn_model.api.element.bpmn.common.Expression<?> expression)
      Creates a new TimerEventExpression for a duration time event that triggers after a delay.
      Parameters:
      expression - The expression defining the duration
      Returns:
      A new timer event expression for a duration.
    • timeEventExpression

      public static TimerEventExpression timeEventExpression(ETimeEventExpressionType type, de.xima.bpmn_model.api.element.bpmn.common.Expression<?> expression)
      Creates a new TimerEventExpression with the specified type and expression.
      Parameters:
      type - The type of the time event expression (cycle, date, or duration)
      expression - The expression defining the time event
      Returns:
      A new timer event expression.