public interface TemporaryMessageHandler
TemporaryMessage
after all
TemporaryMessageProcessor
(s) have run.
The handler is responsible for moving the temporary message to the message table, posting errors to the conversation etc.
Modifier and Type | Method and Description |
---|---|
void |
postProcess(TemporaryMessage temporaryMessage,
TemporaryMessageProcessResult processResult)
Post process the temporary message with the result.
|
void postProcess(TemporaryMessage temporaryMessage, TemporaryMessageProcessResult processResult)
Post processing usually means that if the processing status is valid
to post the the temporary message to an external system and depending on the
system to post it to the conversation.
In case the processing status is not valid
an error message
can be sent to the conversation, or something similar.
temporaryMessage
- the temporary message that should be handledprocessResult
- the processing result from the TemporaryMessageProcessor
Copyright © 2019. All rights reserved.