Class WorkflowStateOptions

java.lang.Object
io.iworkflow.core.WorkflowStateOptions
All Implemented Interfaces:
Cloneable

public class WorkflowStateOptions extends Object implements Cloneable
  • Constructor Details

    • WorkflowStateOptions

      public WorkflowStateOptions()
  • Method Details

    • getSearchAttributesLoadingPolicy

      public PersistenceLoadingPolicy getSearchAttributesLoadingPolicy()
    • setSearchAttributesLoadingPolicy

      public WorkflowStateOptions setSearchAttributesLoadingPolicy(PersistenceLoadingPolicy searchAttributesLoadingPolicy)
    • getWaitUntilApiSearchAttributesLoadingPolicy

      public PersistenceLoadingPolicy getWaitUntilApiSearchAttributesLoadingPolicy()
    • setWaitUntilApiSearchAttributesLoadingPolicy

      public WorkflowStateOptions setWaitUntilApiSearchAttributesLoadingPolicy(PersistenceLoadingPolicy waitUntilApiSearchAttributesLoadingPolicy)
    • getExecuteApiSearchAttributesLoadingPolicy

      public PersistenceLoadingPolicy getExecuteApiSearchAttributesLoadingPolicy()
    • setExecuteApiSearchAttributesLoadingPolicy

      public WorkflowStateOptions setExecuteApiSearchAttributesLoadingPolicy(PersistenceLoadingPolicy executeApiSearchAttributesLoadingPolicy)
    • getDataAttributesLoadingPolicy

      public PersistenceLoadingPolicy getDataAttributesLoadingPolicy()
    • setDataAttributesLoadingPolicy

      public WorkflowStateOptions setDataAttributesLoadingPolicy(PersistenceLoadingPolicy dataAttributesLoadingPolicy)
    • getWaitUntilApiDataAttributesLoadingPolicy

      public PersistenceLoadingPolicy getWaitUntilApiDataAttributesLoadingPolicy()
    • setWaitUntilApiDataAttributesLoadingPolicy

      public WorkflowStateOptions setWaitUntilApiDataAttributesLoadingPolicy(PersistenceLoadingPolicy waitUntilApiDataAttributesLoadingPolicy)
    • getExecuteApiDataAttributesLoadingPolicy

      public PersistenceLoadingPolicy getExecuteApiDataAttributesLoadingPolicy()
    • setExecuteApiDataAttributesLoadingPolicy

      public WorkflowStateOptions setExecuteApiDataAttributesLoadingPolicy(PersistenceLoadingPolicy executeApiDataAttributesLoadingPolicy)
    • getWaitUntilApiTimeoutSeconds

      public Integer getWaitUntilApiTimeoutSeconds()
    • setWaitUntilApiTimeoutSeconds

      public WorkflowStateOptions setWaitUntilApiTimeoutSeconds(Integer waitUntilApiTimeoutSeconds)
    • getExecuteApiTimeoutSeconds

      public Integer getExecuteApiTimeoutSeconds()
    • setExecuteApiTimeoutSeconds

      public WorkflowStateOptions setExecuteApiTimeoutSeconds(Integer executeApiTimeoutSeconds)
    • getWaitUntilApiRetryPolicy

      public RetryPolicy getWaitUntilApiRetryPolicy()
    • setWaitUntilApiRetryPolicy

      public WorkflowStateOptions setWaitUntilApiRetryPolicy(RetryPolicy waitUntilApiRetryPolicy)
    • getExecuteApiRetryPolicy

      public RetryPolicy getExecuteApiRetryPolicy()
    • setExecuteApiRetryPolicy

      public WorkflowStateOptions setExecuteApiRetryPolicy(RetryPolicy executeApiRetryPolicy)
    • getProceedToExecuteWhenWaitUntilRetryExhausted

      public Boolean getProceedToExecuteWhenWaitUntilRetryExhausted()
    • setProceedToExecuteWhenWaitUntilRetryExhausted

      public WorkflowStateOptions setProceedToExecuteWhenWaitUntilRetryExhausted(Boolean proceed)
      By default, workflow would fail after waitUntil API retry exhausted. This policy is to allow proceeding to the execute API after waitUntil API exhausted all retries. This is useful for some advanced use cases like SAGA pattern. RetryPolicy is required to be set with maximumAttempts or maximumAttemptsDurationSeconds for waitUntil API.
      NOTE: execute API will use commandResults to check whether the waitUntil has succeeded or not.
      See more in wiki
      Parameters:
      proceed - true to proceed to the execute API after waitUntil API exhausted all retries; false to fail.
      Returns:
      this
    • getProceedToStateWhenExecuteRetryExhausted

      public Class<? extends WorkflowState> getProceedToStateWhenExecuteRetryExhausted()
    • getProceedToStateWhenExecuteRetryExhaustedStateOptions

      public WorkflowStateOptions getProceedToStateWhenExecuteRetryExhaustedStateOptions()
    • setProceedToStateWhenExecuteRetryExhausted

      public WorkflowStateOptions setProceedToStateWhenExecuteRetryExhausted(Class<? extends WorkflowState> proceedToStateWhenExecuteRetryExhausted)
      By default, workflow would fail after execute API retry exhausted. Set the state to proceed to the specified state after the execute API exhausted all retries This is useful for some advanced use cases like SAGA pattern. RetryPolicy is required to be set with maximumAttempts or maximumAttemptsDurationSeconds for execute API.
      Note that the failure handling state will take the same input as the failed from state.
      Parameters:
      proceedToStateWhenExecuteRetryExhausted - the state to proceed to after the execute API exhausted all retries
      Returns:
      this
    • setProceedToStateWhenExecuteRetryExhausted

      public WorkflowStateOptions setProceedToStateWhenExecuteRetryExhausted(Class<? extends WorkflowState> proceedToStateWhenExecuteRetryExhausted, WorkflowStateOptions stateOptionsOverride)
      By default, workflow would fail after execute API retry exhausted. Set the state to proceed to the specified state after the execute API exhausted all retries This is useful for some advanced use cases like SAGA pattern. RetryPolicy is required to be set with maximumAttempts or maximumAttemptsDurationSeconds for execute API.
      Note that the failure handling state will take the same input as the failed from state.
      Parameters:
      proceedToStateWhenExecuteRetryExhausted - the state to proceed to after the execute API exhausted all retries
      stateOptionsOverride - the state options override to use when proceeding to the configured state after execute API retry is exhausted
      Returns:
      this
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • clone

      public WorkflowStateOptions clone()
      Overrides:
      clone in class Object