public class InjectState extends DefaultState implements Serializable, State
DefaultState.Type| Constructor and Description |
|---|
InjectState()
No args constructor for use in serialization
|
InjectState(String name,
DefaultState.Type type) |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
getData()
JSON object which can be set as states data input and can be manipulated via filters
|
boolean |
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 filters
|
void |
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) |
getCompensatedBy, getEnd, getId, getMetadata, getName, getOnErrors, getStateDataFilter, getTimeouts, getTransition, getType, setCompensatedBy, setEnd, setId, setMetadata, setName, setOnErrors, setStateDataFilter, setTimeouts, setTransition, setTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCompensatedBy, getEnd, getId, getMetadata, getName, getOnErrors, getStateDataFilter, getTimeouts, getTransition, getTypepublic InjectState()
public InjectState(String name, DefaultState.Type type)
name - type - public com.fasterxml.jackson.databind.JsonNode getData()
public void setData(com.fasterxml.jackson.databind.JsonNode data)
public InjectState withData(com.fasterxml.jackson.databind.JsonNode data)
public boolean isUsedForCompensation()
public void setUsedForCompensation(boolean usedForCompensation)
public InjectState withUsedForCompensation(boolean usedForCompensation)
public InjectState withId(String id)
withId in class DefaultStatepublic InjectState withName(String name)
withName in class DefaultStatepublic InjectState withType(DefaultState.Type type)
withType in class DefaultStatepublic InjectState withEnd(End end)
withEnd in class DefaultStatepublic InjectState withStateDataFilter(StateDataFilter stateDataFilter)
withStateDataFilter in class DefaultStatepublic InjectState withMetadata(Map<String,String> metadata)
withMetadata in class DefaultStatepublic InjectState withTransition(Transition transition)
withTransition in class DefaultStatepublic InjectState withOnErrors(List<Error> onErrors)
withOnErrors in class DefaultStatepublic InjectState withCompensatedBy(String compensatedBy)
withCompensatedBy in class DefaultStatepublic InjectState withTimeouts(TimeoutsDefinition timeouts)
withTimeouts in class DefaultStateCopyright © 2020–2023 CNCF. All rights reserved.