public static final class StateMachine.Builder extends Object
StateMachine.| Modifier and Type | Method and Description |
|---|---|
StateMachine |
build() |
StateMachine.Builder |
comment(String comment)
OPTIONAL.
|
StateMachine.Builder |
startAt(String startAt)
REQUIRED.
|
StateMachine.Builder |
state(String stateName,
State.Builder stateBuilder)
REQUIRED.
|
StateMachine.Builder |
timeoutSeconds(Integer timeoutSeconds)
OPTIONAL.
|
StateMachine.Builder |
version(String version)
OPTIONAL.
|
public StateMachine.Builder comment(String comment)
comment - New comment.public StateMachine.Builder startAt(String startAt)
state(String,
State.Builder).startAt - Name of starting state.public StateMachine.Builder timeoutSeconds(Integer timeoutSeconds)
ErrorCodes.TIMEOUT errortimeoutSeconds - Timeout value.public StateMachine.Builder state(String stateName, State.Builder stateBuilder)
stateName - Name of the statestateBuilder - Instance of State.Builder. Note that
the State
object is not built until the StateMachine is built so any modifications on the state
builder will be reflected in this object.public StateMachine.Builder version(String version)
version - Version value.public StateMachine build()
StateMachine object that can be transformed to JSON via StateMachine.toJson().Copyright © 2019. All rights reserved.