Interface WorkflowRequestCompletionNotifier
- All Known Implementing Classes:
DefaultWorkflowRequestCompletionNotifier
public interface WorkflowRequestCompletionNotifier
Responsible for notifying the async message fabric concerning the completion of a
TransitionRequest or WorkflowJobSchedulingRequest or
WorkflowJobUnschedulingRequest. For completions where a ContextStateAware record
is available, the NotificationManager should be favored over this facility. For cases
where such a record is not available (e.g. missing record), it is generally ok to use this
notifier, since the requirements of NotificationManager are not able to be met.- See Also:
-
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.
-
Method Details
-
notifyOfCompletion
boolean notifyOfCompletion(@NonNull TransitionRequest request, boolean success, @Nullable Exception e) Sends notification of aTransitionRequest'scompletion including whether success or failure.- 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
boolean notifyOfCompletion(@NonNull WorkflowJobSchedulingRequest request, boolean success, @Nullable Exception e) Sends notification of aWorkflowJobSchedulingRequest'scompletion including whether success or failure.- 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
boolean notifyOfCompletion(@NonNull WorkflowJobUnschedulingRequest request, boolean success, @Nullable Exception e) Sends notification of aWorkflowJobUnschedulingRequest'scompletion including whether success or failure.- 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.
-