Class ReversionWorkflowRequestErrorHandler

java.lang.Object
com.broadleafcommerce.sandbox.messaging.completion.error.ReversionWorkflowRequestErrorHandler
All Implemented Interfaces:
WorkflowRequestErrorHandler

public class ReversionWorkflowRequestErrorHandler extends Object implements WorkflowRequestErrorHandler
Author:
Chad Harchar (charchar)
  • Constructor Details

  • Method Details

    • canHandle

      public boolean canHandle(@NonNull @NonNull @NonNull com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion)
      Description copied from interface: WorkflowRequestErrorHandler
      Determines if this handler can handle the given WorkflowRequestCompletion. This is typically done by checking the WorkflowRequestCompletion.getRequestType().
      Specified by:
      canHandle in interface WorkflowRequestErrorHandler
      Parameters:
      completion - a WorkflowRequestCompletion received over the WorkflowRequestCompletionConsumer channel or manually from TransitionErrorEndpoint
      Returns:
      whether this handler can handle errors for the given WorkflowRequestCompletion
    • handle

      public void handle(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion, String id)
      Description copied from interface: WorkflowRequestErrorHandler
      Responsible for any follow-up actions (like cleaning up ChangeSummary states/statuses) required after external microservices have met their responsibilities for a sandbox workflow transition triggered by a TransitionRequest.
      Specified by:
      handle in interface WorkflowRequestErrorHandler
      Parameters:
      completion - a WorkflowRequestCompletion received over the WorkflowRequestCompletionConsumer channel or manually from TransitionErrorEndpoint
      id - the id of the top-most entity to handle the error, typically either ChangeSummary, ChangeSummaryGroup, or ChangeDeploy, depending on the WorkflowRequestCompletion.getRequestType()
    • getSummaryService

      protected ChangeSummaryService<ChangeSummary> getSummaryService()