Class TransitionListener
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.messaging.TransitionListener
-
public class TransitionListener extends Object
Listen forWorkflowTransitionRequests
to come in through the various sandbox message channels (i.e.,PromotionConsumer
,DeploymentConsumer
,RejectionConsumer
, andReversionConsumer
) in order to delegate to the list of preconconfigured bean forTransitionHandlers
. This will execute anyTransitionHandlerCustomizer
as a post construct.- Author:
- Chad Harchar (charchar)
-
-
Field Summary
Fields Modifier and Type Field Description protected List<TransitionHandlerCustomizer>
customizers
protected List<TransitionHandler>
transitionHandlers
-
Constructor Summary
Constructors Constructor Description TransitionListener(List<TransitionHandlerCustomizer> customizers, List<TransitionHandler> transitionHandlers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(WorkflowDeployRequest request)
void
handle(WorkflowPromoteRequest request)
void
handle(WorkflowRebaseRequest request)
void
handle(WorkflowRejectRequest request)
void
handle(WorkflowRevertRequest request)
-
-
-
Field Detail
-
customizers
protected List<TransitionHandlerCustomizer> customizers
-
transitionHandlers
protected List<TransitionHandler> transitionHandlers
-
-
Constructor Detail
-
TransitionListener
public TransitionListener(List<TransitionHandlerCustomizer> customizers, List<TransitionHandler> transitionHandlers)
-
-
Method Detail
-
handle
@StreamListener("promotionInput") public void handle(WorkflowPromoteRequest request)
-
handle
@StreamListener("deploymentInput") public void handle(WorkflowDeployRequest request)
-
handle
@StreamListener("rejectionInput") public void handle(WorkflowRejectRequest request)
-
handle
@StreamListener("reversionInput") public void handle(WorkflowRevertRequest request)
-
handle
@StreamListener("rebasingInput") public void handle(WorkflowRebaseRequest request)
-
-