You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

ITM/IMAS releases of Kepler provide two, built from scratch, actors for record manipulation.

1. 1. Setting values inside Record Token using recordset actor

recordset actor allows you to set/modify values inside Record Token. It works following way:

  1. If there is no field inside Record Token, it will add it into Record Token

    { a = 1 } -> inputRecord -+
                              |
                               >- { a = 1, b = 2 }
                              |
    { b = 2 } -> b           -+
  2. If there is a field with given name inside Record Token, it will be replaced

    { a = 1, b = 1 } -> inputRecord -+
                                     |
                                      >- { a = 1, b = 2 }
                                     |
    { b = 2 }        -> b           -+
  3. If there is a field with given name inside Record Token, the type of field may change if you pass different type in the input

    { a = 1, b = 1 }  -> inputRecord -+
                                      |
                                       >- { a = 1, b = { c = 2 } }
                                      |
    { b = { c = 2 } } -> b           -+

 

 

recordget

 

This actor allows to get values from the RecordToken

  • No labels