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 Summary
Modifier and TypeMethodDescriptiondefault void
validate
(AgentCallAction agentCallAction) The method is called when the agent is trying to perform actions on calls.default void
validate
(AgentCallCloseAction agentCallCloseAction) The method is called when the agent is asked to apply required information to close a call e.g.
-
Method Details
-
validate
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 anAgentCallActionValidationException
to indicate a validation error. The agent may try to repeat the action. TheAgentCallActionValidationException.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, AgentCallActionInterruptedException 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. TheAgentCallActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.AgentCallActionInterruptedException
- Throw an AgentCallActionInterruptedException to indicate a validation error and to show a custom dialog with the given url to the agent that must be provided by a plugin. The agent may apply changes within the custom dialog to fulfill the validation condition and trigger again the desired action outside of the dialog to re-validate.- Since:
- 12.28
-