Value object representing a potential transition from one IState to another. The originating IState name and the next IState to execute are linked by a pattern for the ExitStatus::ExitCode exit code of an execution of the originating IState.
More...
|
bool | Matches (string status) |
| Check if the provided status matches the pattern, signalling that the next State should be executed. More...
|
|
bool | IsEnd () |
| Is this state the last ? More...
|
|
override string | ToString () |
| ToString override More...
|
|
Value object representing a potential transition from one IState to another. The originating IState name and the next IState to execute are linked by a pattern for the ExitStatus::ExitCode exit code of an execution of the originating IState.
static StateTransition Summer.Batch.Core.Job.Flow.Support.StateTransition.CreateEndStateTransition |
( |
IState |
state | ) |
|
|
static |
Create a new end state StateTransition specification. This transition explicitly goes unconditionally to an end state (i.e. no more executions).
- Parameters
-
state | the IState used to generate the outcome for this transition |
- Returns
static StateTransition Summer.Batch.Core.Job.Flow.Support.StateTransition.CreateEndStateTransition |
( |
IState |
state, |
|
|
string |
pattern |
|
) |
| |
|
static |
Create a new end state StateTransition specification. This transition explicitly goes to an end state (i.e. no more processing) if the outcome matches the pattern.
- Parameters
-
state | the IState used to generate the outcome for this transition |
pattern | the pattern to match in the exit status of the IState |
- Returns
static StateTransition Summer.Batch.Core.Job.Flow.Support.StateTransition.CreateStateTransition |
( |
IState |
state, |
|
|
string |
next |
|
) |
| |
|
static |
Create a new state IStateTransition specification with a wildcard pattern that matches all outcomes.
- Parameters
-
state | the IState used to generate the outcome for this transition |
next | the name of the next IState to execute |
- Returns
static StateTransition Summer.Batch.Core.Job.Flow.Support.StateTransition.CreateStateTransition |
( |
IState |
state, |
|
|
string |
pattern, |
|
|
string |
next |
|
) |
| |
|
static |
Create a new StateTransition specification from one IState to another (by name).
- Parameters
-
state | the IState used to generate the outcome for this transition |
pattern | the pattern to match in the exit status of the IState |
next | the name of the next IState to execute |
- Returns
bool Summer.Batch.Core.Job.Flow.Support.StateTransition.IsEnd |
( |
| ) |
|
Is this state the last ?
- Returns
bool Summer.Batch.Core.Job.Flow.Support.StateTransition.Matches |
( |
string |
status | ) |
|
Check if the provided status matches the pattern, signalling that the next State should be executed.
- Parameters
-
- Returns
Convenience method to switch the origin and destination of a transition, creating a new instance.
- Parameters
-
stateTransition | an existing state transition |
state | the new state for the origin |
next | the new name for the destination |
- Returns
override string Summer.Batch.Core.Job.Flow.Support.StateTransition.ToString |
( |
| ) |
|
ToString override
- Returns
string Summer.Batch.Core.Job.Flow.Support.StateTransition.Next |
|
get |
Next state name property.
string Summer.Batch.Core.Job.Flow.Support.StateTransition.Pattern |
|
get |
IState Summer.Batch.Core.Job.Flow.Support.StateTransition.State |
|
get |
The documentation for this class was generated from the following file:
- Summer.Batch.Core/Core/Job/Flow/Support/StateTransition.cs