You can use output parameters in task chains. This allows more flexibility and refinement moving information from one task object to the next in a task chain.
Prerequisites
To create output parameters in task chains, you need to have the correct authorizations required to create and run task chains. For more information see Creating a Task Chain.
Context
You can map output parameters from source task objects to be used in your task chain and expose mapped output parameters to your task chain to be used in nested task chains.
To utilize output parameters in task chains, you must have task objects that have output parameters added at the source level of the task. You can use SQL script procedures with output parameters and you can nest a task chain with output parameters described in the following process. For more information see , Run Open SQL Procedures in a Task Chain and Nest and Share Task Chains.
Procedure
Create a new task chain.
Drag a drop a task object that supports output parameters in task chains.
Click on the object with the output parameters you want to use. In the property pane on the right, you will see the names of the output parameters that are in the object and available to be used.
Click the (Output Parameters) icon beside the output parameter that you want to use for the task object when the task chain is run. The Map Output Parameters dialog box will appear. You must decide how each output parameter will be processed.
The Map Output Parameters dialog box will appear.
Property
Description
Object Parameter
[read-only] Shows the technical name of the output parameter in the task object. The technical names of output parameters created in the task source cannot be modified.
Action
Choose from the drop down list if you want to ignore the output parameter or map it to the task object in the task chain.
Ignore:: Ignore the output parameters in the source object. This will not take the output parameters into account for the task in the execution of the task chain.
Map To - Map the source output parameter to the individual object in the task chain.
Task Chain Parameter
Shows the name of the output parameter in the object task if you map it to be used by the object in the task run. Optional: You can change the name of the output parameter when you map it if you prefer.
Press OK. This will save the output parameters that have been mapped to the task object or continue to ignore the parameters you do not want to have considered in the status at runtime.
The mapped output parameter of a task can be used as a follow-up input parameter of the following task. For example,
The SQL procedure has an output parameter, SALES_ORG. The output parameter of the SQL procedure will become the input parameter, SALES_ORG, of the following transformation flow task in the task chain.
(Optional) You can save any output parameters that have been mapped the task chain to be used as an object in a nested task chain.
To do this, go to the task chain property panel on the right hand side. Under Output Parameter, you will see the options All and Exposed.
Property
Description
All
This lists all of the output parameters that have been mapped to be used by task objects in the task chain. You can click on the name, and this will take you to the relative object.
Exposed
This lists all of the output parameters that have been exposed to the task chain. They will be saved to the task chain and be able to be used when the task chain is used as an object in a nested task chain. For more information about nested task chains, see Nest and Share Task Chains.
To expose an output parameter, click the (Output Parameters) icon.
A dialog box with a list of all available output parameters. Click on the button Expose in the dialog box beside the output parameter you want to save to task chain.
Press OK. This will save Exposed output parameters to the task chain.
After you have finished adding objects to your task chain and defining parameters in your task chain, save the task chain. Give the task chain a name and click Save.
Deploy and run the task chain. For more information, see Run a Task Chain.
View the status of your task chain by going to Data Integration Monitor Task Chains. For more information, see Monitoring Task Chains.