Drag the Data Calculator JavaScript component onto the Design window.
Link the IN-port of Data Calculator to the OUT-port of the component that provides the inbound data, if necessary.
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 click the Rule icon in the Properties window. The component window opens and prompts you to assign a default mapping by order.
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 map attributes in the IN-port to a corresponding attribute in the OUT-port individually. See “Mapping port attributes”. |
For more information about mapping options and transformation rules, see “Working with the component window”