@Override
 protected void doPost(HttpServletRequest request, HttpServletResponse response)
     throws ServletException, IOException {
   response.setCharacterEncoding("UTF-8");
   String nextNodeStr = request.getParameter("para");
   nextNodeStr = nextNodeStr.replace("tr", "");
   int selectCpNodeID = Integer.parseInt(nextNodeStr);
   HttpSession session = request.getSession();
   RouteExecuteInfo info = (RouteExecuteInfo) session.getAttribute("info");
   NodeTable nodeTable = new NodeTable();
   NextNodeTable nextNodeTable = new NextNodeTable();
   int aa = nodeTable.funOverNode(info);
   String result = "OK";
   String variationExit = "1";
   if (aa > 0) {
     int bb = nextNodeTable.insertAllTable(info, selectCpNodeID);
     if (bb < 0) {
       System.out.println("---------------------------------------------------------------------");
       // 插入失败回滚
       TableException.rollBackNode(info, selectCpNodeID);
       TableException.rollBackAll(info, selectCpNodeID);
       result = "ERROR";
     } else if (bb == 0) {
       variationExit = "0";
     }
   } else {
     result = "ERROR";
   }
   response
       .getWriter()
       .println(
           "[{\"result\":\""
               + result
               + "\","
               + "\"variationExit\":\""
               + variationExit
               + "\","
               + "\"method\":\"InsertAllTable\"}]");
 }