Rerunnable Service
Overview
The RerunnableServiceWorkEntryExecutor performs the same function as ServiceWorkEntryExecutor, except it handles services that do implicit commits.
Most services perform a complete rollback if an error occurs and allow the tool to restart from that point by re-invoking the service that previously failed. However, there are some exceptions where the service issues commits. If such a case is found, use the rerunnable service and provide an initialization executable, initExec <parameters>, to reset the data before making service calls. This initialization executable can remove any remaining data from previous runs and prepare for resubmission of service requests.
For example, the Payment QuickAdd business service issues commits at various points. If an error occurs, the tool cannot reliably restart the process from the payment call that triggered the error, as that payment might have been partially completed. To restart the process, the initialization executable could be a script that deletes all payment data generated in the previous run, allowing the task to resubmit all payment requests.
Parameters
This executable class accepts the same Parameters in ServiceWorkEntryExecutor with the following additional parameter:
| Parameter | Description |
|---|---|
initExec <parameters> |
Specifies a script executable to be run before the service calls are made. The script can also be used to delete partially converted data from a previous execution when the task is restarted after a failure. |
initExec#n, where n is the mapping sequence. The executable will be invoked for that specific sequence to perform very specific initialization.
For more information on other variables and syntax that can be used, see Common executable features.