Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • As for every JavaScript function the return statement can be used to leave the processOrder() method prematurely.
  • If the return statement is not used then the job terminates successfully when leaving the processOrder() method.

Terminating Job successfully with warning due to return code

JavaScript Jobs can be configured to continue in case of warnings and to send a JS7 - NotificationNotifications:

  • JavaScript Jobs can be configured to consider a number of return codes that raise warnings.
  • Any return codes will not fail the job but will result in a notification if specified with the job configuration.

...

Optionally notifications for warnings are sent by mail if configured by JS7 - NotificationNotifications.

Terminating Job successfully with warning due to output to stderr

...