Interface AgentTicketActionValidator
public interface AgentTicketActionValidator
This is an extension point for validation of actions on tickets performed by agents.
The
AgentTicketActionValidator
can only be used in the novomind iAGENT Desk process.- Since:
- 10.0.120
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
validate
(AgentQuickCaseTicketAction agentQuickCaseTicketAction) The method is called when the agent is trying to perform actions on quick cases.default void
validate
(AgentQuickCaseTicketCreateAndCloseAction agentQuickCaseTicketCreateAndCloseAction) The method is called when the agent is trying to create a quick case and close the ticket without answer.default void
validate
(AgentQuickCaseTicketCreateAndKeepAction agentQuickCaseTicketCreateAndKeepAction) The method is called when the agent is trying to create a quick case and keep it in his personal inbox.default void
validate
(AgentQuickCaseTicketCreateAndRouteAction agentQuickCaseTicketCreateAndRouteAction) The method is called when the agent is trying to create a quick case and forward the ticket to be routed to a suitable agent.default void
validate
(AgentQuickCaseTicketCreateSendAndCloseAction agentQuickCaseTicketCreateSendAndCloseAction) The method is called when the agent is trying to create a quick case, send an answer and close the ticket.default void
validate
(AgentTicketAction agentTicketAction) The method is called when the agent is trying to perform actions on tickets.default void
validate
(AgentTicketCloseAction agentTicketCloseAction) The method is called when the agent is trying to perform any kind of ticket close action.default void
validate
(AgentTicketCloseNoAnswerAction agentTicketCloseNoAnswerAction) The method is called when the agent is trying to close the ticket without answer.default void
validate
(AgentTicketForwardAndCloseAction agentTicketForwardAndCloseAction) The method is called when the agent is trying to forward and close the ticket without answer.default void
validate
(AgentTicketForwardAndMultiCloseAction agentTicketForwardAndMultiCloseAction) The method is called when the agent is trying to forward and close the ticket without answer while also trying to close other tickets of the process.default void
validate
(AgentTicketMultiCloseNoAnswerAction agentTicketMultiCloseNoAnswerAction) The method is called when the agent is trying to close the ticket without answer while also trying to close other tickets of the process.default void
validate
(AgentTicketRecategorizeAction agentTicketRecategorizeAction) The method is called when the agent is trying to recategorize a ticket.default void
validate
(AgentTicketSendAndCloseAction agentTicketSendAndCloseAction) The method is called when the agent is trying to send an answer and close the ticket.default void
validate
(AgentTicketSendAndMultiCloseAction agentTicketSendAndMultiCloseAction) The method is called when the agent is trying to send an answer and close the ticket while also trying to close other tickets of the process.default void
validate
(AgentTicketSendIntermediateAction agentTicketSendIntermediateAction) The method is called when the agent is trying to send the message as intermediate reply.default void
validate
(AgentTicketUploadAttachmentAction agentTicketUploadAttachmentAction) The method is called when the agent is trying to upload an attachment to the ticket.
-
Method Details
-
validate
default void validate(AgentTicketAction agentTicketAction) throws AgentTicketActionValidationException The method is called when the agent is trying to perform actions on tickets. 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:
agentTicketAction
- provides information about the ticket action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The ticket keeps its previous state and the agent may try to repeat the action. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.- Since:
- 10.0.120
-
validate
default void validate(AgentTicketCloseAction agentTicketCloseAction) throws AgentTicketActionValidationException, AgentTicketActionInterruptedException The method is called when the agent is trying to perform any kind of ticket close action. Please note that this method is the default method to be called for all kinds of close 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:
agentTicketCloseAction
- provides all required information about the close action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The ticket will stay in the agent folder and the agent may try to close it again. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.AgentTicketActionInterruptedException
- Throw an AgentTicketActionInterruptedException 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:
- 10.0.120
-
validate
default void validate(AgentTicketCloseNoAnswerAction agentTicketCloseNoAnswerAction) throws AgentTicketActionValidationException, AgentTicketActionInterruptedException The method is called when the agent is trying to close the ticket without answer.- Parameters:
agentTicketCloseNoAnswerAction
- provides all required information about the close action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The ticket will stay in the agent folder and the agent may try to close it again. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.AgentTicketActionInterruptedException
- Throw an AgentTicketActionInterruptedException 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:
- 10.0.120
-
validate
default void validate(AgentTicketMultiCloseNoAnswerAction agentTicketMultiCloseNoAnswerAction) throws AgentTicketActionValidationException, AgentTicketActionInterruptedException, AgentTicketRelatedCloseActionsValidationException The method is called when the agent is trying to close the ticket without answer while also trying to close other tickets of the process. Please note that the default implementation calls the validate methods for each ticket which should be closed. Override the default implementation to handle the tickets in a single validation.- Parameters:
agentTicketMultiCloseNoAnswerAction
- Provides all required information about the multi close action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The tickets will stay in the agent folder and the agent may try to close them again. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.AgentTicketRelatedCloseActionsValidationException
- Throw an AgentTicketRelatedCloseActionsValidationException to indicate errors during the validation of the related tickets after the successful validation of the ticket which was the source of this multi close action. The source ticket and all tickets not included in the exception will be closed.AgentTicketActionInterruptedException
- Throw an AgentTicketActionInterruptedException 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.25
-
validate
default void validate(AgentTicketForwardAndCloseAction agentTicketForwardAndCloseAction) throws AgentTicketActionValidationException, AgentTicketActionInterruptedException The method is called when the agent is trying to forward and close the ticket without answer.- Parameters:
agentTicketForwardAndCloseAction
- provides all required information about the forward and close action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The ticket will stay in the agent folder and the agent may try to close it again. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.AgentTicketActionInterruptedException
- Throw an AgentTicketActionInterruptedException 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:
- 10.0.120
-
validate
default void validate(AgentTicketForwardAndMultiCloseAction agentTicketForwardAndMultiCloseAction) throws AgentTicketActionValidationException, AgentTicketActionInterruptedException, AgentTicketRelatedCloseActionsValidationException The method is called when the agent is trying to forward and close the ticket without answer while also trying to close other tickets of the process. Please note that the default implementation calls the validate methods for each ticket which should be closed. Override the default implementation to handle the tickets in a single validation.- Parameters:
agentTicketForwardAndMultiCloseAction
- Provides all required information about the forward and multi close action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The tickets will stay in the agent folder and the agent may try to close them again. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.AgentTicketRelatedCloseActionsValidationException
- Throw an AgentTicketRelatedCloseActionsValidationException to indicate errors during the validation of the related tickets after the successful validation of the ticket which was the source of this multi close action. The source ticket and all tickets not included in the exception will be closed.AgentTicketActionInterruptedException
- Throw an AgentTicketActionInterruptedException 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.25
-
validate
default void validate(AgentTicketSendAndCloseAction agentTicketSendAndCloseAction) throws AgentTicketActionValidationException, AgentTicketActionInterruptedException The method is called when the agent is trying to send an answer and close the ticket. A clearance authorization may be required due to the user's or category's configuration, therefore the ticket will not be closed immediately after the action has been completed successfully.- Parameters:
agentTicketSendAndCloseAction
- provides all required information about the send action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The ticket will stay in the agent folder and the agent may try to send it again. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.AgentTicketActionInterruptedException
- Throw an AgentTicketActionInterruptedException 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:
- 10.0.120
-
validate
default void validate(AgentTicketSendAndMultiCloseAction agentTicketSendAndMultiCloseAction) throws AgentTicketActionValidationException, AgentTicketActionInterruptedException, AgentTicketRelatedCloseActionsValidationException The method is called when the agent is trying to send an answer and close the ticket while also trying to close other tickets of the process. A clearance authorization may be required due to the user's or category's configuration, therefore the ticket will not be closed immediately after the action has been completed successfully. Please note that the default implementation calls the validate methods for each ticket which should be closed. Override the default implementation to handle the tickets in a single validation.- Parameters:
agentTicketSendAndMultiCloseAction
- Provides all required information about the send and multi close action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The tickets will stay in the agent folder and the agent may try to close them again. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.AgentTicketRelatedCloseActionsValidationException
- Throw an AgentTicketRelatedCloseActionsValidationException to indicate errors during the validation of the related tickets after the successful validation of the ticket which was the source of this multi close action. The source ticket and all tickets not included in the exception will be closed.AgentTicketActionInterruptedException
- Throw an AgentTicketActionInterruptedException 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.25
-
validate
default void validate(AgentTicketSendIntermediateAction agentTicketSendIntermediateAction) throws AgentTicketActionValidationException The method is called when the agent is trying to send the message as intermediate reply. That means the ticket will NOT be closed after the action has succeeded."- Parameters:
agentTicketSendIntermediateAction
- provides all required information about the send action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The intermediate reply will not be send and the agent may try to send it again. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.- Since:
- 10.0.120
-
validate
default void validate(AgentTicketRecategorizeAction agentTicketRecategorizeAction) throws AgentTicketActionValidationException The method is called when the agent is trying to recategorize a ticket.- Parameters:
agentTicketRecategorizeAction
- provides all required information about the recategorize action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The recategorize action will not be fulfilled. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.- Since:
- 11.30
-
validate
default void validate(AgentQuickCaseTicketAction agentQuickCaseTicketAction) throws AgentTicketActionValidationException The method is called when the agent is trying to perform actions on quick cases. Please note that this method is the default method to be called for all kinds of actions possible on quick cases. 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:
agentQuickCaseTicketAction
- provides information about the quick case ticket action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The ticket keeps its previous state and the agent may try to repeat the action. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.- Since:
- 11.3
-
validate
default void validate(AgentQuickCaseTicketCreateSendAndCloseAction agentQuickCaseTicketCreateSendAndCloseAction) throws AgentTicketActionValidationException, AgentTicketActionInterruptedException The method is called when the agent is trying to create a quick case, send an answer and close the ticket. A clearance authorization may be required due to the user's or category's configuration, therefore the ticket will not be closed immediately after the action has been completed successfully.- Parameters:
agentQuickCaseTicketCreateSendAndCloseAction
- provides all required information about the create, send and close action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The ticket will stay in the agent folder and the agent may try to send it again. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.AgentTicketActionInterruptedException
- Throw an AgentTicketActionInterruptedException 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:
- 11.3
-
validate
default void validate(AgentQuickCaseTicketCreateAndKeepAction agentQuickCaseTicketCreateAndKeepAction) throws AgentTicketActionValidationException The method is called when the agent is trying to create a quick case and keep it in his personal inbox.- Parameters:
agentQuickCaseTicketCreateAndKeepAction
- provides all required information about the create action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The ticket will stay in the agent folder and the agent may try to send it again. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.- Since:
- 11.3
-
validate
default void validate(AgentQuickCaseTicketCreateAndCloseAction agentQuickCaseTicketCreateAndCloseAction) throws AgentTicketActionValidationException, AgentTicketActionInterruptedException The method is called when the agent is trying to create a quick case and close the ticket without answer.- Parameters:
agentQuickCaseTicketCreateAndCloseAction
- provides all required information about the create and close action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The ticket will stay in the agent folder and the agent may try to send it again. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.AgentTicketActionInterruptedException
- Throw an AgentTicketActionInterruptedException 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:
- 11.3
-
validate
default void validate(AgentQuickCaseTicketCreateAndRouteAction agentQuickCaseTicketCreateAndRouteAction) throws AgentTicketActionValidationException The method is called when the agent is trying to create a quick case and forward the ticket to be routed to a suitable agent.- Parameters:
agentQuickCaseTicketCreateAndRouteAction
- provides all required information about the create and route action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The ticket will stay in the agent folder and the agent may try to send it again. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.- Since:
- 11.3
-
validate
default void validate(AgentTicketUploadAttachmentAction agentTicketUploadAttachmentAction) throws AgentTicketActionValidationException The method is called when the agent is trying to upload an attachment to the ticket.- Parameters:
agentTicketUploadAttachmentAction
- provides all required information about the upload attachment action.- Throws:
AgentTicketActionValidationException
- Throw an AgentTicketActionValidationException to indicate a validation error. The attachment will not be uploaded. TheAgentTicketActionValidationException.getLocalizedMessage()
method will be called to get the error message to be displayed to the agent.- Since:
- 12.0
-