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 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 String
SEARCH_TERM_STATE_UUID
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 Constructor Description FcStateTimerProps()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<UuidEntityRef>
getApplicableStates()
long
getDurationDays()
int
getDurationHours()
int
getDurationMinutes()
Duration
getTotalDuration()
void
setApplicableStates(List<UuidEntityRef> applicableStates)
void
setDurationDays(long durationDays)
void
setDurationHours(int durationHours)
void
setDurationMinutes(int durationMinutes)
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 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
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.
-
getTotalDuration
public Duration getTotalDuration()
- Returns:
- The combined total duration from
getDurationDays()
,getDurationHours()
, andgetDurationMinutes()
.
-
setApplicableStates
public void setApplicableStates(List<UuidEntityRef> applicableStates)
- 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.
-
setTotalDuration
public void setTotalDuration(Duration duration)
- Parameters:
duration
- The combined total duration fromgetDurationDays()
,getDurationHours()
, andgetDurationMinutes()
.
-
-