Package io.serverlessworkflow.api.end
Class End
- java.lang.Object
-
- io.serverlessworkflow.api.end.End
-
- All Implemented Interfaces:
Serializable
public class End extends Object implements Serializable
State end definition- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description End()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ProduceEvent>
getProduceEvents()
Array of events to be producedboolean
isCompensate()
If set to true, triggers workflow compensation when before workflow executin completes.boolean
isTerminate()
If true, completes all execution flows in the given workflow instancevoid
setCompensate(boolean compensate)
If set to true, triggers workflow compensation when before workflow executin completes.void
setProduceEvents(List<ProduceEvent> produceEvents)
Array of events to be producedvoid
setTerminate(boolean terminate)
If true, completes all execution flows in the given workflow instanceEnd
withCompensate(boolean compensate)
End
withProduceEvents(List<ProduceEvent> produceEvents)
End
withTerminate(boolean terminate)
-
-
-
Method Detail
-
isTerminate
public boolean isTerminate()
If true, completes all execution flows in the given workflow instance
-
setTerminate
public void setTerminate(boolean terminate)
If true, completes all execution flows in the given workflow instance
-
withTerminate
public End withTerminate(boolean terminate)
-
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 End withProduceEvents(List<ProduceEvent> produceEvents)
-
isCompensate
public boolean isCompensate()
If set to true, triggers workflow compensation when before workflow executin completes. Default is false
-
setCompensate
public void setCompensate(boolean compensate)
If set to true, triggers workflow compensation when before workflow executin completes. Default is false
-
withCompensate
public End withCompensate(boolean compensate)
-
-