in src/main/java/com/revo/deployr/rbroker/example/controller/FraudController.java [71:91]
public void score(@PathVariable("tasks") int tasks) {
tasks = (tasks == 0) ? 1 : tasks;
log.info("REST:/score/" + tasks + " called.");
for(int i=0; i<tasks;i++) {
try {
/*
* FraudService.buildTask creates an RTask using
* randomly generated demo account data.
*
* FraudService.submit takes that RTask and passes it
* to an instance of RBroker for execution.
*/
fraudService.submit(fraudService.buildTask());
} catch(Exception ex) {
log.warn("FraudController: score ex=" + ex);
}
}
}