6.6.4. Status Code → Process End Code Conversion Handler¶
Table of contents
This handler converts the status code of the process result by the subsequent handler to the exit code of the process.
The process flow is as follows.
<dependency> <groupId>com.nablarch.framework</groupId> <artifactId>nablarch-fw-standalone</artifactId> </dependency>
- Configure immediately after Common Launcher
- This handler converts the status code of the process result to the exit code of the process.
Conversion of status code to process exit code is performed according to the following rules.
Use 100 to 199 when specifying the status code in the error process of the application.
|Status code||Process exit code|
|-1 or less||1|
|0 ~ 199||0 ~ 199 (not converted)|
|200 ~ 399||0|
|400 ~ 499 excluding the above||15|
The conversion rule cannot be changed by configuration for this handler. For this reason, a project-specific conversion handler has to be created if the requirements cannot be satisfied by this conversion rule.