public void unlockUI(ProcessInfo pi){
  boolean notPrint=pi != null && pi.getAD_Process_ID() != m_curTab.getAD_Process_ID() && pi.isReportingProcess() == false;
  setBusy(false,notPrint);
  if (notPrint) {
    m_curTab.dataRefresh();
    if (pi.isTimeout())     Env.setContext(m_ctx,m_curWindowNo,"Processed","Y");
    m_curGC.dynamicDisplay(0);
    setStatusLine(pi.getSummary(),pi.isError());
    if (pi.isError())     ADialog.error(m_curWindowNo,this,null,pi.getSummary());
    ProcessInfoUtil.setLogFromDB(pi);
    String logInfo=pi.getLogInfo();
    if (logInfo.length() > 0)     ADialog.info(m_curWindowNo,this,Env.getHeader(m_ctx,m_curWindowNo),pi.getTitle(),logInfo);
  }
 else {
    setStatusLine(pi.getSummary(),pi.isError());
    if (pi.isError())     ADialog.error(m_curWindowNo,this,null,pi.getSummary());
  }
}

public void unlockUI ( ProcessInfo pi ) { boolean notPrint = pi != null && pi . getAD_Process_ID ( ) != m_curTab . getAD_Process_ID ( ) && pi . isReportingProcess ( ) == false ; setBusy ( false , notPrint ) ; if ( notPrint ) { m_curTab . dataRefresh ( ) ; if ( pi . isTimeout ( ) ) Env . setContext ( m_ctx , m_curWindowNo , "Processed" , "Y" ) ; m_curGC . dynamicDisplay ( 0 ) ; setStatusLine ( pi . getSummary ( ) , pi . isError ( ) ) ; if ( pi . isError ( ) ) ADialog . error ( m_curWindowNo , this , null , pi . getSummary ( ) ) ; ProcessInfoUtil . setLogFromDB ( pi ) ; String logInfo = pi . getLogInfo ( ) ; if ( logInfo . length ( ) > 0 ) ADialog . info ( m_curWindowNo , this , Env . getHeader ( m_ctx , m_curWindowNo ) , pi . getTitle ( ) , logInfo ) ; } else { setStatusLine ( pi . getSummary ( ) , pi . isError ( ) ) ; if ( pi . isError ( ) ) ADialog . error ( m_curWindowNo , this , null , pi . getSummary ( ) ) ; } }
unlock user interface . called from the worker when processing is done
