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 StringgetNextState()State to transition to next (Required)List<ProduceEvent>getProduceEvents()Array of events to be producedbooleanisCompensate()If set to true, triggers workflow compensation before this transition is taken.voidsetCompensate(boolean compensate)If set to true, triggers workflow compensation before this transition is taken.voidsetNextState(String nextState)State to transition to next (Required)voidsetProduceEvents(List<ProduceEvent> produceEvents)Array of events to be producedTransitionwithCompensate(boolean compensate)TransitionwithNextState(String nextState)TransitionwithProduceEvents(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)
-
-