Package org.openbravo.model.ad.ui

Examples of org.openbravo.model.ad.ui.ProcessRun


        // Sending beat
        ProcessBundle bundle = new ProcessBundle(HB_Process_ID, vars).init(this);
        final String beatExecutionId = new ProcessRunner(bundle).execute(this);

        // Getting beat result
        final ProcessRun result = OBDal.getInstance().get(ProcessRun.class, beatExecutionId);

        if (result.getStatus().equals("ERR")) {
          // Restoring not active state
          sysInfo.setEnableHeartbeat(false);
          sysInfo.setTestHeartbeat("N");
          OBDal.getInstance().save(sysInfo);
          OBDal.getInstance().commitAndClose();

          String msg = Utility.messageBD(this, "HB_INTERNAL_ERROR", vars.getLanguage());
          // Extracting the last line from the log
          String log = result.getLog().substring(0, result.getLog().lastIndexOf("\n"));
          log = log.substring(log.lastIndexOf("\n"));

          msg += "\n" + log;
          msg = Utility.formatMessageBDToHtml(msg);
View Full Code Here

TOP

Related Classes of org.openbravo.model.ad.ui.ProcessRun

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.