respondWithNotFound(response, "Destination vertex not found");
return;
}
FindPathLongRunningProcessQueueItem findPathQueueItem = new FindPathLongRunningProcessQueueItem(sourceVertex.getId(), destVertex.getId(), hops, workspaceId, authorizations);
String id = this.longRunningProcessRepository.enqueue(findPathQueueItem.toJson(), user, authorizations);
respondWithClientApiObject(response, new ClientApiLongRunningProcessSubmitResponse(id));
}
}