Class Transition
- java.lang.Object
-
- io.serverlessworkflow.api.transitions.Transition
-
- All Implemented Interfaces:
Serializable
public class Transition extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Transition()
No args constructor for use in serializationTransition(String nextState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getNextState()
State to transition to next (Required)List<ProduceEvent>
getProduceEvents()
Array of events to be producedboolean
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 producedTransition
withCompensate(boolean compensate)
Transition
withNextState(String nextState)
Transition
withProduceEvents(List<ProduceEvent> produceEvents)
-
-
-
Constructor Detail
-
Transition
public Transition()
No args constructor for use in serialization
-
Transition
public Transition(String nextState)
- Parameters:
nextState
-
-
-
Method Detail
-
getProduceEvents
public List<ProduceEvent> getProduceEvents()
Array of events to be produced
-
setProduceEvents
public void setProduceEvents(List<ProduceEvent> produceEvents)
Array of events to be produced
-
withProduceEvents
public Transition withProduceEvents(List<ProduceEvent> produceEvents)
-
getNextState
public String getNextState()
State to transition to next (Required)
-
setNextState
public void setNextState(String nextState)
State to transition to next (Required)
-
withNextState
public Transition withNextState(String nextState)
-
isCompensate
public boolean isCompensate()
If set to true, triggers workflow compensation before this transition is taken. Default is false
-
setCompensate
public void setCompensate(boolean compensate)
If set to true, triggers workflow compensation before this transition is taken. Default is false
-
withCompensate
public Transition withCompensate(boolean compensate)
-
-