Package de.xima.fc.workflow.bpmn
Class TimerEventExpression
- java.lang.Object
-
- de.xima.fc.workflow.bpmn.TimerEventExpression
-
- All Implemented Interfaces:
Serializable
public final class TimerEventExpression extends Object implements Serializable
Models theexpressionof atime eventin 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:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)de.xima.bpmn_model.api.element.bpmn.common.Expression<?>expression()Gets the expression that defines the cycle, date, or duration of the timer event.inthashCode()static TimerEventExpressiontimeCycle(de.xima.bpmn_model.api.element.bpmn.common.Expression<?> expression)Creates a newTimerEventExpressionfor a cycle time event that repeats at regular or irregular intervals.static TimerEventExpressiontimeDate(de.xima.bpmn_model.api.element.bpmn.common.Expression<?> expression)Creates a newTimerEventExpressionfor a date time event that triggers at a specific point in time.static TimerEventExpressiontimeDuration(de.xima.bpmn_model.api.element.bpmn.common.Expression<?> expression)Creates a newTimerEventExpressionfor a duration time event that triggers after a delay.static TimerEventExpressiontimeEventExpression(ETimeEventExpressionType type, de.xima.bpmn_model.api.element.bpmn.common.Expression<?> expression)Creates a newTimerEventExpressionwith the specified type and expression.StringtoString()ETimeEventExpressionTypetype()Gets the type of the timer event expression (cycle, date, or duration).
-
-
-
Method Detail
-
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.
-
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 newTimerEventExpressionfor 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 newTimerEventExpressionfor 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 newTimerEventExpressionfor 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 newTimerEventExpressionwith 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.
-
-