Class RestartTaskAction

  • All Implemented Interfaces:
    Action

    public class RestartTaskAction
    extends ConditionOrAction
    implements Action
    Restarts the task and exits current evaluation cycle.
    • Constructor Detail

      • RestartTaskAction

        public RestartTaskAction()
        Creates a RestartTaskAction.
    • Method Detail

      • setMinutes

        public void setMinutes​(int minutes)
        Sets the number of minutes.
        Parameters:
        minutes - Minutes
      • getMinutes

        public int getMinutes()
        Returns the number of minutes or -1 if the parameter has not been set.
        Returns:
        Minutes
      • isFinal

        public boolean isFinal()
        Description copied from interface: Action
        Returns true if this is a final action in this condition.
        Specified by:
        isFinal in interface Action
        Returns:
        true if this action ends the evaluation of a condition
      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface Action
        Specified by:
        getId in class ConditionOrAction
        Returns:
        ID of the condition or action
      • isBeforeCondition

        public boolean isBeforeCondition()
        Description copied from interface: Action
        Returns true if this action can be used in a Post-Condition.
        Specified by:
        isBeforeCondition in interface Action
        Specified by:
        isBeforeCondition in class ConditionOrAction
        Returns:
        true if the action/condition is allowed on the "Pre-Condition" tab
      • isAfterCondition

        public boolean isAfterCondition()
        Description copied from interface: Action
        Returns true if this action can be used in a Pre-Condition.
        Specified by:
        isAfterCondition in interface Action
        Specified by:
        isAfterCondition in class ConditionOrAction
        Returns:
        true if the action/condition is allowed on the "Post-Condition" tab
      • isAction

        public boolean isAction()
        Specified by:
        isAction in class ConditionOrAction
        Returns:
        true if the sub class is an instance of com.uc4.api.objects.Action or false if the sub class is an instance of com.uc4.api.objects.Condition
      • isIF

        public boolean isIF()
        Specified by:
        isIF in class ConditionOrAction
        Returns:
        true if the action/condition is allowed in the condition of an IF workflow