You are viewing the RapidMiner Hub documentation for version 9.8 - Check here for latest version
Schedule a process via an external trigger
Sometimes, a RapidMiner process has to be triggered when something external happens:
- A process in a different tool finishes.
- A cron job runs in the operating system.
- Multiple tools are orchestrated by a workflow manager, like Control-M.
- A file is modified.
In those cases, the best way to proceed is to run a script using the REST API.
For example, the following curl
command runs a process immediately:
curl -X POST "http://$RMServerHost/executions/schedules" \ -H "accept: application/json" \ -H "Authorization: bearer $idToken" \ -H "Content-Type: application/json" \ -d "{\"job\":{\"location\":\"$pathToProcess\",\"queueName\":\"DEFAULT\"},\"reportError\":true}\""
Read more: REST API