Class TimerEventSetup
java.lang.Object
com.sas.lsaf.workflow.processflow.setup.ElementSetup
com.sas.lsaf.workflow.processflow.setup.EventSetup
com.sas.lsaf.workflow.processflow.setup.TimerEventSetup
- All Implemented Interfaces:
Serializable
The class that specifies the setup information for the TimerEventSetup elements that are in a process flow.
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.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe valid values for the type of timer that is in a timer event. -
Field Summary
Fields inherited from class com.sas.lsaf.workflow.processflow.setup.ElementSetup
description, name -
Constructor Summary
ConstructorsConstructorDescriptionTimerEventSetup(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. -
Method Summary
Modifier and TypeMethodDescriptionGets the type of timer.Gets the value of the timer.voidsetTimerValue(Serializable timerValue) Sets the timer value.Methods inherited from class com.sas.lsaf.workflow.processflow.setup.EventSetup
equals, hashCode, toStringMethods inherited from class com.sas.lsaf.workflow.processflow.setup.ElementSetup
getDescription, getElementId, getName, getProcessFlowIdentifier, getType
-
Constructor Details
-
TimerEventSetup
public 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. They should only deal with the setup events returned by the API.- Parameters:
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.
-
-
Method Details
-
getTimerValue
Gets the value of the timer.- Returns:
- The value.
-
setTimerValue
Sets the timer value. IfTimerTypeis of typeDATE, the timer value must be aDate. IfTimerTypeis of typeDURATION, the timer value must be a string in ISO 8601 duration format. An example of duration is P10D, which represents 10 days.- Parameters:
timerValue- The timer value.
-
getTimerType
Gets the type of timer. SeeTimerEventSetup.TimerType.- Returns:
- The timer type.
-