Configuring a Data Calculator JavaScript component

  1. Drag the Data Calculator JavaScript component onto the Design window.

  2. If necessary, link the IN-port of Data Calculator to the OUT-port of the component that provides the inbound data.

  3. If the Data Calculator component window is open, click Save to close the window.

  4. 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.

  5. In the Design window, double-click Data Calculator JavaScript, or, in the Properties window, click the Rule icon.

  6. 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”.