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
Afficher le fichier Open project: SummerBatch/SummerBatch

Méthodes publiques

Méthode 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 .

Méthodes protégées

Méthode 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

Méthode Description
InitializeTransitions ( ) : void

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

Method Details

AfterPropertiesSet() public méthode

Performs post-initialization checks. see IInitializationPostOperations#AfterPropertiesSet .
 
public AfterPropertiesSet ( ) : void
Résultat void

GetName() public méthode

@see IFlow#GetName .
public GetName ( ) : string
Résultat string

GetState() public méthode

@see IFlow#GetState .
public GetState ( string stateName ) : IState
stateName string
Résultat IState

GetStates() public méthode

@see IFlow#GetStates .
public GetStates ( ) : ICollection
Résultat ICollection

IsFlowContinued() protected méthode

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

NextState() protected méthode

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
Résultat IState

Resume() public méthode

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

SimpleFlow() public méthode

Constructor using a name.
public SimpleFlow ( string name ) : NLog
name string
Résultat NLog

Start() public méthode

@see IFlow#Start .
 
public Start ( IFlowExecutor executor ) : FlowExecution
executor IFlowExecutor
Résultat FlowExecution