public interface WorkflowRequestCompletionNotifier
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.WorkflowRequestCompletion
Modifier and Type | Method and Description |
---|---|
boolean |
notifyOfCompletion(TransitionRequest request,
boolean success,
Exception e)
Sends notification of a
TransitionRequest's completion including
whether success or failure. |
boolean |
notifyOfCompletion(WorkflowJobSchedulingRequest request,
boolean success,
Exception e)
Sends notification of a
WorkflowJobSchedulingRequest's
completion including whether success or failure. |
boolean |
notifyOfCompletion(WorkflowJobUnschedulingRequest request,
boolean success,
Exception e)
Sends notification of a
WorkflowJobUnschedulingRequest's completion including whether success or failure. |
boolean notifyOfCompletion(@NonNull TransitionRequest request, boolean success, @Nullable Exception e)
TransitionRequest's
completion including
whether success or failure.request
- TransitionRequest
the completion of which to send a notification.success
- Whether the TransitionRequest
was successful or failed.e
- Exception
related to the request's failure if applicable.boolean notifyOfCompletion(@NonNull WorkflowJobSchedulingRequest request, boolean success, @Nullable Exception e)
WorkflowJobSchedulingRequest's
completion including whether success or failure.request
- WorkflowJobSchedulingRequest
the completion of which to send a
notification.success
- Whether the WorkflowJobSchedulingRequest
was successful or failed.e
- Exception
related to the request's failure if applicable.boolean notifyOfCompletion(@NonNull WorkflowJobUnschedulingRequest request, boolean success, @Nullable Exception e)
WorkflowJobUnschedulingRequest's
completion including whether success or failure.request
- WorkflowJobUnschedulingRequest
the completion of which to send a
notification.success
- Whether the WorkflowJobUnschedulingRequest
was successful or failed.e
- Exception
related to the request's failure if applicable.Copyright © 2021. All rights reserved.