/// <summary> /// Handles the exceptions that may be thrown during process workflow and returns a corresponding failure result /// </summary> /// <param name="e">The exception raised during process execution</param> /// <returns>A failed process execution result, modelling the caught error</returns> protected virtual ProcessResult OnHandleException(Exception e) { return(ProcessResult.Fail(ProcessingErrorCodes.UnspecifiedError)); }
/// <summary> /// Does any post-processing work and returns the post-processing result /// </summary> /// <returns>The process post-processing result</returns> protected virtual ProcessResult OnPostProcessing() { return(ProcessResult.Success()); }