SchedulerServices.runBackgroundForm

Runs the specified form immediately in background executing the before form and after form events. Parameters can be passed into the form and these must be form fields declared as URL Parameters.

The scheduledTaskId parameter is used to control logging. If this specifies a non-null value, a scheduled task log is created for each background form execution and can be viewed using the server admin app. If a null value is specified, a scheduled task log is not created. Note that regardless of the value of this parameter, scheduled task logs can be written to the console log by enabling the EbaseScheduledTaskLogger in log4j.xml.

Javascript example:

 var parms = {};
 parms.p1 = fields.p1.value;
 parms.p2 = fields.p2.value;
 parms.date1 = fields.dateField1.value;   //fields of type DATE, pass the millisecond date value
 SchedulerServices.runBackgroundForm("st1", parms, "Test Scheduler");
 

Parameters

java.lang.String  formId,  java.util.Map  formParameters,  java.lang.String  scheduledTaskId,