Class FcStateTimerProps
- java.lang.Object
-
- de.xima.fc.workflow.taglib.model.BaseTriggerProps
-
- de.xima.fc.workflow.model.triggers.FcStateTimerProps
-
- All Implemented Interfaces:
IDescriptionProviding,INameProviding,Serializable
@PositiveGroup(fields={"durationDays","durationHours","durationMinutes"}, minValid=1) public final class FcStateTimerProps extends BaseTriggerPropsThe properties model for workflow triggers of typeEWorkflowTriggerType.FC_STATE_TIMER.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSEARCH_TERM_STATE_UUIDKey for storing the selected state UUID as aWorkflowTriggerSearchTerm-
Fields inherited from interface de.xima.fc.entities.interfaces.IDescriptionProviding
ATTR_BESCHREIBUNG, ATTR_DESCRIPTION, COL_DESCRIPTION
-
Fields inherited from interface de.xima.fc.entities.interfaces.INameProviding
ATTR_NAME, COL_NAME
-
-
Constructor Summary
Constructors Constructor Description FcStateTimerProps()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<UuidEntityRef>getApplicableStates()longgetDurationDays()intgetDurationHours()intgetDurationMinutes()intgetDurationSeconds()DurationgetTotalDuration()voidsetApplicableStates(List<UuidEntityRef> applicableStates)voidsetDurationDays(long durationDays)voidsetDurationHours(int durationHours)voidsetDurationMinutes(int durationMinutes)voidsetDurationSeconds(int durationSeconds)voidsetTotalDuration(Duration duration)-
Methods inherited from class de.xima.fc.workflow.taglib.model.BaseTriggerProps
getBeschreibung, getColor, getDescription, getIcon, getName, setColor, setDescription, setIcon, setName
-
-
-
-
Field Detail
-
SEARCH_TERM_STATE_UUID
public static final String SEARCH_TERM_STATE_UUID
Key for storing the selected state UUID as aWorkflowTriggerSearchTerm
-
-
Method Detail
-
getApplicableStates
public List<UuidEntityRef> getApplicableStates()
- Returns:
- UUIDs of applicable
WorkflowStates for when the trigger fires. The trigger fires once a form record has remained for the configured amount of time in one of these states.
-
getDurationDays
public long getDurationDays()
- Returns:
- The number of days a form record must remain in the given state before the trigger fires.
-
getDurationHours
public int getDurationHours()
- Returns:
- The number of hours a form record must remain in the given state before the trigger fires.
-
getDurationMinutes
public int getDurationMinutes()
- Returns:
- The number of minutes a form record must remain in the given state before the trigger fires.
-
getDurationSeconds
public int getDurationSeconds()
- Returns:
- The number of seconds a form record must remain in the given state before the trigger fires.
-
getTotalDuration
public Duration getTotalDuration()
- Returns:
- The combined total duration from
getDurationDays(),getDurationHours(),getDurationMinutes(), andgetDurationSeconds().
-
setApplicableStates
public void setApplicableStates(List<UuidEntityRef> applicableStates)
- Parameters:
applicableStates- UUIDs of applicableWorkflowStates for when the trigger fires. The trigger fires once a form record has remained for the configured amount of time in one of these states.
-
setDurationDays
public void setDurationDays(long durationDays)
- Parameters:
durationDays- The number of days a form record must remain in the given state before the trigger fires.
-
setDurationHours
public void setDurationHours(int durationHours)
- Parameters:
durationHours- The number of hours a form record must remain in the given state before the trigger fires.
-
setDurationMinutes
public void setDurationMinutes(int durationMinutes)
- Parameters:
durationMinutes- The number of minutes a form record must remain in the given state before the trigger fires.
-
setDurationSeconds
public void setDurationSeconds(int durationSeconds)
- Parameters:
durationSeconds- The number of seconds a form record must remain in the given state before the trigger fires.
-
setTotalDuration
public void setTotalDuration(Duration duration)
- Parameters:
duration- The combined total duration fromgetDurationDays(),getDurationHours(), andgetDurationMinutes().
-
-