Package io.serverlessworkflow.api.repeat
Class Repeat
- java.lang.Object
-
- io.serverlessworkflow.api.repeat.Repeat
-
- All Implemented Interfaces:
Serializable
public class Repeat extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Repeat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetExpression()Expression evaluated against SubFlow state data.intgetMax()Sets the maximum amount of repeat executionsList<String>getStopOnEvents()List referencing defined consumed workflow events.booleanisCheckBefore()If true, the expression is evaluated before each repeat execution, if false the expression is evaluated after each repeat executionbooleanisContinueOnError()If true, repeats executions in a case unhandled errors propagate from the sub-workflow to this statevoidsetCheckBefore(boolean checkBefore)If true, the expression is evaluated before each repeat execution, if false the expression is evaluated after each repeat executionvoidsetContinueOnError(boolean continueOnError)If true, repeats executions in a case unhandled errors propagate from the sub-workflow to this statevoidsetExpression(String expression)Expression evaluated against SubFlow state data.voidsetMax(int max)Sets the maximum amount of repeat executionsvoidsetStopOnEvents(List<String> stopOnEvents)List referencing defined consumed workflow events.RepeatwithCheckBefore(boolean checkBefore)RepeatwithContinueOnError(boolean continueOnError)RepeatwithExpression(String expression)RepeatwithMax(int max)RepeatwithStopOnEvents(List<String> stopOnEvents)
-
-
-
Method Detail
-
getExpression
public String getExpression()
Expression evaluated against SubFlow state data. SubFlow will repeat execution as long as this expression is true or until the max property count is reached
-
setExpression
public void setExpression(String expression)
Expression evaluated against SubFlow state data. SubFlow will repeat execution as long as this expression is true or until the max property count is reached
-
isCheckBefore
public boolean isCheckBefore()
If true, the expression is evaluated before each repeat execution, if false the expression is evaluated after each repeat execution
-
setCheckBefore
public void setCheckBefore(boolean checkBefore)
If true, the expression is evaluated before each repeat execution, if false the expression is evaluated after each repeat execution
-
withCheckBefore
public Repeat withCheckBefore(boolean checkBefore)
-
getMax
public int getMax()
Sets the maximum amount of repeat executions
-
setMax
public void setMax(int max)
Sets the maximum amount of repeat executions
-
withMax
public Repeat withMax(int max)
-
isContinueOnError
public boolean isContinueOnError()
If true, repeats executions in a case unhandled errors propagate from the sub-workflow to this state
-
setContinueOnError
public void setContinueOnError(boolean continueOnError)
If true, repeats executions in a case unhandled errors propagate from the sub-workflow to this state
-
withContinueOnError
public Repeat withContinueOnError(boolean continueOnError)
-
getStopOnEvents
public List<String> getStopOnEvents()
List referencing defined consumed workflow events. SubFlow will repeat execution until one of the defined events is consumed, or until the max property count is reached
-
setStopOnEvents
public void setStopOnEvents(List<String> stopOnEvents)
List referencing defined consumed workflow events. SubFlow will repeat execution until one of the defined events is consumed, or until the max property count is reached
-
-