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 String
getExpression()
Expression evaluated against SubFlow state data.int
getMax()
Sets the maximum amount of repeat executionsList<String>
getStopOnEvents()
List referencing defined consumed workflow events.boolean
isCheckBefore()
If true, the expression is evaluated before each repeat execution, if false the expression is evaluated after each repeat executionboolean
isContinueOnError()
If true, repeats executions in a case unhandled errors propagate from the sub-workflow to this statevoid
setCheckBefore(boolean checkBefore)
If true, the expression is evaluated before each repeat execution, if false the expression is evaluated after each repeat executionvoid
setContinueOnError(boolean continueOnError)
If true, repeats executions in a case unhandled errors propagate from the sub-workflow to this statevoid
setExpression(String expression)
Expression evaluated against SubFlow state data.void
setMax(int max)
Sets the maximum amount of repeat executionsvoid
setStopOnEvents(List<String> stopOnEvents)
List referencing defined consumed workflow events.Repeat
withCheckBefore(boolean checkBefore)
Repeat
withContinueOnError(boolean continueOnError)
Repeat
withExpression(String expression)
Repeat
withMax(int max)
Repeat
withStopOnEvents(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
-
-