JavaScript Node extension is another extension provided by ONEWEB along with the platform. It can be used to execute JavaScript code on the data within Business objects.
Similar to the Excel Utility Extensions, to use JavaScript Node Extension, the user needs to first install the extension to their application. Please follow the steps as described in section 6.4.16. to install and enable the JavaScript node to your application. Once the extension is installed and enabled, you can use it just like any other node in the diagram palette.
Users can configure the node to execute the Javascript login in the Extension properties. The user should follow the same function syntax to add the logic inside the Editor window. for e.g. function excute(input) {}
Data mapping for the JavaScript node is as follows. All the BO to be passed to the JavaScript function needs to be added under the input variable as shown below. Users can look up the BO using the lookup option.
The output data from the JavaScript node can be mapped as shown below. The output data will be under the output variable object and the name of the variable will be answered.