Skip to content

TicketHandler ​

since v13.19 ​

The TicketHandler provides access to tickets by their ticket id, without having the actual ticket object. It can be used in the novomind iAGENT routing process, the novomind iAGENT Desk process and also in the novomind iAGENT Core process.

The method getProcessTicketIds(Long) returns the ids of all tickets that belong to the same Process as the ticket with the given id, including the given id itself. The result covers open as well as closed tickets and reflects the state at the time of the call. If the given id does not belong to a ticket, e.g. because it is the id of a chat or a call, the returned set is empty. If you already have the Ticket object, the same ids are available via ticket.getProcess().getTicketIds().

Example:

Java
@Inject
TicketHandler ticketHandler;

...

Set<Long> processTicketIds = ticketHandler.getProcessTicketIds(ticketId);
if (processTicketIds.size() > 1) {
  // the ticket shares its process with other tickets
}