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 BaseTriggerProps
The properties model for workflow triggers of type
EWorkflowTriggerType.FC_STATE_TIMER
.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Key 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 -
Method Summary
Modifier and TypeMethodDescriptionlong
int
int
int
void
setApplicableStates
(List<UuidEntityRef> applicableStates) void
setDurationDays
(long durationDays) void
setDurationHours
(int durationHours) void
setDurationMinutes
(int durationMinutes) void
setDurationSeconds
(int durationSeconds) void
setTotalDuration
(Duration duration) Methods inherited from class de.xima.fc.workflow.taglib.model.BaseTriggerProps
getBeschreibung, getColor, getDescription, getIcon, getName, setColor, setDescription, setIcon, setName
-
Field Details
-
SEARCH_TERM_STATE_UUID
Key for storing the selected state UUID as aWorkflowTriggerSearchTerm
-
-
Constructor Details
-
FcStateTimerProps
public FcStateTimerProps()
-
-
Method Details
-
getApplicableStates
- Returns:
- UUIDs of applicable
WorkflowState
s 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
- Returns:
- The combined total duration from
getDurationDays()
,getDurationHours()
,getDurationMinutes()
, andgetDurationSeconds()
.
-
setApplicableStates
- Parameters:
applicableStates
- UUIDs of applicableWorkflowState
s 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
- Parameters:
duration
- The combined total duration fromgetDurationDays()
,getDurationHours()
, andgetDurationMinutes()
.
-