Class RebasingWorkflowRequestErrorHandler
java.lang.Object
com.broadleafcommerce.sandbox.messaging.completion.error.RebasingWorkflowRequestErrorHandler
- All Implemented Interfaces:
WorkflowRequestErrorHandler
public class RebasingWorkflowRequestErrorHandler
extends Object
implements WorkflowRequestErrorHandler
- Author:
- Chad Harchar (charchar)
-
Constructor Summary
ConstructorsConstructorDescriptionRebasingWorkflowRequestErrorHandler(ChangeSummaryService<ChangeSummary> summaryService) -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(@NonNull com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion) Determines if this handler can handle the givenWorkflowRequestCompletion.protected ChangeSummaryService<ChangeSummary>voidhandle(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion, String id) Responsible for any follow-up actions (like cleaning upChangeSummarystates/statuses) required after external microservices have met their responsibilities for a sandbox workflow transition triggered by aTransitionRequest.
-
Constructor Details
-
RebasingWorkflowRequestErrorHandler
-
-
Method Details
-
canHandle
public boolean canHandle(@NonNull @NonNull @NonNull com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion) Description copied from interface:WorkflowRequestErrorHandlerDetermines if this handler can handle the givenWorkflowRequestCompletion. This is typically done by checking theWorkflowRequestCompletion.getRequestType().- Specified by:
canHandlein interfaceWorkflowRequestErrorHandler- Parameters:
completion- aWorkflowRequestCompletionreceived over theWorkflowRequestCompletionConsumer channelor manually fromTransitionErrorEndpoint- 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:WorkflowRequestErrorHandlerResponsible for any follow-up actions (like cleaning upChangeSummarystates/statuses) required after external microservices have met their responsibilities for a sandbox workflow transition triggered by aTransitionRequest.- Specified by:
handlein interfaceWorkflowRequestErrorHandler- Parameters:
completion- aWorkflowRequestCompletionreceived over theWorkflowRequestCompletionConsumer channelor manually fromTransitionErrorEndpointid- the id of the top-most entity to handle the error, typically eitherChangeSummary,ChangeSummaryGroup, orChangeDeploy, depending on theWorkflowRequestCompletion.getRequestType()
-
getSummaryService
-