////////////////////////////////////////
//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 same to the event file name. In the sample, it is "myBatchEvent". Same to Web Event. Same to Web Event. The event return must be void or an instance of Batch or anything can be changed to JSON.