From: Jorg J. <jj...@us...> - 2005-02-23 05:25:30
|
Update of /cvsroot/compiere/dbPort/src/org/compiere/process In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2330/src/org/compiere/process Modified Files: SvrProcess.java Log Message: Index: SvrProcess.java =================================================================== RCS file: /cvsroot/compiere/dbPort/src/org/compiere/process/SvrProcess.java,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** SvrProcess.java 21 Feb 2005 08:17:57 -0000 1.30 --- SvrProcess.java 23 Feb 2005 05:25:22 -0000 1.31 *************** *** 65,69 **** * @param pi Process Info * @return true if the next process should be performed ! * @see org.compiere.process.ProcessCall#startProcess(Properties, ProcessInfo) */ public final boolean startProcess (Properties ctx, ProcessInfo pi, Trx trx) --- 65,69 ---- * @param pi Process Info * @return true if the next process should be performed ! * @see org.compiere.process.ProcessCall#startProcess(Properties, ProcessInfo) */ public final boolean startProcess (Properties ctx, ProcessInfo pi, Trx trx) *************** *** 80,89 **** } // startProcess ! /*************************************************************************/ ! ! /** ! * Process - called when pressing the button ... in ... */ ! protected void process() { String msg = null; --- 80,88 ---- } // startProcess ! ! /************************************************************************** ! * Process */ ! private void process() { String msg = null; *************** *** 273,277 **** catch (SQLException e) { ! log.log(Level.SEVERE, "getAD_User_ID", e); } } --- 272,276 ---- catch (SQLException e) { ! log.log(Level.SEVERE, sql, e); } } *************** *** 325,329 **** m_pi.addLog(id, date, number, msg); else ! log.info("addLog - " + id + " -" + date + " - " + number + " - " + msg); } // addLog --- 324,328 ---- m_pi.addLog(id, date, number, msg); else ! log.info(id + " -" + date + " - " + number + " - " + msg); } // addLog *************** *** 357,368 **** } // doIt ! /*************************************************************************/ ! ! /** * Lock Process Instance */ private void lock() { ! log.fine("lock"); DB.executeUpdate("UPDATE AD_PInstance SET IsProcessing='Y' WHERE AD_PInstance_ID=" + m_pi.getAD_PInstance_ID()); --- 356,366 ---- } // doIt ! ! /************************************************************************** * Lock Process Instance */ private void lock() { ! log.fine("AD_PInstance_ID=" + m_pi.getAD_PInstance_ID()); DB.executeUpdate("UPDATE AD_PInstance SET IsProcessing='Y' WHERE AD_PInstance_ID=" + m_pi.getAD_PInstance_ID()); *************** *** 378,382 **** if (mpi.getID() == 0) { ! log.log(Level.SEVERE, "unlock - did not find PInstance " + m_pi.getAD_PInstance_ID()); return; } --- 376,380 ---- if (mpi.getID() == 0) { ! log.log(Level.SEVERE, "Did not find PInstance " + m_pi.getAD_PInstance_ID()); return; } *************** *** 385,389 **** mpi.setErrorMsg(m_pi.getSummary()); mpi.save(); ! log.fine("unlock - " + mpi); } // unlock --- 383,387 ---- mpi.setErrorMsg(m_pi.getSummary()); mpi.save(); ! log.fine(mpi.toString()); } // unlock *************** *** 394,399 **** protected String get_TrxName() { ! return m_trx.getTrxName(); ! } } // SvrProcess --- 392,399 ---- protected String get_TrxName() { ! if (m_trx != null) ! return m_trx.getTrxName(); ! return null; ! } // get_TrxName } // SvrProcess |