javax.batch.api
Interface Decider


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
 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:

Parameters:
executions - specifies the StepExecution(s) of the preceding element.
Returns:
updated job exit status
Throws:
Exception - is thrown if an error occurs.


Copyright © 2013. All Rights Reserved.