Table of Contents

Search

  1. Preface
  2. Workflows
  3. Workflow Variables
  4. Workflow Parameters
  5. Cluster Tasks
  6. Command Task
  7. Human Task
  8. Mapping Task
  9. Notification Task
  10. Gateways
  11. Workflow Recovery
  12. Workflow Administration

Developer Workflow Guide

Developer Workflow Guide

Command Task Output

Command Task Output

Command task output is the data that passes from a Command task into workflow variables. Command task outputs include general outputs and task specific outputs.
When you configure a Command task, you specify the task output values that you want to assign to workflow variables on the
Output
tab. The Data Integration Service copies the Command task output values to workflow variables when the Command task completes.
If the task fails, the Data Integration Service copies the general task output values but not the task specific output values to workflow variables. If the task aborts, the Data Integration Service does not copy any task output values to workflow variables.
For example, a Command task produces an exit code output value that indicates whether the command ran successfully. The workflow cannot directly access this Command task output data. To use the data in the remainder of the workflow, you assign the exit code output to a workflow variable named CommandExitCode. Then use the CommandExitCode workflow variable in an expression for a conditional sequence flow. The Data Integration Service runs the next object in the workflow if the command ran successfully.
General outputs include output data produced by all tasks such as the task start time, end time, and whether the task successfully ran.
Command task outputs include data produced by the Command task when it runs the command.
The following table describes the output data produced by the Command task:
Output Data
Datatype
Description
Exit Code
Integer
Exit code returned by the command. A successful command returns 0. An unsuccessful command returns a non-zero value.
Standard Error
String
Standard error message returned by the command. By default, the first 1,024 characters of the error are returned. You can change the length of the standard error in the Command task advanced configuration properties.
Standard Output
String
Standard output returned by the command. By default, the first 1,024 characters of the output are returned. You can change the length of the standard output in the Command task advanced configuration properties.

0 COMMENTS

We’d like to hear from you!