Package io.serverlessworkflow.api.states
Class InjectState
- java.lang.Object
-
- io.serverlessworkflow.api.states.DefaultState
-
- io.serverlessworkflow.api.states.InjectState
-
- All Implemented Interfaces:
State
,Serializable
@Generated("jsonschema2pojo") public class InjectState extends DefaultState implements Serializable, State
Set up and inject the state's data input to data output. Does not perform any actions- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.serverlessworkflow.api.states.DefaultState
DefaultState.Type
-
-
Constructor Summary
Constructors Constructor Description InjectState()
No args constructor for use in serializationInjectState(String name, DefaultState.Type type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
getData()
JSON object which can be set as states data input and can be manipulated via filtersboolean
isUsedForCompensation()
If true, this state is used to compensate another state.void
setData(com.fasterxml.jackson.databind.JsonNode data)
JSON object which can be set as states data input and can be manipulated via filtersvoid
setUsedForCompensation(boolean usedForCompensation)
If true, this state is used to compensate another state.InjectState
withCompensatedBy(String compensatedBy)
InjectState
withData(com.fasterxml.jackson.databind.JsonNode data)
InjectState
withEnd(End end)
InjectState
withId(String id)
InjectState
withMetadata(Map<String,String> metadata)
InjectState
withName(String name)
InjectState
withOnErrors(List<Error> onErrors)
InjectState
withStateDataFilter(StateDataFilter stateDataFilter)
InjectState
withTimeouts(TimeoutsDefinition timeouts)
InjectState
withTransition(Transition transition)
InjectState
withType(DefaultState.Type type)
InjectState
withUsedForCompensation(boolean usedForCompensation)
-
Methods inherited from class io.serverlessworkflow.api.states.DefaultState
getCompensatedBy, getEnd, getId, getMetadata, getName, getOnErrors, getStateDataFilter, getTimeouts, getTransition, getType, setCompensatedBy, setEnd, setId, setMetadata, setName, setOnErrors, setStateDataFilter, setTimeouts, setTransition, setType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.serverlessworkflow.api.interfaces.State
getCompensatedBy, getEnd, getId, getMetadata, getName, getOnErrors, getStateDataFilter, getTimeouts, getTransition, getType
-
-
-
-
Constructor Detail
-
InjectState
public InjectState()
No args constructor for use in serialization
-
InjectState
public InjectState(String name, DefaultState.Type type)
- Parameters:
name
- Unique name of the state.type
- State type.
-
-
Method Detail
-
getData
public com.fasterxml.jackson.databind.JsonNode getData()
JSON object which can be set as states data input and can be manipulated via filters
-
setData
public void setData(com.fasterxml.jackson.databind.JsonNode data)
JSON object which can be set as states data input and can be manipulated via filters
-
withData
public InjectState withData(com.fasterxml.jackson.databind.JsonNode data)
-
isUsedForCompensation
public boolean isUsedForCompensation()
If true, this state is used to compensate another state. Default is false
-
setUsedForCompensation
public void setUsedForCompensation(boolean usedForCompensation)
If true, this state is used to compensate another state. Default is false
-
withUsedForCompensation
public InjectState withUsedForCompensation(boolean usedForCompensation)
-
withId
public InjectState withId(String id)
- Overrides:
withId
in classDefaultState
-
withName
public InjectState withName(String name)
- Overrides:
withName
in classDefaultState
-
withType
public InjectState withType(DefaultState.Type type)
- Overrides:
withType
in classDefaultState
-
withEnd
public InjectState withEnd(End end)
- Overrides:
withEnd
in classDefaultState
-
withStateDataFilter
public InjectState withStateDataFilter(StateDataFilter stateDataFilter)
- Overrides:
withStateDataFilter
in classDefaultState
-
withMetadata
public InjectState withMetadata(Map<String,String> metadata)
- Overrides:
withMetadata
in classDefaultState
-
withTransition
public InjectState withTransition(Transition transition)
- Overrides:
withTransition
in classDefaultState
-
withOnErrors
public InjectState withOnErrors(List<Error> onErrors)
- Overrides:
withOnErrors
in classDefaultState
-
withCompensatedBy
public InjectState withCompensatedBy(String compensatedBy)
- Overrides:
withCompensatedBy
in classDefaultState
-
withTimeouts
public InjectState withTimeouts(TimeoutsDefinition timeouts)
- Overrides:
withTimeouts
in classDefaultState
-
-