Interface WorkflowRequestErrorHandler
- All Known Implementing Classes:
DeploymentWorkflowRequestErrorHandler,PromotionWorkflowRequestErrorHandler,RebasingWorkflowRequestErrorHandler,RejectionWorkflowRequestErrorHandler,ReversionWorkflowRequestErrorHandler
public interface WorkflowRequestErrorHandler
Classes implementing this interface handle error resolution actions (like cleaning up
ChangeSummary states/statuses) for specific types of transition completions. Typically
this is determined by the WorkflowRequestCompletion.getRequestType().-
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion) Determines if this handler can handle the givenWorkflowRequestCompletion.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.
-
Method Details
-
canHandle
boolean canHandle(@NonNull com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion) Determines if this handler can handle the givenWorkflowRequestCompletion. This is typically done by checking theWorkflowRequestCompletion.getRequestType().- Parameters:
completion- aWorkflowRequestCompletionreceived over theWorkflowRequestCompletionConsumer channelor manually fromTransitionErrorEndpoint- Returns:
- whether this handler can handle errors for the given
WorkflowRequestCompletion
-
handle
void handle(@NonNull 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.- 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()
-