Javascript

Javascript transform allows you to define customized transform logic by Javascript code.

Function Template

Javascript transform has following template:

function XX(event) {
/*
// Write your transform code
*/
return event
}
result = XX(event);

Example

Following JS transform converts value of status to an integer.

function transform(event) {
// write your transform code here
event.status = parseInt(event.status)
return event
}
result = transform(event);