Versions Compared

Key

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

...

  1. Getting single value from recordget can be done by specifying element's name as output port

    Code Block
                                      +- // -> { a = 1, b = 1 }       // you can always get original record via "//" port
                                      |
    { a = 1, b = 2 }  -> inputRecord -+
                                      |
                                      +- b  -> 2                      // we get value of element "b"
    
  2. Getting multiple values can be done by specifying multiple names

    Code Block
                                      +- // -> { a = 1, b = 1 }       // you can always get original record via "//" port
                                      |
    { a = 1, b = 2 }  -> inputRecord -+- a  -> 1                      // this time, we get also value of element "a"
                                      |
                                      +- b  -> 2                      // we get value of element "b"
  3. You can use nested names to get values from the nested parts of Record Token

    Code Block
                                              +- //   -> { a = 1, b = { c = 3 } }       // you can always get original record via "//" port
                                              |
    { a = 1, b = { c = 3 } }  -> inputRecord -+- a    -> 1                              // this time, we get also value of element "a"
                                              |
                                              +- b    -> { c = 3 }                      // this time, we get a record from b
                                              |
                                              +- b/c  -> 3                               // and here, we are accessing element b.c by specifying full path
                                                                                        // to nested element

...

In Kepler you have two ways of generating Record Token. You can use either Record Assembler (with empty input) or Constant actor with "emptyRecord()" value inside

4. Sample workflows

You can download sample workflows here: