You are viewing the RapidMiner Server documentation for version 9.7 -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 theREST API. For example, the following旋度
command runs a process immediately:
旋度-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\",\"revision\":1,\"startAt\": 0,\"force\":true,\"reportError\":true}}\""
Read more:REST API