@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:48.177Z") @Stability(value=Experimental) public abstract class StateMachineFragment extends software.constructs.Construct implements IChainable
software.amazon.jsii.JsiiObject.InitializationModeIChainable.Jsii$Default| Modifier | Constructor and Description |
|---|---|
protected |
StateMachineFragment(software.constructs.Construct scope,
String id)
Creates a new construct node.
|
protected |
StateMachineFragment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
StateMachineFragment(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
abstract List<INextable> |
getEndStates()
(experimental) The states to chain onto if this fragment is used.
|
String |
getId()
(experimental) Descriptive identifier for this chainable.
|
abstract State |
getStartState()
(experimental) The start state of this state machine fragment.
|
Chain |
next(IChainable next)
(experimental) Continue normal execution with the given state.
|
StateMachineFragment |
prefixStates()
(experimental) Prefix the IDs of all states in this state machine fragment.
|
StateMachineFragment |
prefixStates(String prefix)
(experimental) Prefix the IDs of all states in this state machine fragment.
|
Parallel |
toSingleState()
(experimental) Wrap all states in this state machine fragment up into a single state.
|
Parallel |
toSingleState(SingleStateOptions options)
(experimental) Wrap all states in this state machine fragment up into a single state.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected StateMachineFragment(software.amazon.jsii.JsiiObjectRef objRef)
protected StateMachineFragment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
protected StateMachineFragment(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - The scope in which to define this construct. This parameter is required.id - The scoped construct ID. This parameter is required.@Stability(value=Experimental) @NotNull public Chain next(@NotNull IChainable next)
next - This parameter is required.@Stability(value=Experimental) @NotNull public StateMachineFragment prefixStates(@Nullable String prefix)
Use this to avoid multiple copies of the state machine all having the same state IDs.
prefix - The prefix to add.@Stability(value=Experimental) @NotNull public StateMachineFragment prefixStates()
Use this to avoid multiple copies of the state machine all having the same state IDs.
@Stability(value=Experimental) @NotNull public Parallel toSingleState(@Nullable SingleStateOptions options)
This can be used to add retry or error handling onto this state machine fragment.
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]'.
options - @Stability(value=Experimental) @NotNull public Parallel toSingleState()
This can be used to add retry or error handling onto this state machine fragment.
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]'.
@Stability(value=Experimental) @NotNull public abstract List<INextable> getEndStates()
getEndStates in interface IChainable@Stability(value=Experimental) @NotNull public String getId()
getId in interface IChainable@Stability(value=Experimental) @NotNull public abstract State getStartState()
getStartState in interface IChainableCopyright © 2021. All rights reserved.