@Generated(value="jsii-pacmak/1.54.0 (build b1b977a)", date="2022-02-19T00:19:34.326Z") @Stability(value=Stable) public abstract class State extends Construct implements IChainable
software.constructs.Construct.Buildersoftware.amazon.jsii.JsiiObject.InitializationModeIChainable.Jsii$DefaultIConstruct.Jsii$Default| Modifier | Constructor and Description |
|---|---|
protected |
State(software.constructs.Construct scope,
String id,
StateProps props) |
protected |
State(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
State(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addBranch(StateGraph branch)
Add a paralle branch to this state.
|
protected void |
addChoice(Condition condition,
State next)
Add a choice branch to this state.
|
protected void |
addIterator(StateGraph iteration)
Add a map iterator to this state.
|
void |
addPrefix(String x)
Add a prefix to the stateId of this state.
|
void |
bindToGraph(StateGraph graph)
Register this state as part of the given graph.
|
static List<INextable> |
filterNextables(List<? extends State> states)
Return only the states that allow chaining from an array of states.
|
static List<State> |
findReachableEndStates(State start)
Find the set of end states states reachable through transitions from the given start state.
|
static List<State> |
findReachableEndStates(State start,
FindStateOptions options)
Find the set of end states states reachable through transitions from the given start state.
|
static List<State> |
findReachableStates(State start)
Find the set of states reachable through transitions from the given start state.
|
static List<State> |
findReachableStates(State start,
FindStateOptions options)
Find the set of states reachable through transitions from the given start state.
|
protected List<StateGraph> |
getBranches() |
protected String |
getComment() |
protected State |
getDefaultChoice() |
abstract List<INextable> |
getEndStates()
Continuable states of this Chainable.
|
String |
getId()
Descriptive identifier for this chainable.
|
protected String |
getInputPath() |
protected StateGraph |
getIteration() |
protected String |
getOutputPath() |
protected com.fasterxml.jackson.databind.node.ObjectNode |
getParameters() |
protected String |
getResultPath() |
protected com.fasterxml.jackson.databind.node.ObjectNode |
getResultSelector() |
State |
getStartState()
First state of this Chainable.
|
String |
getStateId()
Tokenized string that evaluates to the state's ID.
|
protected void |
makeDefault(State def)
Make the indicated state the default choice transition of this state.
|
protected void |
makeNext(State next)
Make the indicated state the default transition of this state.
|
static void |
prefixStates(software.constructs.IConstruct root,
String prefix)
Add a prefix to the stateId of all States found in a construct tree.
|
protected Object |
renderBranches()
Render parallel branches in ASL JSON format.
|
protected Object |
renderChoices()
Render the choices in ASL JSON format.
|
protected Object |
renderInputOutput()
Render InputPath/Parameters/OutputPath in ASL JSON format.
|
protected Object |
renderIterator()
Render map iterator in ASL JSON format.
|
protected Object |
renderNextEnd()
Render the default next state in ASL JSON format.
|
protected Object |
renderResultSelector()
Render ResultSelector in ASL JSON format.
|
protected Object |
renderRetryCatch()
Render error recovery options in ASL JSON format.
|
protected void |
setDefaultChoice(State value) |
protected void |
setIteration(StateGraph value) |
abstract com.fasterxml.jackson.databind.node.ObjectNode |
toStateJson()
Render the state as JSON.
|
protected void |
whenBoundToGraph(StateGraph graph)
Called whenever this state is bound to a graph.
|
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected State(software.amazon.jsii.JsiiObjectRef objRef)
protected State(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
protected State(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
StateProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static List<INextable> filterNextables(@NotNull List<? extends State> states)
states - This parameter is required.@Stability(value=Stable) @NotNull public static List<State> findReachableEndStates(@NotNull State start, @Nullable FindStateOptions options)
start - This parameter is required.options - @Stability(value=Stable) @NotNull public static List<State> findReachableEndStates(@NotNull State start)
start - This parameter is required.@Stability(value=Stable) @NotNull public static List<State> findReachableStates(@NotNull State start, @Nullable FindStateOptions options)
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
start - This parameter is required.options - @Stability(value=Stable) @NotNull public static List<State> findReachableStates(@NotNull State start)
This does not retrieve states from within sub-graphs, such as states within a Parallel state's branch.
start - This parameter is required.@Stability(value=Stable)
public static void prefixStates(@NotNull
software.constructs.IConstruct root,
@NotNull
String prefix)
root - This parameter is required.prefix - This parameter is required.@Stability(value=Stable)
protected void addBranch(@NotNull
StateGraph branch)
branch - This parameter is required.@Stability(value=Stable)
protected void addChoice(@NotNull
Condition condition,
@NotNull
State next)
condition - This parameter is required.next - This parameter is required.@Stability(value=Stable)
protected void addIterator(@NotNull
StateGraph iteration)
iteration - This parameter is required.@Stability(value=Stable)
public void addPrefix(@NotNull
String x)
x - This parameter is required.@Stability(value=Stable)
public void bindToGraph(@NotNull
StateGraph graph)
Don't call this. It will be called automatically when you work with states normally.
graph - This parameter is required.@Stability(value=Stable)
protected void makeDefault(@NotNull
State def)
def - This parameter is required.@Stability(value=Stable)
protected void makeNext(@NotNull
State next)
next - This parameter is required.@Stability(value=Stable) @NotNull protected Object renderBranches()
@Stability(value=Stable) @NotNull protected Object renderChoices()
@Stability(value=Stable) @NotNull protected Object renderInputOutput()
@Stability(value=Stable) @NotNull protected Object renderIterator()
@Stability(value=Stable) @NotNull protected Object renderNextEnd()
@Stability(value=Stable) @NotNull protected Object renderResultSelector()
@Stability(value=Stable) @NotNull protected Object renderRetryCatch()
@Stability(value=Stable) @NotNull public abstract com.fasterxml.jackson.databind.node.ObjectNode toStateJson()
@Stability(value=Stable)
protected void whenBoundToGraph(@NotNull
StateGraph graph)
Can be overridden by subclasses.
graph - This parameter is required.@Stability(value=Stable) @NotNull protected List<StateGraph> getBranches()
@Stability(value=Stable) @NotNull public abstract List<INextable> getEndStates()
getEndStates in interface IChainable@Stability(value=Stable) @NotNull public String getId()
getId in interface IChainable@Stability(value=Stable) @NotNull public State getStartState()
getStartState in interface IChainable@Stability(value=Stable) @NotNull public String getStateId()
@Stability(value=Stable) @Nullable protected String getComment()
@Stability(value=Stable) @Nullable protected String getInputPath()
@Stability(value=Stable) @Nullable protected String getOutputPath()
@Stability(value=Stable) @Nullable protected com.fasterxml.jackson.databind.node.ObjectNode getParameters()
@Stability(value=Stable) @Nullable protected String getResultPath()
@Stability(value=Stable) @Nullable protected com.fasterxml.jackson.databind.node.ObjectNode getResultSelector()
@Stability(value=Stable) @Nullable protected State getDefaultChoice()
@Stability(value=Stable)
protected void setDefaultChoice(@Nullable
State value)
@Stability(value=Stable) @Nullable protected StateGraph getIteration()
@Stability(value=Stable)
protected void setIteration(@Nullable
StateGraph value)
Copyright © 2022. All rights reserved.