public class FlowAction extends Object implements Serializable
Different types are described in FlowActionType
FlowActionType
,
Serialized FormConstructor and Description |
---|
FlowAction()
Default constructor
|
FlowAction(FlowActionType type)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getCronExpr() |
static FlowAction |
getDefaultAction(FlowScript script)
If a FlowScript cannot be performed and the execution of the
job must continue, a default 'neutral' action must be provided
|
int |
getDupNumber() |
String |
getTarget() |
String |
getTargetContinuation() |
String |
getTargetElse() |
FlowActionType |
getType() |
void |
setCronExpr(String cronExpr) |
void |
setDupNumber(int args) |
void |
setTarget(String t) |
void |
setTargetContinuation(String t) |
void |
setTargetElse(String s) |
void |
setType(FlowActionType type) |
public FlowAction()
public FlowAction(FlowActionType type)
type
- the default typepublic static FlowAction getDefaultAction(FlowScript script)
script
- the FlowScript defining the action type and parameterspublic FlowActionType getType()
public int getDupNumber()
FlowActionType.REPLICATE
public String getTarget()
FlowActionType.REPLICATE
or
FlowActionType.IF
public void setType(FlowActionType type)
type
- the type of this FlowActionpublic void setDupNumber(int args)
args
- the number of parallel runs if the type of
this action is FlowActionType.REPLICATE
public void setTarget(String t)
t
- the main action target if
this action is FlowActionType.REPLICATE
or
FlowActionType.IF
public String getTargetElse()
FlowActionType.IF
public void setTargetElse(String s)
s
- the name of the task that was NOT selected if
this action is FlowActionType.IF
public void setTargetContinuation(String t)
t
- the Continuation task for the If and Else branches,
if this action is FlowActionType.IF
public String getTargetContinuation()
FlowActionType.IF
public void setCronExpr(String cronExpr)
public String getCronExpr()