You can save the mapping outputs in the repository if you run the mapping in a workflow. You can use a mapping output in a subsequent run of the same Mapping task. You can also assign persisted mapping outputs from the previous Mapping task run to workflow variables for the current Mapping task run.
Persist a mapping output in a Mapping task. A Mapping task is an instance of the mapping in a workflow with the mapping configuration and parameter bindings. For more information about Mapping tasks, see the
Informatica Developer Workflow Guide
.
When you click the
Persistence
tab in the Mapping task
Properties
view, the Developer tool displays all the mapping outputs for the mapping. To persist any mapping output, enable
Persist
for the mapping output and select the type of aggregation to perform to return a persisted value.
When the Data Integration Service persists a mapping output in the Model repository, the Data Integration Service saves the mapping output with the Mapping task name as a key. For example, if a workflow contains four mapping tasks, each running the same mapping, the Data Integration Service saves four outputs in the Model repository.
When you persist a mapping output, you can configure a different aggregate function for the persisted value than the aggregate function you defined at the mapping level. The Data Integration Service generates more than one mapping output value. For example, the OrderDate mapping output might contain the MIN OrderDate. The persisted OrderDate mapping output might contain the MAX OrderDate.
You can bind the mapping output from a Mapping task to the input parameter of the Mapping task the next time it runs. Feedback binding is when you configure the results from one mapping run as input to the same mapping the next time it runs. You must persist the mapping output in a Mapping task to use it for feedback binding.
An example of feedback binding is to persist the latest order date that the mapping processes. The next time the Mapping task runs, the input parameter to the mapping is the last date processed. The mapping can filter the parameter source rows to include the rows with an order date greater than the last order date processed.
The following image shows the
Persistence
tab on the
Properties
view of the Mapping task:
The
Persistence
tab has the following fields:
User-Defined Output
The name of a mapping output that the mapping returns.
Persist
Enables the Data Integration Service to persist the mapping output in the repository.
Aggregate Function
The type of aggregation to perform on the mapping output to persist. Select MIN, MAX, or SUM. The default is the value from the mapping output that you define in the mapping properties. You can change the aggregate function type of the persisted mapping output. You can persist a different value in the repository than the mapping output value that you pass to workflow variables.
Description
Describes the mapping output to persist in the repository.