Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Drag and drop the Set/Transformation attribute construct from the palette onto the canvas.

  2. On the properties panel, you can now Set Attributes or Transform Attributes.

  3. To Set Attribute:

    1. Click on ‘+Set attribute’.

    2. Now, on the Set Attribute control, configure the details.

    3. Select the attribute to be set.

      1. Select the scope of the attribute, i.e., Global, Local, or User Custom.

      2. Select the Attribute from the dropdown.

      3. Now add the Expression to indicate what type of value is to be assigned to the attribute. You could use a Value, JSON Path, indirect JSON, XPath, Indirect Xpath or Script to the set the value.

      4. Add an expression that holds to assign value.

        Image Removed

        Image Added

      5. When using a script, add the script that returns a value to be set to the attribute. Use the following syntax to use existing attributes in the script:

        • contextAttributes.getAttribute("@{global.global1}"),

        • contextAttributes.getAttribute("@{local.local1}")

          image-20240619-192756.pngImage Added
  4. To Transform value:

    1. Click on ‘+Transform’.

    2. Now, on the Transform Attribute control, configure the details.

    3. Select the attribute to be set after transforming a value.

      1. Select the scope of the attribute, i.e., Global, Local, or User Custom.

      2. Select the Attribute from the dropdown.

      3. Now select the Transformation function.

      4. Select the Function Mode.

      5. Based on the Function mode, provide information to the input parameters. For more details on how to use the Transformation function, refer to Using Transformation Function.

  5. You can add as many ‘Set and transform’ attributes as required. The functions are executed in the sequence in which these are added.

...