@StableMinor(version="12.3", sinceVersion="7.1") public class Step extends Object implements IStep, Serializable
process
step.Constructor and Description |
---|
Step(IStepExecutable executable)
Creates a step with the given
executable . |
Step(IStepExecutable executable,
boolean mandatory)
Creates a step with the given
executable
indicating whether it is mandatory or not. |
Modifier and Type | Method and Description |
---|---|
void |
addEnvironmentRestriction(String environmentTag,
EnvironmentType environmentType)
Adds an environment restriction with the given tag and type (if it does
not exist yet).
|
StepOutcome |
execute()
Executes this step and returns the outcome.
If this step has already been executed and it's outcome is StepOutcomeStatus.SUCCESS or StepOutcomeStatus.IGNORED an
IllegalStateException is raised. |
String |
getDescription()
Returns the description of the step.
|
IStepExecutable |
getExecutable()
Returns this step's executable.
|
String |
getId()
Returns the Step Id.
|
Date |
getIgnoredDate()
Returns the date time that indicates when the step was ignored by user.
|
String |
getIgnoredUserId()
Returns the userId who ignored the step.
|
String |
getMessage()
Returns the message of the step.
|
IStepOutcome |
getOutcome()
Returns the outcome of this step.
|
IProcess |
getProcess()
Returns the process owner of the step.
|
int |
getStepNumber()
Returns the number of this step.
|
boolean |
isMandatory()
Returns whether this step is mandatory.
|
void |
removeEnvironmentRestriction(String environmentTag,
EnvironmentType environmentType)
Removes the environment restriction with the given tag and type.
|
public Step(IStepExecutable executable)
executable
.executable
- the executable.public Step(IStepExecutable executable, boolean mandatory)
executable
indicating whether it is mandatory or not.executable
- the executable.mandatory
- indicates whether the step is mandatory or not.public StepOutcome execute() throws PortalException
StepOutcomeStatus.SUCCESS
or StepOutcomeStatus.IGNORED
an
IllegalStateException
is raised.PortalException
public IStepExecutable getExecutable() throws PortalException
PortalException
- if any error occurs during the process.public boolean isMandatory()
IStep
isMandatory
in interface IStep
public IStepOutcome getOutcome()
null
will be returned.public int getStepNumber()
IStep
getStepNumber
in interface IStep
public void addEnvironmentRestriction(String environmentTag, EnvironmentType environmentType)
null
an
IllegalArgumentException
will be raised.environmentTag
- the environment tag.environmentType
- the environment type.IllegalArgumentException
- if both parameters are null
.public void removeEnvironmentRestriction(String environmentTag, EnvironmentType environmentType)
null
an IllegalArgumentException
will be
raised.environmentTag
- the environment tag.environmentType
- the environment type.IllegalArgumentException
- if both parameters are null
.public String getId()
public String getDescription()
IStep
getDescription
in interface IStep
public String getMessage()
IStep
getMessage
in interface IStep
public IProcess getProcess()
IStep
getProcess
in interface IStep
public Date getIgnoredDate()
IStep
null
.getIgnoredDate
in interface IStep
null
if the step wasn't ignored.public String getIgnoredUserId()
IStep
null
.getIgnoredUserId
in interface IStep
null
if the step wasn't ignored.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.