public interface Decider
| Modifier and Type | Method and Description | 
|---|---|
| String | decide(StepExecution[] executions)The decide method sets a new exit status for a job. | 
String decide(StepExecution[] executions) throws Exception
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.
executions - specifies the StepExecution(s) of the preceding 
 element.Exception - is thrown if an error occurs.Copyright © 2017 JBoss by Red Hat. All rights reserved.