Scheduled Rule

Scheduled rules are like cron jobs, you can have these rules defined in the platform with a CRON like scheduling syntax. The platform's scheduler module will automatically invoke these rules at the exact scheduled time.

Example

A simple scheduled rule to fetch the Bitcoin price

try{
  
    def res = rest.get("https://api.coindesk.com/v1/bpi/currentprice.json").asString().getBody();
    
    log.info("%s", res);
  
}catch(Exception ex){
    log.error(ex);
}

Worth Seeing