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

Configuring the Mapping Output Expression

Configuring the Mapping Output Expression

In the Expression transformation, configure the expression to aggregate for each row that the mapping processes.
  1. Add an Expression transformation to the mapping.
    Consider the mapping logic before you decide where to place the transformation. The mapping output contains an aggregation of the rows that the Expression transformation receives.
  2. In the Expression transformation, click the
    Mapping Outputs
    view.
  3. Click
    New
    to add a mapping output expression.
    The Developer tool creates a mapping output with a output name that matches one of the mapping outputs you created at the mapping level. If you have more than one mapping output in the mapping
    Properties
    , select the appropriate mapping output name to use.
    The following image shows the
    Mapping Outputs
    view in the Expression transformation:
    The Mapping Outputs view shows the Total Order Amount mapping output with an empty expression field. It also shows the Last Order Date mapping output with Order Date in the Expression field.
  4. Click the
    Expression
    column to enter an expression in the Expression Editor.
    The expression can contain just a port name or it can contain functions, ports, and parameters.
    The following image shows an expression to calculate the Total_OrderAmt in the Expression Editor:
    The Expression Editor has three columns labeled Functions, Ports, and Parameters. The Expression Editor shows the following expression in the work area: Order Amount + Order Amount * .0875.
  5. Click
    Validate
    to verify that the expression is valid.
  6. Click
    OK
    to save the expression.
    The expression appears in the
    Expression
    column for the mapping output.
  7. Click
    File
    Save
    to save the Expression transformation.

0 COMMENTS

We’d like to hear from you!