public class Transition extends Object implements Serializable
| Constructor and Description |
|---|
Transition()
No args constructor for use in serialization
|
Transition(String nextState) |
| Modifier and Type | Method and Description |
|---|---|
String |
getNextState()
State to transition to next
(Required)
|
List<ProduceEvent> |
getProduceEvents()
Array of events to be produced
|
boolean |
isCompensate()
If set to true, triggers workflow compensation before this transition is taken.
|
void |
setCompensate(boolean compensate)
If set to true, triggers workflow compensation before this transition is taken.
|
void |
setNextState(String nextState)
State to transition to next
(Required)
|
void |
setProduceEvents(List<ProduceEvent> produceEvents)
Array of events to be produced
|
Transition |
withCompensate(boolean compensate) |
Transition |
withNextState(String nextState) |
Transition |
withProduceEvents(List<ProduceEvent> produceEvents) |
public Transition()
public Transition(String nextState)
nextState - public List<ProduceEvent> getProduceEvents()
public void setProduceEvents(List<ProduceEvent> produceEvents)
public Transition withProduceEvents(List<ProduceEvent> produceEvents)
public String getNextState()
public void setNextState(String nextState)
public Transition withNextState(String nextState)
public boolean isCompensate()
public void setCompensate(boolean compensate)
public Transition withCompensate(boolean compensate)
Copyright © 2020–2023 CNCF. All rights reserved.