@Test public void getMaxSubsequentStateExecutionsReturns100ByDefault() { WorkflowSettings s = new WorkflowSettings.Builder().build(); assertThat(s.getMaxSubsequentStateExecutions(TestWorkflow.State.begin), is(equalTo(100))); }
public int getMaxSubsequentStateExecutions(WorkflowState state) { return maxSubsequentStateExecutionsPerState.getOrDefault(state, maxSubsequentStateExecutions); }
WorkflowSettings extends ModelObject { public int getMaxSubsequentStateExecutions(WorkflowState state) { return maxSubsequentStateExecutionsPerState.getOrDefault(state, maxSubsequentStateExecutions); } }
WorkflowSettings extends ModelObject { public int getMaxSubsequentStateExecutions(WorkflowState state) { return maxSubsequentStateExecutionsPerState.getOrDefault(state, maxSubsequentStateExecutions); } WorkflowSettings(Builder builder); }
WorkflowSettings extends ModelObject { public int getMaxSubsequentStateExecutions(WorkflowState state) { return maxSubsequentStateExecutionsPerState.getOrDefault(state, maxSubsequentStateExecutions); } WorkflowSettings(Builder builder); DateTime getErrorTransitionActivation(int retryCount); DateTime getShortTransitionActivation(); int getMaxSubsequentStateExecutions(WorkflowState state); boolean deleteWorkflowInstanceHistory(); Short getDefaultPriority(); }
WorkflowSettings extends ModelObject { public int getMaxSubsequentStateExecutions(WorkflowState state) { return maxSubsequentStateExecutionsPerState.getOrDefault(state, maxSubsequentStateExecutions); } WorkflowSettings(Builder builder); DateTime getErrorTransitionActivation(int retryCount); DateTime getShortTransitionActivation(); int getMaxSubsequentStateExecutions(WorkflowState state); boolean deleteWorkflowInstanceHistory(); Short getDefaultPriority(); final int minErrorTransitionDelay; final int maxErrorTransitionDelay; final int shortTransitionDelay; final int immediateTransitionDelay; final int maxRetries; final int maxSubsequentStateExecutions; final Map<WorkflowState, Integer> maxSubsequentStateExecutionsPerState; final ReadablePeriod historyDeletableAfter; final BooleanSupplier deleteHistoryCondition; final short defaultPriority; }