Example #1
0
 private boolean switchUsi()
     throws NotFoundException, FileNotFoundException, ClassNotFoundException, IOException,
         DocumentException, SAXException {
   this.funcName = this.eventDao.selectFuncName(this.eventNumber);
   if (null != this.funcName && !this.funcName.isEmpty()) {
     System.out.println("Func Name:" + this.funcName);
     String classpath =
         ConstructorUtil.class.getResource("/").getPath() + PropertyUtil.getHbPjResource();
     this.client.sendTaskStartLog(this.taskId, "classpath:" + classpath);
     boolean loadClassFlag = this.loadClass(this.eventNumber, this.funcName, this.input);
     if (loadClassFlag) {
       this.export.put("FUNC_NAME", this.funcName);
       this.export.put("EVENT_NUMBER", this.eventNumber);
       this.export.put("USER_ID", this.taskId);
       this.export.put("FIRST_LOAD", this.input.get("FIRST_LOAD"));
       this.export.put(FbConstants.FB_PUSH_KEY, this.input.get(FbConstants.FB_PUSH_KEY));
       this.export.put(FbConstants.FB_LIMIT, this.input.get(FbConstants.FB_LIMIT));
       this.export.put(FbConstants.FB_PATH, this.input.get(FbConstants.FB_PATH));
       taskDto.setCompanyId(PropertyUtil.getCompanyId());
       dto.setTaskDTO(taskDto);
       return true;
     } else {
       this.client.sendTaskErrorLog(this.taskId, "Class and Table load fail.");
       return false;
     }
   } else {
     this.client.sendTaskErrorLog(
         this.taskId, "FUNC_NAME not found. Event Number (" + this.eventNumber + ")");
     return false;
   }
 }
Example #2
0
 public EventMdl() {
   this.client = new TaskResourceClient(PropertyUtil.getServerUrl());
   this.eventDao = new EventDao();
   this.export = new HashMap<String, Object>();
 }