Add and configure a Data Calculator JavaScript component.
- Drag the Data Calculator
JavaScript component onto the Design window.
- If necessary, link the input port of Data Calculator
to the output port of the component that provides the inbound data.
- If the Data Calculator component window is open,
click Save to close the window.
- In the Design window, right-click the output port of
Data Calculator, select Assign Structure and select one of these
options:
Option
|
Action
|
IN
|
Create an output port structure that matches
the input port structure of the Data Calculator.
|
Copy Structure
|
Open a window that allows you to apply
an existing port structure to the output port.
|
- In the Design window, double-click Data Calculator
JavaScript, or, in the Properties window, click the Rule icon.
- Select one of these options:
Options
|
Action
|
Yes
|
Create a set of transformation rules
that maps each attribute in the IN-port to a corresponding attribute
in the output port.
|
No
|
Manually map attributes in the input port
to a corresponding attribute in the output port.
|