Skip to content
Steve Cote edited this page Apr 23, 2017 · 1 revision

This is a transform tool which sets the value of a frame to a particular value.

The minimum configuration for a Set transform is the name of the field to transform and the value to set in that field:

"Set": { "Name": "empty", "Value": "" },

In the above the empty field in the working frame will be set to an empty string.

The value is evaluated as a template so any variable substitutions supported by the Symbol Table can be placed in the value text:

"Set": { "Name": "ContactName", "Value": "[#Context.working(usr_last_name)#],[#Context.working(usr_first_name)#]" },

The above sets the ContactName field to the value of the usr_last_name field in the working frame followed by a comma then the value of the usr_first_name field in the working frame. This effectively concatenates two fields into a third. This third field can subsequently be used in other transforms and phases of the transformation.

All transforms support boolean Expressions which dictate if they run or not:

"Set": { "Name": "terminator", "Condition": "islast", "Value": "2", "Default": "1" }

The above sets the terminator field to the default value of "1" unless the boolean condition is true. If so, then the value of the field will be "2". the isLast is a literal function supported by the B

Home

  1. Concepts
  2. Features
  3. Transform Engine
  4. Quick Start
  5. Configuration
  6. Secrets Vault
  7. Readers
  8. Writers
    • List of Writers
    • Custom Writers
  9. Filters
    • Accept
    • Reject
    • Custom Filters
  10. Tasks
    • List of Tasks
    • Custom Tasks
  11. Validators
    • List of Validators
    • Custom Validators
  12. Listeners
    • List of Listeners
    • Custom Listeners
  13. Transforms
    • List of Transforms
    • Custom Transforms
  14. Mappers
  15. Context
  16. Databases
  17. Templates
  18. Logging
  19. Encryption
  20. Usage
  21. Expressions
  22. Examples
Clone this wiki locally