////////////////////////////////////////
//web/WEB-INF/efw/event/myBatchEvent.js
////////////////////////////////////////
var myBatchEvent={};
myBatchEvent.paramsFormat = {
"sysDate" : "format:yyyy/MM/dd;display-name:sysDate;"
};
myBatchEvent.fire = function ( params ) {
//return;
//return { "param" : params.sysDate };
return (new Batch())
.echo("hello world!")
.exit(1);
};
The event variable must be the same as the event file name. In the sample, it is "myBatchEvent".
Same as Web Event.
Same as Web Event.
The event return must be void, an instance of Batch, or anything that can be converted to JSON.