Hello,
I am attempting to execute an automation script through a workflow function node.
I added the volume to the docker-compose.yaml file and updated the env file CORREDOR_EXT_SEARCH_PATHS variable file per the documentation. My custom script is appearing successfully in the Corredor Scripts list in the admin area.
However, when I execute my workflow, the function calling my script gives the following error message: 'execution failed: unregistered explicit script. “/client-scripts/system/test/Alert.js:default” '.
The script string is copied directly off the corredor scripts page. Any thoughts as to how to fix this execution failure?
There are a few examples so I am unsure which you’ve copied. Could you paste me the triggers (...) {...} parameter of the script? Here is the documentation regarding automation script execution from a workflow. The main requirement of an automation script is that the trigger parameter returns an on('manual').for('system')
Ee… this should be a server-script, not a client-script; place it in the /server-scripts directory. Client scripts are not executable by the server; they are bundled and passed down to the web application.
Yes. Client scripts are only bundled and served to the appropriate application; no execution can be performed server-side. Server scripts are entirely handled and executed by the Corredor server.