Skip to content

Transform Using Javascript

Description

This activity transforms the data from previous activities based on a user-specified javascript snippet. The transformation allows users to filter, aggregate, and manipulate data using Javascript syntax.

Input

Data only

Output

Transformed data

Configuration Fields

Column Map Set of column names and the curresponding javascript snippet .

Include Original If enabled: Retains the original input columns with the output column else gives just the output column.


Sample Input

EmployeeIDNameDepartmentSalaryJoinDateSecretCode
101John DoeHR500002020-01-151234abcd
102Jane SmithIT700002019-03-105678efgh
103Alice JohnsonFinance600002021-06-259101ijkl
104Bob WilliamsMarketing550002018-09-121213mnop
105Emma BrownSales650002022-02-201415qrst

Sample Configuration

alt text

Sample Output

EmployeeIDNameDepartmentSalaryJoinDateSecretCodeExperience
101John DoeHR500002020-01-151234abcd5
102Jane SmithIT700002019-03-105678efgh5
103Alice JohnsonFinance600002021-06-259101ijkl3
104Bob WilliamsMarketing550002018-09-121213mnop6
105Emma BrownSales650002022-02-201415qrst2