Class StateSaveExceptionAnalyzer

java.lang.Object
io.nflow.engine.exception.StateSaveExceptionAnalyzer

@Component public class StateSaveExceptionAnalyzer extends Object
State save exception analyzer analyzes exceptions thrown while trying to save workflow state and determines how the exception is handled.
  • Constructor Details

    • StateSaveExceptionAnalyzer

      @Inject public StateSaveExceptionAnalyzer(Environment env)
      Create state save exception analyzer.
      Parameters:
      env - The Spring environment.
  • Method Details

    • analyzeSafely

      public final StateSaveExceptionHandling analyzeSafely(Exception e, int saveRetryCount)
      Analyze the exception.
      Parameters:
      e - The exception to be analyzed.
      saveRetryCount - How many times the saving has been attempted before this attempt.
      Returns:
      How the exception should be handled.
    • analyze

      protected StateSaveExceptionHandling analyze(Exception e, int saveRetryCount)
      Override this to provide custom handling.
      Parameters:
      e - The exception to be analyzed.
      saveRetryCount - How many times the saving has been attempted before this attempt.
      Returns:
      How the exception should be handled.