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 ContinueAsgetContinueAs()End definition continue asList<ProduceEvent>getProduceEvents()Array of events to be producedbooleanisCompensate()If set to true, triggers workflow compensation when before workflow executin completes.booleanisTerminate()If true, completes all execution flows in the given workflow instancevoidsetCompensate(boolean compensate)If set to true, triggers workflow compensation when before workflow executin completes.voidsetContinueAs(ContinueAs continueAs)End definition continue asvoidsetProduceEvents(List<ProduceEvent> produceEvents)Array of events to be producedvoidsetTerminate(boolean terminate)If true, completes all execution flows in the given workflow instanceEndwithCompensate(boolean compensate)EndwithContinueAs(ContinueAs continueAs)EndwithProduceEvents(List<ProduceEvent> produceEvents)EndwithTerminate(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)
-
getContinueAs
public ContinueAs getContinueAs()
End definition continue as
-
setContinueAs
public void setContinueAs(ContinueAs continueAs)
End definition continue as
-
withContinueAs
public End withContinueAs(ContinueAs continueAs)
-
-