public class WorkflowSettings extends ModelObject
| Modifier and Type | Class and Description |
|---|---|
static class |
WorkflowSettings.Builder
Builder for workflow settings.
|
| Modifier and Type | Field and Description |
|---|---|
short |
defaultPriority
Default priority for new workflow instances.
|
BooleanSupplier |
deleteHistoryCondition
Condition to check if workflow instance history should be deleted (unless forced via StateExecution).
|
org.joda.time.ReadablePeriod |
historyDeletableAfter
Delay after which workflow instance history (actions, states) can be deleted from database by nFlow.
|
int |
immediateTransitionDelay
Immediate transition delay.
|
int |
maxErrorTransitionDelay
Maximum delay on execution retry after an error.
|
int |
maxRetries
Maximum retry attempts.
|
int |
maxSubsequentStateExecutions
Maximum number of subsequent state executions before forcing a short transition delay.
|
Map<WorkflowState,Integer> |
maxSubsequentStateExecutionsPerState
Maximum number of subsequent state executions before forcing a short transition delay, per state.
|
int |
minErrorTransitionDelay
Minimum delay on execution retry after an error.
|
int |
shortTransitionDelay
Length of forced delay to break execution of a step that is considered to be busy looping.
|
| Modifier and Type | Method and Description |
|---|---|
protected long |
calculateBinaryBackoffDelay(int retryCount,
long minDelay,
long maxDelay)
Return activation delay based on retry attempt number.
|
boolean |
deleteWorkflowInstanceHistory()
Return true if workflow instance history should be deleted.
|
Short |
getDefaultPriority()
Return default priority for new workflow instances.
|
org.joda.time.DateTime |
getErrorTransitionActivation(int retryCount)
Return next activation time after error.
|
int |
getMaxSubsequentStateExecutions(WorkflowState state)
Return the maximum number of subsequent state executions before forcing a short transition delay.
|
org.joda.time.DateTime |
getShortTransitionActivation()
Return the delay before next activation after detecting a busy loop.
|
equals, hashCode, toStringpublic final int minErrorTransitionDelay
public final int maxErrorTransitionDelay
public final int shortTransitionDelay
public final int immediateTransitionDelay
public final int maxRetries
public final int maxSubsequentStateExecutions
public final Map<WorkflowState,Integer> maxSubsequentStateExecutionsPerState
public final org.joda.time.ReadablePeriod historyDeletableAfter
public final BooleanSupplier deleteHistoryCondition
public final short defaultPriority
public org.joda.time.DateTime getErrorTransitionActivation(int retryCount)
retryCount - Number of retry attemps.protected long calculateBinaryBackoffDelay(int retryCount,
long minDelay,
long maxDelay)
retryCount - Retry attempt number.minDelay - Minimum retry delay.maxDelay - Maximum retry delay.public org.joda.time.DateTime getShortTransitionActivation()
public int getMaxSubsequentStateExecutions(WorkflowState state)
state - The state for which the limit is checked.public boolean deleteWorkflowInstanceHistory()
public Short getDefaultPriority()
Copyright © 2014–2020 Nitor Creations. All rights reserved.