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 Details

  • Constructor Details

    • FcStateTimerProps

      public FcStateTimerProps()
  • Method Details

    • 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(), and getDurationSeconds().
    • setApplicableStates

      public void setApplicableStates(List<UuidEntityRef> applicableStates)
      Parameters:
      applicableStates - 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.
    • 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 from getDurationDays(), getDurationHours(), and getDurationMinutes().