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 newNextMessageInfoobject that can be used to applyStoragedata orIncomingBindingsto theTicketthat will be created by thereceiveMessage(Message, Account, Optional)method.receiveMessage(jakarta.mail.Message message, Account account, Optional<NextMessageInfo> nextMessageInfo) The method appends aMessageto the incoming queue for the specifiedAccountto be asynchronously processed by the novomind iAGENT Core process and returns theMessageInfowith the id of the associatedTicket.
-
Method Details
-
createNextMessageInfo
NextMessageInfo createNextMessageInfo()The method creates a newNextMessageInfoobject that can be used to applyStoragedata orIncomingBindingsto theTicketthat will be created by thereceiveMessage(Message, Account, Optional)method.- Returns:
- the
NextMessageInfoobject - 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 aMessageto the incoming queue for the specifiedAccountto be asynchronously processed by the novomind iAGENT Core process and returns theMessageInfowith 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 aCategorynor anyStoragedata and also does not appear in the backlog until being fully processed by the novomind iAGENT Core process.- Parameters:
message- theMessageto be processedaccount- theAccountto be used to process the messagenextMessageInfo- the optionalNextMessageInfoobject to pass specific data to the message analyze procedure- Returns:
- the
MessageInfoobject 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
-