@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:38.421Z") @Stability(value=Experimental) public class Chain extends software.amazon.jsii.JsiiObject implements IChainable
A Chain has a start and zero or more chainable ends. If there are zero ends, calling next() on the Chain will fail.
software.amazon.jsii.JsiiObject.InitializationModeIChainable.Jsii$Default, IChainable.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Chain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Chain(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static Chain |
custom(State startState,
List<? extends INextable> endStates,
IChainable lastAdded)
(experimental) Make a Chain with specific start and end states, and a last-added Chainable.
|
List<INextable> |
getEndStates()
(experimental) The chainable end state(s) of this chain.
|
String |
getId()
(experimental) Identify this Chain.
|
State |
getStartState()
(experimental) The start state of this chain.
|
Chain |
next(IChainable next)
(experimental) Continue normal execution with the given state.
|
static Chain |
sequence(IChainable start,
IChainable next)
(experimental) Make a Chain with the start from one chain and the ends from another.
|
static Chain |
start(IChainable state)
(experimental) Begin a new Chain from one chainable.
|
Parallel |
toSingleState(String id)
(experimental) Return a single state that encompasses all states in the chain.
|
Parallel |
toSingleState(String id,
ParallelProps props)
(experimental) Return a single state that encompasses all states in the chain.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Chain(software.amazon.jsii.JsiiObjectRef objRef)
protected Chain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static Chain custom(@NotNull State startState, @NotNull List<? extends INextable> endStates, @NotNull IChainable lastAdded)
startState - This parameter is required.endStates - This parameter is required.lastAdded - This parameter is required.@Stability(value=Experimental) @NotNull public static Chain sequence(@NotNull IChainable start, @NotNull IChainable next)
start - This parameter is required.next - This parameter is required.@Stability(value=Experimental) @NotNull public static Chain start(@NotNull IChainable state)
state - This parameter is required.@Stability(value=Experimental) @NotNull public Chain next(@NotNull IChainable next)
next - This parameter is required.@Stability(value=Experimental) @NotNull public Parallel toSingleState(@NotNull String id, @Nullable ParallelProps props)
This can be used to add error handling to a sequence of states.
Be aware that this changes the result of the inner state machine to be an array with the result of the state machine in it. Adjust your paths accordingly. For example, change 'outputPath' to '$[0]'.
id - This parameter is required.props - @Stability(value=Experimental) @NotNull public Parallel toSingleState(@NotNull String id)
This can be used to add error handling to a sequence of states.
Be aware that this changes the result of the inner state machine to be an array with the result of the state machine in it. Adjust your paths accordingly. For example, change 'outputPath' to '$[0]'.
id - This parameter is required.@Stability(value=Experimental) @NotNull public List<INextable> getEndStates()
getEndStates in interface IChainable@Stability(value=Experimental) @NotNull public String getId()
getId in interface IChainable@Stability(value=Experimental) @NotNull public State getStartState()
getStartState in interface IChainableCopyright © 2021. All rights reserved.