Interface AgentCallActionValidator


  • public interface AgentCallActionValidator
    This is an extension point for validation of actions on calls performed by agents. The AgentCallActionValidator can only be used in the novomind iAGENT Desk process.
    Since:
    12.28
    • Method Detail

      • validate

        default void validate​(AgentCallAction agentCallAction)
                       throws AgentCallActionValidationException
        The method is called when the agent is trying to perform actions on calls. Please note that this method is the default method to be called for all kinds of actions supported by this extension point. If you would like to validate only one type of action, please implement one of the specific methods. This method will never be called directly from the backend. The method will only be called by the more specific default methods.
        Parameters:
        agentCallAction - provides information about the call action.
        Throws:
        AgentCallActionValidationException - Throw an AgentCallActionValidationException to indicate a validation error. The agent may try to repeat the action. The AgentCallActionValidationException.getLocalizedMessage() method will be called to get the error message to be displayed to the agent.
        Since:
        12.28
      • validate

        default void validate​(AgentCallCloseAction agentCallCloseAction)
                       throws AgentCallActionValidationException
        The method is called when the agent is asked to apply required information to close a call e.g. a transaction code etc.
        Parameters:
        agentCallCloseAction - provides all required information about the close action.
        Throws:
        AgentCallActionValidationException - Throw an AgentCallActionValidationException to indicate a validation error. The call will stay in the agent folder and the agent may try to close it again. The AgentCallActionValidationException.getLocalizedMessage() method will be called to get the error message to be displayed to the agent. If the AgentCallActionValidationException#getDialogUrl() method returns a valid url then a custom dialog window with the given url will be shown instead of displaying the error message.
        Since:
        12.28