- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2017 02:56 PM
Hello everyone.
I have a Business Rule, and I want to run it periodically, to validate an expiration date on a record, the BR works properly, but because of the nature of BRs I have to either update or insert the form, for it to trigger, I read that we could run it from an scheduled job, but I haven't found the way to set the relation between them.
var now = gs.endOfYesterday();
var vigencia = current.u_fecha_fin; //expiration dateif(vigencia < now){
current.u_hrs_vencidas = current.u_hrs_restantes;
current.u_hrs_restantes = 0;
current.u_activo = 'true';
gs.addInfoMessage("TEST");
}
Could anyone please help me find the best way to do this?
Thanks in advance and regards!.
Solved! Go to Solution.