@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:38.429Z") @Stability(value=Experimental) public abstract class State extends software.constructs.Construct implements IChainable
software.amazon.jsii.JsiiObject.InitializationModeIChainable.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)
(experimental) Add a paralle branch to this state.
|
protected void |
addChoice(Condition condition,
State next)
(experimental) Add a choice branch to this state.
|
protected void |
addIterator(StateGraph iteration)
(experimental) Add a map iterator to this state.
|
void |
addPrefix(String x)
(experimental) Add a prefix to the stateId of this state.
|
void |
bindToGraph(StateGraph graph)
(experimental) Register this state as part of the given graph.
|
static List<INextable> |
filterNextables(List<? extends State> states)
(experimental) Return only the states that allow chaining from an array of states.
|
static List<State> |
findReachableEndStates(State start)
(experimental) Find the set of end states states reachable through transitions from the given start state.
|
static List<State> |
findReachableEndStates(State start,
FindStateOptions options)
(experimental) Find the set of end states states reachable through transitions from the given start state.
|
static List<State> |
findReachableStates(State start)
(experimental) Find the set of states reachable through transitions from the given start state.
|
static List<State> |
findReachableStates(State start,
FindStateOptions options)
(experimental) 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()
(experimental) Continuable states of this Chainable.
|
String |
getId()
(experimental) 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()
(experimental) First state of this Chainable.
|
String |
getStateId()
(experimental) Tokenized string that evaluates to the state's ID.
|
protected void |
makeDefault(State def)
(experimental) Make the indicated state the default choice transition of this state.
|
protected void |
makeNext(State next)
(experimental) Make the indicated state the default transition of this state.
|
static void |
prefixStates(software.constructs.IConstruct root,
String prefix)
(experimental) Add a prefix to the stateId of all States found in a construct tree.
|
protected Object |
renderBranches()
(experimental) Render parallel branches in ASL JSON format.
|
protected Object |
renderChoices()
(experimental) Render the choices in ASL JSON format.
|
protected Object |
renderInputOutput()
(experimental) Render InputPath/Parameters/OutputPath in ASL JSON format.
|
protected Object |
renderIterator()
(experimental) Render map iterator in ASL JSON format.
|
protected Object |
renderNextEnd()
(experimental) Render the default next state in ASL JSON format.
|
protected Object |
renderResultSelector()
(experimental) Render ResultSelector in ASL JSON format.
|
protected Object |
renderRetryCatch()
(experimental) 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()
(experimental) Render the state as JSON.
|
protected List<String> |
validateState()
(experimental) Allows the state to validate itself.
|
protected void |
whenBoundToGraph(StateGraph graph)
(experimental) Called whenever this state is bound to a graph.
|
jsiiAsyncCall, 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=Experimental)
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=Experimental) @NotNull public static List<INextable> filterNextables(@NotNull List<? extends State> states)
states - This parameter is required.@Stability(value=Experimental) @NotNull public static List<State> findReachableEndStates(@NotNull State start, @Nullable FindStateOptions options)
start - This parameter is required.options - @Stability(value=Experimental) @NotNull public static List<State> findReachableEndStates(@NotNull State start)
start - This parameter is required.@Stability(value=Experimental) @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=Experimental) @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=Experimental)
public static void prefixStates(@NotNull
software.constructs.IConstruct root,
@NotNull
String prefix)
root - This parameter is required.prefix - This parameter is required.@Stability(value=Experimental)
protected void addBranch(@NotNull
StateGraph branch)
branch - This parameter is required.@Stability(value=Experimental)
protected void addChoice(@NotNull
Condition condition,
@NotNull
State next)
condition - This parameter is required.next - This parameter is required.@Stability(value=Experimental)
protected void addIterator(@NotNull
StateGraph iteration)
iteration - This parameter is required.@Stability(value=Experimental)
public void addPrefix(@NotNull
String x)
x - This parameter is required.@Stability(value=Experimental)
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=Experimental)
protected void makeDefault(@NotNull
State def)
def - This parameter is required.@Stability(value=Experimental)
protected void makeNext(@NotNull
State next)
next - This parameter is required.@Stability(value=Experimental) @NotNull protected Object renderBranches()
@Stability(value=Experimental) @NotNull protected Object renderChoices()
@Stability(value=Experimental) @NotNull protected Object renderInputOutput()
@Stability(value=Experimental) @NotNull protected Object renderIterator()
@Stability(value=Experimental) @NotNull protected Object renderNextEnd()
@Stability(value=Experimental) @NotNull protected Object renderResultSelector()
@Stability(value=Experimental) @NotNull protected Object renderRetryCatch()
@Stability(value=Experimental) @NotNull public abstract com.fasterxml.jackson.databind.node.ObjectNode toStateJson()
@Stability(value=Experimental) @NotNull protected List<String> validateState()
@Stability(value=Experimental)
protected void whenBoundToGraph(@NotNull
StateGraph graph)
Can be overridden by subclasses.
graph - This parameter is required.@Stability(value=Experimental) @NotNull protected List<StateGraph> getBranches()
@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 State getStartState()
getStartState in interface IChainable@Stability(value=Experimental) @NotNull public String getStateId()
@Stability(value=Experimental) @Nullable protected String getComment()
@Stability(value=Experimental) @Nullable protected String getInputPath()
@Stability(value=Experimental) @Nullable protected String getOutputPath()
@Stability(value=Experimental) @Nullable protected com.fasterxml.jackson.databind.node.ObjectNode getParameters()
@Stability(value=Experimental) @Nullable protected String getResultPath()
@Stability(value=Experimental) @Nullable protected com.fasterxml.jackson.databind.node.ObjectNode getResultSelector()
@Stability(value=Experimental) @Nullable protected State getDefaultChoice()
@Stability(value=Experimental)
protected void setDefaultChoice(@Nullable
State value)
@Stability(value=Experimental) @Nullable protected StateGraph getIteration()
@Stability(value=Experimental)
protected void setIteration(@Nullable
StateGraph value)
Copyright © 2021. All rights reserved.