Table of Contents

Search

  1. Preface
  2. Mappings
  3. Mapplets
  4. Mapping Parameters
  5. Where to Assign Parameters
  6. Mapping Outputs
  7. Generate a Mapping from an SQL Query
  8. Dynamic Mappings
  9. How to Develop and Run a Dynamic Mapping
  10. Dynamic Mapping Use Cases
  11. Mapping Administration
  12. Export to PowerCenter
  13. Import From PowerCenter
  14. Performance Tuning
  15. Pushdown Optimization
  16. Partitioned Mappings
  17. Developer Tool Naming Conventions

Developer Mapping Guide

Developer Mapping Guide

Expression Parameters

Expression Parameters

You can configure an expression parameter type. An expression parameter is a parameter that contains a complete expression.
You can use an expression parameter in the following transformation fields:
  • Aggregator. Port expression.
  • Expression. Port expression.
  • Filter. Filter condition.
  • Join. Join condition.
  • Lookup. Lookup condition.
  • Rank. Port expression.
If you configure an expression parameter in a filter, join, or lookup condition in a Filter, Join, or Lookup transformation, the expression parameter must evaluate to TRUE or FALSE.
If you configure an expression parameter in the port expression for an Aggregator, Expression, or Rank transformation, the port must contain only the expression parameter. The result value of the parameter must match the port data type. For example, if the port data type is a string, the expression must evaluate to a string.
Define the expression parameter in the Expression Editor. Select
Specify by Parameter
to indicate that the complete expression is parameterized.
For example, the following image shows the
Specify by Parameter
option for the filter condition:
Choose to Specify a filter by Value or by Parameter. The Filter dialog box lists functions you can use in the filter condition and a default filter condtion that says TRUE.
When you use an expression parameter, you can create the expression parameter or you can select an existing expression parameter to use in the transformation. An expression parameter can contain ports, operators, and constants. For example, you might create expression parameters with different port names and operators in a dynamic mapping. The expression parameter cannot contain other parameters.
If the expression parameter is a transformation parameter, you can bind the transformation parameter to a mapping parameter. You can override the mapping parameter at run time.

Restrictions for Port Expressions

If you use expression parameters for port expressions, consider the following restrictions:
  • If you create the expression parameter as a mapping parameter, you cannot validate the default value of the parameter unless the parameter is used as a port expression in a transformation.
  • The mapping fails if the default value of the expression parameter is not valid.
  • The mapping fails if the return value of the expression parameter does not match the data type of the port.

0 COMMENTS

We’d like to hear from you!