EspaƱol
Functions
Advanced users can extend the functionality of the platform writing functions in several supported programming languages.
The following parameters can be defined:
Parameter name | Description | Example value |
---|---|---|
Name of the application | The name of the application. | Demo |
Name of the function | The name of the function. | beforeInsertUpdateCategory |
Language | The programming langauge in which the function is written. | ECMAScript |
Function code | The function code. | (See the examples) |
CRON expression | The function will be triggered based on the cron expression. | |
Enable HTTP endpoint | It enables HTTP endpoint to trigger the function. | False |
Documentation | The function documentation. | |
Actions | The actions that will trigger the function. | beforeInsertUpdateCategory |
Example: A ECMAScript function:
Example: A PL/pgQL function:
Functions can be triggered by different actions.
The following parameters can be defined:
Parameter name | Description | Example value |
---|---|---|
Form | The form to which the ooperations will be associated. | Demo, Category |
Name of the action | The name of the action. | beforeInsertUpdateCategory |
Moment | The moment in which the function will be executed (i.e. BEFORE, AFTER). | BEFORE |
Events | The events to which the action will be associated (i.e. INSERT, UPDATE, DELETE). | INSERT, UPDATE |
Granularity | The granularity for which que action will be executed (i.e. ROW, STATEMENT). | ROW |
Function | The function that will be executed. | Demo, beforeInsertUpdateCategory |
Condition | The condition that will be met in order to execute the function. |
TBW (To be written - incomplete)