Package io.serverlessworkflow.api.states
Class DefaultState
- java.lang.Object
-
- io.serverlessworkflow.api.states.DefaultState
-
- All Implemented Interfaces:
State
,Serializable
- Direct Known Subclasses:
CallbackState
,DelayState
,EventState
,ForEachState
,InjectState
,OperationState
,ParallelState
,SubflowState
,SwitchState
public class DefaultState extends Object implements Serializable, State
Default State- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultState.Type
-
Constructor Summary
Constructors Constructor Description DefaultState()
No args constructor for use in serializationDefaultState(String name, DefaultState.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCompensatedBy()
Unique Name of a workflow state which is responsible for compensation of this stateString
getDataInputSchema()
URI to JSON Schema that state data input adheres toString
getDataOutputSchema()
URI to JSON Schema that state data output adheres toEnd
getEnd()
State end definitionString
getId()
State unique identifierMap<String,String>
getMetadata()
MetadataString
getName()
Unique name of the state (Required)List<Error>
getOnErrors()
State error handling definitionsStart
getStart()
State start definitionStateDataFilter
getStateDataFilter()
Transition
getTransition()
DefaultState.Type
getType()
State type (Required)void
setCompensatedBy(String compensatedBy)
Unique Name of a workflow state which is responsible for compensation of this statevoid
setDataInputSchema(String dataInputSchema)
URI to JSON Schema that state data input adheres tovoid
setDataOutputSchema(String dataOutputSchema)
URI to JSON Schema that state data output adheres tovoid
setEnd(End end)
State end definitionvoid
setId(String id)
State unique identifiervoid
setMetadata(Map<String,String> metadata)
Metadatavoid
setName(String name)
Unique name of the state (Required)void
setOnErrors(List<Error> onErrors)
State error handling definitionsvoid
setStart(Start start)
State start definitionvoid
setStateDataFilter(StateDataFilter stateDataFilter)
void
setTransition(Transition transition)
void
setType(DefaultState.Type type)
State type (Required)DefaultState
withCompensatedBy(String compensatedBy)
DefaultState
withDataInputSchema(String dataInputSchema)
DefaultState
withDataOutputSchema(String dataOutputSchema)
DefaultState
withEnd(End end)
DefaultState
withId(String id)
DefaultState
withMetadata(Map<String,String> metadata)
DefaultState
withName(String name)
DefaultState
withOnErrors(List<Error> onErrors)
DefaultState
withStart(Start start)
DefaultState
withStateDataFilter(StateDataFilter stateDataFilter)
DefaultState
withTransition(Transition transition)
DefaultState
withType(DefaultState.Type type)
-
-
-
Constructor Detail
-
DefaultState
public DefaultState()
No args constructor for use in serialization
-
DefaultState
public DefaultState(String name, DefaultState.Type type)
- Parameters:
name
-type
-
-
-
Method Detail
-
setId
public void setId(String id)
State unique identifier
-
withId
public DefaultState withId(String id)
-
getName
public String getName()
Unique name of the state (Required)
-
setName
public void setName(String name)
Unique name of the state (Required)
-
withName
public DefaultState withName(String name)
-
getType
public DefaultState.Type getType()
State type (Required)
-
setType
public void setType(DefaultState.Type type)
State type (Required)
-
withType
public DefaultState withType(DefaultState.Type type)
-
setStart
public void setStart(Start start)
State start definition
-
withStart
public DefaultState withStart(Start start)
-
setEnd
public void setEnd(End end)
State end definition
-
withEnd
public DefaultState withEnd(End end)
-
getStateDataFilter
public StateDataFilter getStateDataFilter()
- Specified by:
getStateDataFilter
in interfaceState
-
setStateDataFilter
public void setStateDataFilter(StateDataFilter stateDataFilter)
-
withStateDataFilter
public DefaultState withStateDataFilter(StateDataFilter stateDataFilter)
-
getMetadata
public Map<String,String> getMetadata()
Metadata- Specified by:
getMetadata
in interfaceState
-
withMetadata
public DefaultState withMetadata(Map<String,String> metadata)
-
getTransition
public Transition getTransition()
- Specified by:
getTransition
in interfaceState
-
setTransition
public void setTransition(Transition transition)
-
withTransition
public DefaultState withTransition(Transition transition)
-
getDataInputSchema
public String getDataInputSchema()
URI to JSON Schema that state data input adheres to- Specified by:
getDataInputSchema
in interfaceState
-
setDataInputSchema
public void setDataInputSchema(String dataInputSchema)
URI to JSON Schema that state data input adheres to
-
withDataInputSchema
public DefaultState withDataInputSchema(String dataInputSchema)
-
getDataOutputSchema
public String getDataOutputSchema()
URI to JSON Schema that state data output adheres to- Specified by:
getDataOutputSchema
in interfaceState
-
setDataOutputSchema
public void setDataOutputSchema(String dataOutputSchema)
URI to JSON Schema that state data output adheres to
-
withDataOutputSchema
public DefaultState withDataOutputSchema(String dataOutputSchema)
-
getOnErrors
public List<Error> getOnErrors()
State error handling definitions- Specified by:
getOnErrors
in interfaceState
-
withOnErrors
public DefaultState withOnErrors(List<Error> onErrors)
-
getCompensatedBy
public String getCompensatedBy()
Unique Name of a workflow state which is responsible for compensation of this state- Specified by:
getCompensatedBy
in interfaceState
-
setCompensatedBy
public void setCompensatedBy(String compensatedBy)
Unique Name of a workflow state which is responsible for compensation of this state
-
withCompensatedBy
public DefaultState withCompensatedBy(String compensatedBy)
-
-