You can configure an expression parameter that defines the lookup condition. An expression parameter contains a complete expression that you create in an expression editor. You can define a mapping parameter to override the expression parameter at run time.
If you specify a lookup condition using a parameter, you can browse for an expression parameter or you can create a parameter.
The following image shows where to configure an expression parameter for the Lookup condition:
To create a parameter, click
New
. Define a name for the parameter and edit the default value. The expression parameter default value is the full expression to define the lookup condition. You can use generated ports, dynamic ports, and port selectors in the expression.
When you create the expression, the lookup column is always the first value and the input column is the second value.
For example, you create the following lookup condition in an expression parameter:
CustomerID_IN = C_CUSTKEY
CustomerID_IN
is the lookup column.
C_CUSTKEY
is the input column.
The following image shows the lookup expression in the expression editor: