public class DefaultWorkflowRequestCompletionNotifier extends Object implements WorkflowRequestCompletionNotifier
Constructor and Description |
---|
DefaultWorkflowRequestCompletionNotifier(WorkflowRequestCompletionProducer completionProducer) |
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. |
protected boolean |
sendTransitionCompletion(WorkflowRequestCompletion completion,
String simpleName,
String contextId,
String className)
Send the completion message on the outgoing channel
|
public DefaultWorkflowRequestCompletionNotifier(WorkflowRequestCompletionProducer completionProducer)
public boolean notifyOfCompletion(@NonNull TransitionRequest request, boolean success, @Nullable Exception e)
WorkflowRequestCompletionNotifier
TransitionRequest's
completion including
whether success or failure.notifyOfCompletion
in interface WorkflowRequestCompletionNotifier
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.public boolean notifyOfCompletion(@NonNull WorkflowJobSchedulingRequest request, boolean success, @Nullable Exception e)
WorkflowRequestCompletionNotifier
WorkflowJobSchedulingRequest's
completion including whether success or failure.notifyOfCompletion
in interface WorkflowRequestCompletionNotifier
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.public boolean notifyOfCompletion(@NonNull WorkflowJobUnschedulingRequest request, boolean success, @Nullable Exception e)
WorkflowRequestCompletionNotifier
WorkflowJobUnschedulingRequest's
completion including whether success or failure.notifyOfCompletion
in interface WorkflowRequestCompletionNotifier
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.protected boolean sendTransitionCompletion(WorkflowRequestCompletion completion, String simpleName, String contextId, String className)
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 transitionedCopyright © 2021. All rights reserved.