Basic scripting
Variables/Properties
Retrieving configuration properties
Syntax:
getMeta(path?: string): any
path - Optional. Returns all properties if path not specified.
Example
getMeta('props.username');Storing data inside context object
Syntax:
setCtx(path: string, value: any)
Examples
1. setCtx('isValid', true);
2. setCtx('statusCode', 200);
3. setCtx('name', 'abc');
4. setCtx('emp', {
id: 1,
name: 'xyz'
});Retrieving data from the context object
Syntax:
getCtx(path?: string)
path - Optional. Returns entire context object if path not specified.
Examples
Retrieving current object data inside the loop
Syntax:
getCurrentCtx(path?: string): any
path - Optional. Returns entire current object if path not specified.
Examples
Retrieving data inside the data mapping
Syntax:
getInput(path?: string): any
path - Optional. Returns entire object if path not specified.
Examples
Last updated
Was this helpful?