Class WorkflowExecTimeout
- java.lang.Object
-
- io.serverlessworkflow.api.timeouts.WorkflowExecTimeout
-
- All Implemented Interfaces:
Serializable
@Generated("jsonschema2pojo") public class WorkflowExecTimeout extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WorkflowExecTimeout()
No args constructor for use in serializationWorkflowExecTimeout(String duration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDuration()
Workflow execution timeout duration (ISO 8601 duration format).String
getRunBefore()
Name of a workflow state to be executed before workflow instance is terminatedboolean
isInterrupt()
If `false`, workflow instance is allowed to finish current execution.void
setDuration(String duration)
Workflow execution timeout duration (ISO 8601 duration format).void
setInterrupt(boolean interrupt)
If `false`, workflow instance is allowed to finish current execution.void
setRunBefore(String runBefore)
Name of a workflow state to be executed before workflow instance is terminatedWorkflowExecTimeout
withDuration(String duration)
WorkflowExecTimeout
withInterrupt(boolean interrupt)
WorkflowExecTimeout
withRunBefore(String runBefore)
-
-
-
Constructor Detail
-
WorkflowExecTimeout
public WorkflowExecTimeout()
No args constructor for use in serialization
-
WorkflowExecTimeout
public WorkflowExecTimeout(String duration)
- Parameters:
duration
- Workflow execution timeout duration (ISO 8601 duration format). If not specified should be 'unlimited'.
-
-
Method Detail
-
getDuration
public String getDuration()
Workflow execution timeout duration (ISO 8601 duration format). If not specified should be 'unlimited' (Required)
-
setDuration
public void setDuration(String duration)
Workflow execution timeout duration (ISO 8601 duration format). If not specified should be 'unlimited' (Required)
-
withDuration
public WorkflowExecTimeout withDuration(String duration)
-
isInterrupt
public boolean isInterrupt()
If `false`, workflow instance is allowed to finish current execution. If `true`, current workflow execution is abrupted.
-
setInterrupt
public void setInterrupt(boolean interrupt)
If `false`, workflow instance is allowed to finish current execution. If `true`, current workflow execution is abrupted.
-
withInterrupt
public WorkflowExecTimeout withInterrupt(boolean interrupt)
-
getRunBefore
public String getRunBefore()
Name of a workflow state to be executed before workflow instance is terminated
-
setRunBefore
public void setRunBefore(String runBefore)
Name of a workflow state to be executed before workflow instance is terminated
-
withRunBefore
public WorkflowExecTimeout withRunBefore(String runBefore)
-
-