public class StepOsCommand extends Step
Step
representing a step that contains an OS (Operating System)
command.
Such step will be used inside an OdiPackage
to express execution
of an OS command as a simple string.
Step.LogLevel
NAME_MAX_LENGTH
Constructor and Description |
---|
StepOsCommand(OdiPackage pPackage,
java.lang.String pName)
Constructor that sets the parent
OdiPackage and the step name. |
Modifier and Type | Method and Description |
---|---|
Expression |
getCommandExpression()
Returns the expression that define the OS command to be executed when executing this step.
|
void |
setCommandExpression(Expression pCommand)
Sets the expression that defines the OS command to be executed when executing this step.
|
void |
setCommandExpression(java.lang.String pCommand,
GlobalExpressionContext pGlobalContext)
Sets the expression that defines the OS command to be executed when executing this step.
|
getFailureRetryDelay, getFailureRetryNumber, getInternalId, getLoglevel, getName, getNextStepAfterFailure, getNextStepAfterSuccess, getParentPackage, getSecurityContainer, getStepId, isFirstStep, setFailureRetryDelay, setFailureRetryNumber, setLoglevel, setName, setNextStepAfterFailure, setNextStepAfterSuccess
public StepOsCommand(OdiPackage pPackage, java.lang.String pName)
OdiPackage
and the step name.pPackage
- the package that will hold this steppName
- the name of the step to be createdDomainRuntimeException
- if the package is null or if the name is null, empty or
longer than public void setCommandExpression(Expression pCommand)
pCommand
- the expressionsetCommandExpression(String, GlobalExpressionContext)
,
getCommandExpression()
public void setCommandExpression(java.lang.String pCommand, GlobalExpressionContext pGlobalContext)
pCommand
- the expressionpGlobalContext
- the global context that will be used to reference global ODI objects (like variables, sequences...)setCommandExpression(Expression)
,
getCommandExpression()
public Expression getCommandExpression()
Expression
objectsetCommandExpression(Expression)