public class ForEachState extends DefaultState implements Serializable, State
| Modifier and Type | Class and Description |
|---|---|
static class |
ForEachState.Mode |
DefaultState.Type| Constructor and Description |
|---|
ForEachState()
No args constructor for use in serialization
|
ForEachState(String name,
DefaultState.Type type) |
| Modifier and Type | Method and Description |
|---|---|
List<Action> |
getActions()
Actions to be executed for each of the elements of inputCollection
|
int |
getBatchSize()
Specifies how many iterations may run in parallel at the same time.
|
String |
getInputCollection()
Workflow expression selecting an array element of the states data
|
String |
getIterationParam()
Name of the iteration parameter that can be referenced in actions/workflow.
|
ForEachState.Mode |
getMode()
Specifies how iterations are to be performed (sequentially or in parallel)
|
String |
getOutputCollection()
Workflow expression specifying an array element of the states data to add the results of each iteration
|
boolean |
isUsedForCompensation()
If true, this state is used to compensate another state.
|
void |
setActions(List<Action> actions)
Actions to be executed for each of the elements of inputCollection
|
void |
setBatchSize(int batchSize)
Specifies how many iterations may run in parallel at the same time.
|
void |
setInputCollection(String inputCollection)
Workflow expression selecting an array element of the states data
|
void |
setIterationParam(String iterationParam)
Name of the iteration parameter that can be referenced in actions/workflow.
|
void |
setMode(ForEachState.Mode mode)
Specifies how iterations are to be performed (sequentially or in parallel)
|
void |
setOutputCollection(String outputCollection)
Workflow expression specifying an array element of the states data to add the results of each iteration
|
void |
setUsedForCompensation(boolean usedForCompensation)
If true, this state is used to compensate another state.
|
ForEachState |
withActions(List<Action> actions) |
ForEachState |
withBatchSize(int batchSize) |
ForEachState |
withCompensatedBy(String compensatedBy) |
ForEachState |
withEnd(End end) |
ForEachState |
withId(String id) |
ForEachState |
withInputCollection(String inputCollection) |
ForEachState |
withIterationParam(String iterationParam) |
ForEachState |
withMetadata(Map<String,String> metadata) |
ForEachState |
withMode(ForEachState.Mode mode) |
ForEachState |
withName(String name) |
ForEachState |
withOnErrors(List<Error> onErrors) |
ForEachState |
withOutputCollection(String outputCollection) |
ForEachState |
withStateDataFilter(StateDataFilter stateDataFilter) |
ForEachState |
withTimeouts(TimeoutsDefinition timeouts) |
ForEachState |
withTransition(Transition transition) |
ForEachState |
withType(DefaultState.Type type) |
ForEachState |
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 ForEachState()
public ForEachState(String name, DefaultState.Type type)
name - type - public String getInputCollection()
public void setInputCollection(String inputCollection)
public ForEachState withInputCollection(String inputCollection)
public String getOutputCollection()
public void setOutputCollection(String outputCollection)
public ForEachState withOutputCollection(String outputCollection)
public String getIterationParam()
public void setIterationParam(String iterationParam)
public ForEachState withIterationParam(String iterationParam)
public int getBatchSize()
public void setBatchSize(int batchSize)
public ForEachState withBatchSize(int batchSize)
public List<Action> getActions()
public void setActions(List<Action> actions)
public ForEachState withActions(List<Action> actions)
public boolean isUsedForCompensation()
public void setUsedForCompensation(boolean usedForCompensation)
public ForEachState withUsedForCompensation(boolean usedForCompensation)
public ForEachState.Mode getMode()
public void setMode(ForEachState.Mode mode)
public ForEachState withMode(ForEachState.Mode mode)
public ForEachState withId(String id)
withId in class DefaultStatepublic ForEachState withName(String name)
withName in class DefaultStatepublic ForEachState withType(DefaultState.Type type)
withType in class DefaultStatepublic ForEachState withEnd(End end)
withEnd in class DefaultStatepublic ForEachState withStateDataFilter(StateDataFilter stateDataFilter)
withStateDataFilter in class DefaultStatepublic ForEachState withMetadata(Map<String,String> metadata)
withMetadata in class DefaultStatepublic ForEachState withTransition(Transition transition)
withTransition in class DefaultStatepublic ForEachState withOnErrors(List<Error> onErrors)
withOnErrors in class DefaultStatepublic ForEachState withCompensatedBy(String compensatedBy)
withCompensatedBy in class DefaultStatepublic ForEachState withTimeouts(TimeoutsDefinition timeouts)
withTimeouts in class DefaultStateCopyright © 2020–2023 CNCF. All rights reserved.