-
public interface Decider
A Decider receives control as part of a decision element in a job. It is used to direct execution flow during job processing. It returns an exit status that updates the current job execution's exit status. This exit status value also directs the execution transition based on next, end, stop, fail child elements configured on the same decision element as the decider.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description String
decide(StepExecution[] executions)
The decide method sets a new exit status for a job.
-
-
-
Method Detail
-
decide
String decide(StepExecution[] executions) throws Exception
The decide method sets a new exit status for a job. It receives an array of StepExecution objects as input. These StepExecution objects represent the execution element that transitions to this decider as follows:- Step
- Split
- Flow
When the transition is from a step, the decide method receives the StepExecution corresponding to the step as input.
When the transition is from a split, the decide method receives a StepExecution from each flow defined to the split as input.
When the transition is from a flow, the decide method receives a StepExecution corresponding to the last execution element that completed in the flow. This will be a single StepExecution if the last element was a step and multiple StepExecutions if the last element was a split.
- Parameters:
executions
- specifies the StepExecution(s) of the preceding element.- Returns:
- updated job exit status
- Throws:
Exception
- is thrown if an error occurs.
-
-
Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/batch/api/Decider.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.