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
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.JsonNodegetData()JSON object which can be set as states data input and can be manipulated via filtersbooleanisUsedForCompensation()If true, this state is used to compensate another state.voidsetData(com.fasterxml.jackson.databind.JsonNode data)JSON object which can be set as states data input and can be manipulated via filtersvoidsetUsedForCompensation(boolean usedForCompensation)If true, this state is used to compensate another state.InjectStatewithCompensatedBy(String compensatedBy)InjectStatewithData(com.fasterxml.jackson.databind.JsonNode data)InjectStatewithEnd(End end)InjectStatewithId(String id)InjectStatewithMetadata(Map<String,String> metadata)InjectStatewithName(String name)InjectStatewithOnErrors(List<Error> onErrors)InjectStatewithStateDataFilter(StateDataFilter stateDataFilter)InjectStatewithTimeouts(TimeoutsDefinition timeouts)InjectStatewithTransition(Transition transition)InjectStatewithType(DefaultState.Type type)InjectStatewithUsedForCompensation(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-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:
withIdin classDefaultState
-
withName
public InjectState withName(String name)
- Overrides:
withNamein classDefaultState
-
withType
public InjectState withType(DefaultState.Type type)
- Overrides:
withTypein classDefaultState
-
withEnd
public InjectState withEnd(End end)
- Overrides:
withEndin classDefaultState
-
withStateDataFilter
public InjectState withStateDataFilter(StateDataFilter stateDataFilter)
- Overrides:
withStateDataFilterin classDefaultState
-
withMetadata
public InjectState withMetadata(Map<String,String> metadata)
- Overrides:
withMetadatain classDefaultState
-
withTransition
public InjectState withTransition(Transition transition)
- Overrides:
withTransitionin classDefaultState
-
withOnErrors
public InjectState withOnErrors(List<Error> onErrors)
- Overrides:
withOnErrorsin classDefaultState
-
withCompensatedBy
public InjectState withCompensatedBy(String compensatedBy)
- Overrides:
withCompensatedByin classDefaultState
-
withTimeouts
public InjectState withTimeouts(TimeoutsDefinition timeouts)
- Overrides:
withTimeoutsin classDefaultState
-
-