Interface IncomingMessageHandler
public interface IncomingMessageHandler
This handler provides functionality to append a
Message
to the
incoming queue for a specific Account
to be processed by the
novomind iAGENT Core process.
The IncomingMessageHandler
is injectable in the novomind iAGENT routing
process and also in the novomind iAGENT Desk- and core process.- Since:
- 13.0
-
Method Summary
Modifier and TypeMethodDescriptionThe method creates a newNextMessageInfo
object that can be used to applyStorage
data orIncomingBindings
to theTicket
that will be created by thereceiveMessage(Message, Account, Optional)
method.receiveMessage
(jakarta.mail.Message message, Account account, Optional<NextMessageInfo> nextMessageInfo) The method appends aMessage
to the incoming queue for the specifiedAccount
to be asynchronously processed by the novomind iAGENT Core process and returns theMessageInfo
with the id of the associatedTicket
.
-
Method Details
-
createNextMessageInfo
NextMessageInfo createNextMessageInfo()The method creates a newNextMessageInfo
object that can be used to applyStorage
data orIncomingBindings
to theTicket
that will be created by thereceiveMessage(Message, Account, Optional)
method.- Returns:
- the
NextMessageInfo
object - Since:
- 13.0
-
receiveMessage
MessageInfo receiveMessage(jakarta.mail.Message message, Account account, Optional<NextMessageInfo> nextMessageInfo) throws jakarta.mail.MessagingException, ValidationException, TemporaryMessagingException, PermanentMessagingException The method appends aMessage
to the incoming queue for the specifiedAccount
to be asynchronously processed by the novomind iAGENT Core process and returns theMessageInfo
with the id of the associatedTicket
. Please note that when the method returns, the message is not yet processed and therefore the associated ticket has neither aCategory
nor anyStorage
data and also does not appear in the backlog until being fully processed by the novomind iAGENT Core process.- Parameters:
message
- theMessage
to be processedaccount
- theAccount
to be used to process the messagenextMessageInfo
- the optionalNextMessageInfo
object to pass specific data to the message analyze procedure- Returns:
- the
MessageInfo
object with the id of the ticket associated with the appended message - Throws:
jakarta.mail.MessagingException
- in case of invalid messageValidationException
- in case of invalid or inappropriate accountTemporaryMessagingException
- in case of a temporary message processing errorPermanentMessagingException
- in case of a permanent message processing error- Since:
- 13.0
-