Backend Script node
The Backend - Script node allows executing custom code on the backend (server side) during the flow execution.
This node is available in: Authentication, Admin, Self Service, API, Consent, Library, Custom, User Defined
Script configurations
Is the URL of the docker component io-executor-script that runs in the environment and will execute the script.
Example:
http://io-script-executor-id-1:8089/{{flow.domain_id}}/common/script-executor/2.0/Scripts/run
Allows defining custom JavaScript that is executed at backend level (server side). Since the script runs on the server side, it is suitable for handling sensitive data and secure operations.
The Available Node Modules section allows loading external Node.js packages that can be used within the backend script. Packages are retrieved from the public npm registry and made available for use in the script.
The Variable Output Table defines the possible outputs of the node and allows you to create custom outputs that can be used during the flow execution.
Each custom output represents a possible exit path from the node and can be triggered from a script executed inside the node using a callback function.
Callback example from the script: return callback({"output": "next", "data": response)
Attributes can be saved into a variable for reuse by other nodes. See Common Configurations for details.
Default output node
- Failure
Note
By default, the Backend Script node has a Failure exit only. Any other outputs must be defined in the Variable Output Table configuration.
JSON metadata
{
"name": "script_be_v2",
"active": true,
"bundleName": "default-nodes",
"bundleVersion": "1.0",
"nodeName": "ScriptBackEndV2",
"category": "server_side_components",
"deprecated": false,
"displayName": [{
"lang": "en",
"value": "Backend - Script"
}, {
"lang": "it",
"value": "Backend - Script"
}
],
"index": 3,
"inputs": [{
"name": "Input"
}
],
"outputs": [{
"name": "Failure",
"level": "error"
}
],
"allowAdditionalOutputs": true
}