C# Class Summer.Batch.Core.Job.Flow.Support.SimpleFlow

An IFlow that branches conditionally depending on the exit status of the last IState. The input parameters are the state transitions (in no particular order). The start state name can be specified explicitly (and must exist in the set of transitions), or computed from the existing transitions, if unambiguous.
Inheritance: IFlow, IInitializationPostOperations
Mostrar archivo Open project: SummerBatch/SummerBatch

Public Methods

Method Description
AfterPropertiesSet ( ) : void

Performs post-initialization checks. see IInitializationPostOperations#AfterPropertiesSet .

GetName ( ) : string

@see IFlow#GetName .

GetState ( string stateName ) : IState

@see IFlow#GetState .

GetStates ( ) : ICollection

@see IFlow#GetStates .

Resume ( string stateName, IFlowExecutor executor ) : FlowExecution

@see IFlow#Resume .

SimpleFlow ( string name ) : NLog

Constructor using a name.

Start ( IFlowExecutor executor ) : FlowExecution

@see IFlow#Start .

Protected Methods

Method Description
IsFlowContinued ( IState state, FlowExecutionStatus status, StepExecution stepExecution ) : bool

Tests if flow is continued.

NextState ( string stateName, FlowExecutionStatus status, StepExecution stepExecution ) : IState

Returns the next IStep (or null if this is the end).

Private Methods

Method Description
InitializeTransitions ( ) : void

Analyse the transitions provided and generate all the information needed to execute the flow.

Method Details

AfterPropertiesSet() public method

Performs post-initialization checks. see IInitializationPostOperations#AfterPropertiesSet .
 
public AfterPropertiesSet ( ) : void
return void

GetName() public method

@see IFlow#GetName .
public GetName ( ) : string
return string

GetState() public method

@see IFlow#GetState .
public GetState ( string stateName ) : IState
stateName string
return IState

GetStates() public method

@see IFlow#GetStates .
public GetStates ( ) : ICollection
return ICollection

IsFlowContinued() protected method

Tests if flow is continued.
protected IsFlowContinued ( IState state, FlowExecutionStatus status, StepExecution stepExecution ) : bool
state IState
status FlowExecutionStatus
stepExecution StepExecution
return bool

NextState() protected method

Returns the next IStep (or null if this is the end).
 
protected NextState ( string stateName, FlowExecutionStatus status, StepExecution stepExecution ) : IState
stateName string
status FlowExecutionStatus
stepExecution StepExecution
return IState

Resume() public method

@see IFlow#Resume .
 
public Resume ( string stateName, IFlowExecutor executor ) : FlowExecution
stateName string
executor IFlowExecutor
return FlowExecution

SimpleFlow() public method

Constructor using a name.
public SimpleFlow ( string name ) : NLog
name string
return NLog

Start() public method

@see IFlow#Start .
 
public Start ( IFlowExecutor executor ) : FlowExecution
executor IFlowExecutor
return FlowExecution