|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.informatica.powercenter.sdk.mapfwk.core.Task com.informatica.powercenter.sdk.mapfwk.core.Command
public class Command
Represent Command Task.
Workflow Manager contains many types of tasks to help you build workflows and worklets
Command task allows to specify one or more shell commands to run during in a workflow. For example, you can specify shell commands in the Command task to delete reject files, copy a file, or archive target files.
Assignment
,
Control
,
Decision
,
EMail
,
Session
,
Timer
Field Summary | |
---|---|
static java.lang.String |
FAIL_TASK_IF_ANY_COMMAND_FAILS
Option to set whether the task should fail if any command fails. |
static java.lang.String |
RECOVERY_STRATEGY
Recovery strategy |
static java.lang.String |
RECOVERY_STRATEGY_VALUE_FAIL_TASK
Recovery strategy - Option Fail task and continue Workflow |
static java.lang.String |
RECOVERY_STRATEGY_VALUE_RESTART_TASK
Recovery strategy - Restart task |
Fields inherited from class com.informatica.powercenter.sdk.mapfwk.core.Task |
---|
FAIL_PARENT_IF_INSTANCE_DIDNOT_RUN, FAIL_PARENT_IF_INSTANCE_FAILS, NO_OPTION, REUSABLE, TREAT_INPUT_LINK_AS_AND, YES_OPTION |
Constructor Summary | |
---|---|
Command(java.lang.String name,
java.lang.String busName,
java.lang.String desc)
Create a new Command task |
Method Summary | |
---|---|
void |
addCommand(java.lang.String commandName,
java.lang.String command)
Adds a new command to the task. |
void |
deleteCommand(java.lang.String commandName,
java.lang.String command)
Deletes a command from the command task. |
java.util.Iterator |
getCommandIterator()
Returns an iterator for commands present in command task. |
boolean |
getFailTaskOption()
Gets the value of "Fail task if any command fails" option |
java.lang.String |
getRecoveryStrategy()
Gets recovery strategy Recovery strategy is one of the following RECOVERY_STRATEGY_VALUE_FAIL_TASK
RECOVERY_STRATEGY_VALUE_RESTART_TASK
|
void |
modifyCommand(java.lang.String commandName,
java.lang.String command)
Modifies a command present in the command task. |
void |
setFailTaskOption(boolean value)
Set the value of "Fail task if any command fails" option to true or false. |
void |
setRecoveryStrategy(java.lang.String strategy)
Sets recovery strategy. |
Methods inherited from class com.informatica.powercenter.sdk.mapfwk.core.Task |
---|
connectToTask, connectToTask, deleteNameValuePair, getAllConnectedTasks, getAllConnectedTasksAndExpressions, getAttributes, getBusinessName, getConflictResolution, getDescription, getMetaExtensions, getName, getNamesOfValuePairs, getNameValuePairs, getProperties, getTaskInstanceProperty, getType, getValueOfNameValuePair, isModified, setAttributes, setBusinessName, setConflictResolution, setDescription, setMetaExtensions, setModified, setName, setNameValuePair, setTaskInstanceProperty, setType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String FAIL_TASK_IF_ANY_COMMAND_FAILS
public static final java.lang.String RECOVERY_STRATEGY
public static final java.lang.String RECOVERY_STRATEGY_VALUE_FAIL_TASK
public static final java.lang.String RECOVERY_STRATEGY_VALUE_RESTART_TASK
Constructor Detail |
---|
public Command(java.lang.String name, java.lang.String busName, java.lang.String desc)
name
- name of the command taskbusName
- business namedesc
- descriptionMethod Detail |
---|
public void addCommand(java.lang.String commandName, java.lang.String command)
All commands will be added to the end of the list and the order of commands are maintained
commandName
- name of the commandcommand
- the corresponding command stringpublic void deleteCommand(java.lang.String commandName, java.lang.String command)
Since a commandName can be added multiple times, the
commandName
- name of the command to be deletedcommand
- the corresponding command string
public void modifyCommand(java.lang.String commandName, java.lang.String command)
Since a commandName can be added multiple times, the
commandName
- name of the command to be deletedcommand
- the corresponding command string
public void setRecoveryStrategy(java.lang.String strategy)
strategy
- recovery srategyRECOVERY_STRATEGY_VALUE_FAIL_TASK
,
RECOVERY_STRATEGY_VALUE_RESTART_TASK
,
getRecoveryStrategy()
public java.lang.String getRecoveryStrategy()
RECOVERY_STRATEGY_VALUE_FAIL_TASK
,
RECOVERY_STRATEGY_VALUE_RESTART_TASK
,
#setRecoveryStrategy()
public void setFailTaskOption(boolean value)
value
- true, if task should be failed if a command fails
false,if task should not be failed if a command failsgetFailTaskOption()
public boolean getFailTaskOption()
#setFailTaskOption()
public java.util.Iterator getCommandIterator()
String
with two
elements
Iterator.next()
returns a String[]
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |