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/api/v1/schedules" \ -H "accept: application/json" \ -H "Authorization: bearer $idToken" \ -H "Content-Type: application/json" \ -d "{\"job\":{\"location\":\"$pathToProcess\",\"queueName\":\"DEFAULT\",\"revision\":1,\"startAt\": 0,\"force\":true,\"reportError\":true}}\""
Read more: REST API