...
...
With the Script Function
...
you
...
can execute custom functionalities using JavaScript. It can be used to create processors that run specified operations on the input data. Any syntax error will lead to stream failure.
There are two tabs in the Script configuration: Transform and Flush.
In the Transform tab, enter the executed code for each incoming record/payload . And, and in the Flush tab, enter the code to be executed at the end of the transaction.
See Below is an example of the Script configuration screen:
| Note |
|---|
NoteIn the case of If you have a real-time or unbounded stream, like in the case of , for example, a stream using an HTTP Server, the code in the Flush code tab is not called at all. |
To make JavaScript coding easier, automatic code completion provides you with context-sensitive proposals. Additionally, the The error results in the preview Log tab give provides additional information on any detected issues.
NPM Libraries
The Script Function supports the following npm libraries:
uuid/v4
moment
lodash
- crypto-js
fast-xml-parser
See
...
...
for examples of these npm libraries.
In this section, we will take you through the followingThis section includes:
| Child pages |
|---|