public class TimerEventSetup extends EventSetup
Note: If the TimerType
is DATE
, the timer value must be a Date
. If the
TimerType
is DURATION
, the timer value must be a String in ISO 8601 duration format. An example of
duration is P10D, which represents 10 days.
Modifier and Type | Class and Description |
---|---|
static class |
TimerEventSetup.TimerType
Provides the type of timer to use in a timer event.
|
description, name
Constructor and Description |
---|
TimerEventSetup(String name,
String description,
String elementId,
Element.ElementType type,
String processFlowId,
TimerEventSetup.TimerType timerType)
It is not intended or recommended that the consumer of this API construct these objects.
|
Modifier and Type | Method and Description |
---|---|
TimerEventSetup.TimerType |
getTimerType()
Gets the type of timer.
|
Serializable |
getTimerValue()
Gets the value of the timer.
|
void |
setTimerValue(Serializable timerValue)
Sets the timer value.
|
equals, hashCode, toString
getDescription, getElementId, getName, getProcessFlowIdentifier, getType
public TimerEventSetup(String name, String description, String elementId, Element.ElementType type, String processFlowId, TimerEventSetup.TimerType timerType)
name
- The name of the event.description
- The description of the event.elementId
- The identifier of the event as it appears in the process flow definition.type
- The type of the event.processFlowId
- The identifier of the process flow that contains the event.timerType
- The type of timer for the timer event.public Serializable getTimerValue()
public void setTimerValue(Serializable timerValue)
TimerType
is of type DATE
, the timer value must be a
Date
. If TimerType
is of type DURATION
, the timer value must be a String in
ISO 8601 duration format. An example of duration is P10D, which represents 10 days.timerValue
- The timer value.public TimerEventSetup.TimerType getTimerType()
TimerEventSetup.TimerType
.Copyright (c) 2020, SAS Institute Inc., Cary, NC, USA