Support > Administrator's guide (R7) > Run SpringBatch
ja | en

Spring Batch can be registered in the job scheduler. It can be executed as a time designated job.

Before doing this setting,Prepare job execution accountplease.

When the specified time comes, it reads the contents of the log (system.log) and sends the contents of the log that matches the condition by e-mail.

Figure 1 Job settings
  1. Log on with an account with administrator privileges.
  2. Open the "Job Management" "Job Schedule Search" screen from the menu.
  3. Click the "Register Screen" button to register a new job schedule.
  4. Select "BatchJobLauncher" from the job name."Batch job activation" is displayed in the explanation column below that.
  5. In the job parameter, write the command you want to execute.
  6. Specify scheduleTo do.
  7. Check the "valid" flag.
  8. Enter the account "jobadmin" to run this job.
  9. Register the job schedule.When the specified time is reached, the maintenance mode is switched.

Specify the next job parameter.

Parameters Required Description An example
jobid Specify the identifier (ID) of the job you want to execute.[More ...] Batch1
Param: Parameter name 7.10 Specify the parameters to pass to the script.The character string following "param:" becomes the parameter name. param:targetdate

The execution result of this job is also described in the log file (system.log).

Sending mail settings

Together with the above parameters, "Send job execution result by e-mailPlease set.This will send the contents of the log to the specified e-mail address.

Mail transmission parameter mail: doNotSendEmptyMessagetrueIf you specify, if there is no log, no mail will be sent.

You can temporarily disable the job.

  1. Log on with an account with administrator privileges.
  2. Open the "Job" "Job Schedule Search" screen from the menu.
  3. Search the applicable "Job Schedule" and open the maintenance screen.
  4. Uncheck the "Enabled" flag and save it.
    Figure 2 Disable Job

You can send the job execution result by e-mail.

If you set the job parameter mail: doNotSendEmptyMessage to true, mail will not be sent if the message is empty (not exceeding the threshold value).

Multiple job execution can not be performed.

If you make a job start every minute, if execution of this job is not completed in 1 minute, a new job will not be executed.

Instead of specifying time, you can also run this job now."Execute job immediatelyPlease read.