Class Step

    • Constructor Detail

      • Step

        public Step​(IStepExecutable executable)
        Creates a step with the given executable.
        Parameters:
        executable - the executable.
        Since:
        7.1.0
      • Step

        public Step​(IStepExecutable executable,
                    boolean mandatory)
        Creates a step with the given executable indicating whether it is mandatory or not.
        Parameters:
        executable - the executable.
        mandatory - indicates whether the step is mandatory or not.
        Since:
        7.1.0
    • Method Detail

      • isMandatory

        public boolean isMandatory()
        Description copied from interface: IStep
        Returns whether this step is mandatory.
        Specified by:
        isMandatory in interface IStep
        Returns:
        whether this step is mandatory.
      • getOutcome

        public IStepOutcome getOutcome()
        Returns the outcome of this step. If this step hasn't been executed yet, null will be returned.
        Returns:
        the outcome of this step.
        Since:
        7.1.0
      • getStepNumber

        public int getStepNumber()
        Description copied from interface: IStep
        Returns the number of this step.
        Specified by:
        getStepNumber in interface IStep
        Returns:
        the number of this step.
      • addEnvironmentRestriction

        public void addEnvironmentRestriction​(String environmentTag,
                                              EnvironmentType environmentType)
        Adds an environment restriction with the given tag and type (if it does not exist yet). If both arguments are null an IllegalArgumentException will be raised.
        Parameters:
        environmentTag - the environment tag.
        environmentType - the environment type.
        Throws:
        IllegalArgumentException - if both parameters are null.
        Since:
        7.1.0
      • removeEnvironmentRestriction

        public void removeEnvironmentRestriction​(String environmentTag,
                                                 EnvironmentType environmentType)
        Removes the environment restriction with the given tag and type. If both arguments are null an IllegalArgumentException will be raised.
        Parameters:
        environmentTag - the environment tag.
        environmentType - the environment type.
        Throws:
        IllegalArgumentException - if both parameters are null.
        Since:
        7.1.0
      • getId

        public String getId()
        Returns the Step Id.
        Returns:
        the Step Id.
        Since:
        7.1.0
      • getDescription

        public String getDescription()
        Description copied from interface: IStep
        Returns the description of the step.
        Specified by:
        getDescription in interface IStep
        Returns:
        the description of the step.
      • getMessage

        public String getMessage()
        Description copied from interface: IStep
        Returns the message of the step.
        Specified by:
        getMessage in interface IStep
        Returns:
        the message of the step.
      • getProcess

        public IProcess getProcess()
        Description copied from interface: IStep
        Returns the process owner of the step.
        Specified by:
        getProcess in interface IStep
        Returns:
        the process owner of the step.
      • getIgnoredDate

        public Date getIgnoredDate()
        Description copied from interface: IStep
        Returns the date time that indicates when the step was ignored by user. If the step wasn't ignored, this information will be null.
        Specified by:
        getIgnoredDate in interface IStep
        Returns:
        the date time that indicates when the step was ignored by user. null if the step wasn't ignored.
      • getIgnoredUserId

        public String getIgnoredUserId()
        Description copied from interface: IStep
        Returns the userId who ignored the step. If the step wasn't ignored, this information will be null.
        Specified by:
        getIgnoredUserId in interface IStep
        Returns:
        the userId who ignored the step. null if the step wasn't ignored.