Class 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 Detail

      • StateSaveExceptionAnalyzer

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

      • 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.