問題文
A Batch Job has two steps. The second step should only run for records that failed in the first step, so that a compensating action can be taken. What makes the second step behave that way?
選択肢
- The step's accept policy, set so that only records which already carry a failure are taken into it.
- A filter expression on the step that tests an error variable which the first step sets for each of the records it could not process.
- An error handler on the step, which redirects the records that failed earlier into it as soon as the step begins to run its processors.
- The order of the steps alone, because a Batch Job always sends records that failed in one step to the next step and sends the successful ones straight to the reporting phase so that compensation logic can be placed at the end of the chain.