@Generated(value="jsii-pacmak/1.5.0 (build 46538f8)", date="2020-05-15T23:35:58.924Z") @Stability(value=Experimental) public abstract class State extends Construct implements IChainable
EXPERIMENTAL
| Modifier | Constructor and Description |
|---|---|
protected |
State(Construct scope,
String id,
StateProps props)
EXPERIMENTAL
|
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<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()
EXPERIMENTAL
|
protected String |
getComment()
EXPERIMENTAL
|
protected State |
getDefaultChoice()
EXPERIMENTAL
|
abstract List<INextable> |
getEndStates()
Continuable states of this Chainable.
|
String |
getId()
Descriptive identifier for this chainable.
|
protected String |
getInputPath()
EXPERIMENTAL
|
protected StateGraph |
getIteration()
EXPERIMENTAL
|
protected String |
getOutputPath()
EXPERIMENTAL
|
protected com.fasterxml.jackson.databind.node.ObjectNode |
getParameters()
EXPERIMENTAL
|
protected String |
getResultPath()
EXPERIMENTAL
|
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(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 |
renderRetryCatch()
Render error recovery options in ASL JSON format.
|
protected void |
setDefaultChoice(State value)
EXPERIMENTAL
|
protected void |
setIteration(StateGraph value)
EXPERIMENTAL
|
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, jsiiStaticSetprotected State(software.amazon.jsii.JsiiObjectRef objRef)
protected State(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
protected State(@NotNull
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<State> states)
EXPERIMENTAL
states - This parameter is required.@Stability(value=Experimental) @NotNull public static List<State> findReachableEndStates(@NotNull State start, @Nullable FindStateOptions options)
EXPERIMENTAL
start - This parameter is required.options - @Stability(value=Experimental) @NotNull public static List<State> findReachableEndStates(@NotNull State start)
EXPERIMENTAL
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.
EXPERIMENTAL
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.
EXPERIMENTAL
start - This parameter is required.@Stability(value=Experimental)
public static void prefixStates(@NotNull
IConstruct root,
@NotNull
String prefix)
EXPERIMENTAL
root - This parameter is required.prefix - This parameter is required.@Stability(value=Experimental)
protected void addBranch(@NotNull
StateGraph branch)
EXPERIMENTAL
branch - This parameter is required.@Stability(value=Experimental)
protected void addChoice(@NotNull
Condition condition,
@NotNull
State next)
EXPERIMENTAL
condition - This parameter is required.next - This parameter is required.@Stability(value=Experimental)
protected void addIterator(@NotNull
StateGraph iteration)
EXPERIMENTAL
iteration - This parameter is required.@Stability(value=Experimental)
public void addPrefix(@NotNull
String x)
EXPERIMENTAL
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.
EXPERIMENTAL
graph - This parameter is required.@Stability(value=Experimental)
protected void makeDefault(@NotNull
State def)
EXPERIMENTAL
def - This parameter is required.@Stability(value=Experimental)
protected void makeNext(@NotNull
State next)
EXPERIMENTAL
next - This parameter is required.@Stability(value=Experimental) @NotNull protected Object renderBranches()
EXPERIMENTAL
@Stability(value=Experimental) @NotNull protected Object renderChoices()
EXPERIMENTAL
@Stability(value=Experimental) @NotNull protected Object renderInputOutput()
EXPERIMENTAL
@Stability(value=Experimental) @NotNull protected Object renderIterator()
EXPERIMENTAL
@Stability(value=Experimental) @NotNull protected Object renderNextEnd()
EXPERIMENTAL
@Stability(value=Experimental) @NotNull protected Object renderRetryCatch()
EXPERIMENTAL
@Stability(value=Experimental) @NotNull public abstract com.fasterxml.jackson.databind.node.ObjectNode toStateJson()
EXPERIMENTAL
@Stability(value=Experimental)
protected void whenBoundToGraph(@NotNull
StateGraph graph)
Can be overridden by subclasses.
EXPERIMENTAL
graph - This parameter is required.@Stability(value=Experimental) @NotNull protected List<StateGraph> getBranches()
@Stability(value=Experimental) @NotNull public abstract List<INextable> getEndStates()
EXPERIMENTAL
getEndStates in interface IChainable@Stability(value=Experimental) @NotNull public String getId()
EXPERIMENTAL
getId in interface IChainable@Stability(value=Experimental) @NotNull public State getStartState()
EXPERIMENTAL
getStartState in interface IChainable@Stability(value=Experimental) @NotNull public String getStateId()
EXPERIMENTAL
@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 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 © 2020. All rights reserved.