Class DefaultWorkflowRequestCompletionNotifier
java.lang.Object
com.broadleafcommerce.data.tracking.core.transition.DefaultWorkflowRequestCompletionNotifier
- All Implemented Interfaces:
WorkflowRequestCompletionNotifier
public class DefaultWorkflowRequestCompletionNotifier
extends Object
implements WorkflowRequestCompletionNotifier
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultWorkflowRequestCompletionNotifier(WorkflowRequestCompletionProducer completionProducer) -
Method Summary
Modifier and TypeMethodDescriptionbooleannotifyOfCompletion(TransitionRequest request, boolean success, Exception e) Sends notification of aTransitionRequest'scompletion including whether success or failure.booleannotifyOfCompletion(WorkflowJobSchedulingRequest request, boolean success, Exception e) Sends notification of aWorkflowJobSchedulingRequest'scompletion including whether success or failure.booleannotifyOfCompletion(WorkflowJobUnschedulingRequest request, boolean success, Exception e) Sends notification of aWorkflowJobUnschedulingRequest'scompletion including whether success or failure.protected booleansendTransitionCompletion(WorkflowRequestCompletion completion, String simpleName, String contextId, String className) Send the completion message on the outgoing channel
-
Constructor Details
-
DefaultWorkflowRequestCompletionNotifier
public DefaultWorkflowRequestCompletionNotifier(WorkflowRequestCompletionProducer completionProducer)
-
-
Method Details
-
notifyOfCompletion
public boolean notifyOfCompletion(@NonNull TransitionRequest request, boolean success, @Nullable Exception e) Description copied from interface:WorkflowRequestCompletionNotifierSends notification of aTransitionRequest'scompletion including whether success or failure.- Specified by:
notifyOfCompletionin interfaceWorkflowRequestCompletionNotifier- Parameters:
request-TransitionRequestthe completion of which to send a notification.success- Whether theTransitionRequestwas successful or failed.e-Exceptionrelated to the request's failure if applicable.- Returns:
- Whether the notification was sent successfully.
-
notifyOfCompletion
public boolean notifyOfCompletion(@NonNull WorkflowJobSchedulingRequest request, boolean success, @Nullable Exception e) Description copied from interface:WorkflowRequestCompletionNotifierSends notification of aWorkflowJobSchedulingRequest'scompletion including whether success or failure.- Specified by:
notifyOfCompletionin interfaceWorkflowRequestCompletionNotifier- Parameters:
request-WorkflowJobSchedulingRequestthe completion of which to send a notification.success- Whether theWorkflowJobSchedulingRequestwas successful or failed.e-Exceptionrelated to the request's failure if applicable.- Returns:
- Whether the notification was sent successfully.
-
notifyOfCompletion
public boolean notifyOfCompletion(@NonNull WorkflowJobUnschedulingRequest request, boolean success, @Nullable Exception e) Description copied from interface:WorkflowRequestCompletionNotifierSends notification of aWorkflowJobUnschedulingRequest'scompletion including whether success or failure.- Specified by:
notifyOfCompletionin interfaceWorkflowRequestCompletionNotifier- Parameters:
request-WorkflowJobUnschedulingRequestthe completion of which to send a notification.success- Whether theWorkflowJobUnschedulingRequestwas successful or failed.e-Exceptionrelated to the request's failure if applicable.- Returns:
- Whether the notification was sent successfully.
-
sendTransitionCompletion
protected boolean sendTransitionCompletion(WorkflowRequestCompletion completion, String simpleName, String contextId, String className) Send the completion message on the outgoing channel- Parameters:
completion- The completion message to sendsimpleName- The short class name of the trackable entity that was transitionedcontextId- The contextId of the trackable entity that was transitionedclassName- The fully qualified class name of the trackable entity that was transitioned- Returns:
- Whether or not the message was successfully sent
-