Manage Functions
TapData supports a wide range of functions to facilitate the definition of processing steps, allowing for their use in JavaScript (JS) nodes. Additionally, you can freely define custom functions or import third-party JAR packages to introduce new functions as needed.
Procedure
In the left navigation bar, select Advanced > Function List.
On this page, you can see the functions currently available. For example, click View next to a system function to learn more about it.
If the existing functions do not meet your needs, you can click Create in the upper right corner to define a new function. Click Save once setup is complete.
tipAlternatively, you can click Import and then import functions from the package (which must comply with TapData standards). Subsequently, functions from that JAR package can be used in JS nodes using the general format: function name.method name (specific parameters).
- Code Details: You can write your own function logic here.
- Description: A description of what the custom function does.
- Format: The command format for the custom function, useful for prompting when calling the function.
- Parameter Description: Specific explanations for the supported input parameter types and the return parameter types.
- Return Value: The return value of the custom function.
For custom functions, you can select them to export for backup or share with other team members. You can also import custom functions.