Files
oneuptime/Worker/FeatureSet/Workflow/Docs/ComponentDocumentation/JavaScript.md
Nawaz Dhandala 3cbe443862 Refactor workflow service and API components
- Removed workflow service from docker-compose files.
- Updated environment configuration to remove workflow port.
- Implemented new ComponentCodeAPI, ManualAPI, and WorkflowAPI for handling workflow operations.
- Created QueueWorkflow service for managing workflow queue operations.
- Developed RunWorkflow service to execute workflows with improved error handling and logging.
- Added component metadata loading utility for dynamic component management.
- Introduced documentation for JavaScript and Webhook components.
- Enhanced overall structure and organization of workflow feature set.
2026-03-04 13:39:25 +00:00

499 B

This trigger lets you run custom JavaScript in your workflow.


// You can access any arguments by

args['your-argument']

// to return a value simply, 

return yourValue;

Things to note:

  • Code execution timeout is set to 5 seconds. If your code takes longer than this, we recommend using your own server. Send request from this workflow to your server.

  • You can use axios module. If you need access to more modules, please create an issue on GitHub and we will look into it.