public class ParallelState extends DefaultState implements Serializable, State
| Modifier and Type | Class and Description |
|---|---|
static class |
ParallelState.CompletionType |
DefaultState.Type| Constructor and Description |
|---|
ParallelState()
No args constructor for use in serialization
|
ParallelState(List<Branch> branches,
String name,
DefaultState.Type type) |
| Modifier and Type | Method and Description |
|---|---|
List<Branch> |
getBranches()
Branch Definitions
(Required)
|
ParallelState.CompletionType |
getCompletionType()
Option types on how to complete branch execution.
|
String |
getNumCompleted()
Used when completionType is set to 'atLeast' to specify the minimum number of branches that must complete before the state will transition.
|
boolean |
isUsedForCompensation()
If true, this state is used to compensate another state.
|
void |
setBranches(List<Branch> branches)
Branch Definitions
(Required)
|
void |
setCompletionType(ParallelState.CompletionType completionType)
Option types on how to complete branch execution.
|
void |
setNumCompleted(String numCompleted)
Used when completionType is set to 'atLeast' to specify the minimum number of branches that must complete before the state will transition.
|
void |
setUsedForCompensation(boolean usedForCompensation)
If true, this state is used to compensate another state.
|
ParallelState |
withBranches(List<Branch> branches) |
ParallelState |
withCompensatedBy(String compensatedBy) |
ParallelState |
withCompletionType(ParallelState.CompletionType completionType) |
ParallelState |
withEnd(End end) |
ParallelState |
withId(String id) |
ParallelState |
withMetadata(Map<String,String> metadata) |
ParallelState |
withName(String name) |
ParallelState |
withNumCompleted(String numCompleted) |
ParallelState |
withOnErrors(List<Error> onErrors) |
ParallelState |
withStateDataFilter(StateDataFilter stateDataFilter) |
ParallelState |
withTimeouts(TimeoutsDefinition timeouts) |
ParallelState |
withTransition(Transition transition) |
ParallelState |
withType(DefaultState.Type type) |
ParallelState |
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 ParallelState()
public ParallelState(List<Branch> branches, String name, DefaultState.Type type)
name - branches - type - public ParallelState withBranches(List<Branch> branches)
public ParallelState.CompletionType getCompletionType()
public void setCompletionType(ParallelState.CompletionType completionType)
public ParallelState withCompletionType(ParallelState.CompletionType completionType)
public String getNumCompleted()
public void setNumCompleted(String numCompleted)
public ParallelState withNumCompleted(String numCompleted)
public boolean isUsedForCompensation()
public void setUsedForCompensation(boolean usedForCompensation)
public ParallelState withUsedForCompensation(boolean usedForCompensation)
public ParallelState withId(String id)
withId in class DefaultStatepublic ParallelState withName(String name)
withName in class DefaultStatepublic ParallelState withType(DefaultState.Type type)
withType in class DefaultStatepublic ParallelState withEnd(End end)
withEnd in class DefaultStatepublic ParallelState withStateDataFilter(StateDataFilter stateDataFilter)
withStateDataFilter in class DefaultStatepublic ParallelState withMetadata(Map<String,String> metadata)
withMetadata in class DefaultStatepublic ParallelState withTransition(Transition transition)
withTransition in class DefaultStatepublic ParallelState withOnErrors(List<Error> onErrors)
withOnErrors in class DefaultStatepublic ParallelState withCompensatedBy(String compensatedBy)
withCompensatedBy in class DefaultStatepublic ParallelState withTimeouts(TimeoutsDefinition timeouts)
withTimeouts in class DefaultStateCopyright © 2020–2023 CNCF. All rights reserved.