Drag the Data Calculator JavaScript component onto the Design window.
If necessary, link the IN-port of Data Calculator to the OUT-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 OUT-port of Data Calculator, select Assign Structure and select one of these options:
Option |
Action |
---|---|
IN |
Create an OUT-port structure that matches the IN-port structure of the Data Calculator. |
Copy Structure |
Open a window that allows you to apply an existing port structure to the OUT-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 default mapping by order. Select this option to create a set of transformation rules that maps each attribute in the IN-port to a corresponding attribute in the OUT- port. |
No |
Define your own IN-port to OUT-port mappings. Select this option to manually map attributes in the IN-port to a corresponding attribute in the OUT-port. See “Mapping port attributes”. |