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 TypeMethodDescriptionboolean
canHandle
(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion) Determines if this handler can handle the givenWorkflowRequestCompletion
.void
handle
(com.broadleafcommerce.data.tracking.core.transition.WorkflowRequestCompletion completion, String id) Responsible for any follow-up actions (like cleaning upChangeSummary
states/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
- aWorkflowRequestCompletion
received over theWorkflowRequestCompletionConsumer channel
or 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 upChangeSummary
states/statuses) required after external microservices have met their responsibilities for a sandbox workflow transition triggered by aTransitionRequest
.- Parameters:
completion
- aWorkflowRequestCompletion
received over theWorkflowRequestCompletionConsumer channel
or manually fromTransitionErrorEndpoint
id
- the id of the top-most entity to handle the error, typically eitherChangeSummary
,ChangeSummaryGroup
, orChangeDeploy
, depending on theWorkflowRequestCompletion.getRequestType()
-