Package org.uengine.kernel

Examples of org.uengine.kernel.UEngineException


          default:
            value = String.valueOf(value);
            break;
        }
      }catch (Exception e) {
        throw new UEngineException(e.getMessage(), e);
      }
      Comparable cmpVal = (Comparable) value;
      if(maxValue == null || cmpVal.compareTo(maxValue) > 0) maxValue = cmpVal;     
    }
View Full Code Here


    public void loadValueMap(){
      try{
        InputStream fis = openValueXMLStream();
        setValueMap((HashMap)GlobalContext.deserialize(fis, HashMap.class));
       
        if(getFilePath()==null) throw new UEngineException("Form has not been initialized.");
      }catch(Exception e){
        new UEngineException("Form has not been initialized.");
      }
    }
View Full Code Here

      }finally{
        if(bw!=null)
          try{bw.close();}catch(Exception e){};
      }
    } catch (Exception e) {
      throw new UEngineException("Error when to save filter: " + e.getMessage(), e);
    }
  }
View Full Code Here

       
        return (WorkListFilterList)GlobalContext.deserialize(fis, WorkListFilterList.class);
      }

    }catch(Exception e){
      throw new UEngineException("Error when to load filter: " + e.getMessage(), e);
   
   
    return new WorkListFilterList();
  }
View Full Code Here

          default:
            value = String.valueOf(value);
            break;
        }
      }catch (Exception e) {
        throw new UEngineException(e.getMessage(), e);
      }
      Comparable cmpVal = (Comparable) value;
      if(minValue == null || cmpVal.compareTo(minValue) < 0) minValue = cmpVal;     
    }
View Full Code Here

  public Connection getConnection() throws Exception{
    InitialContext ctx = null;
    ctx = new InitialContext();
   
    if(getDataSourceJndiName()==null)
      throw (new UEngineException("Data Source JNDI name is null. Check whether the JNDI name is null."));
   
    DataSource ds = (javax.sql.DataSource) ctx.lookup(getDataSourceJndiName());
    Connection conn = ds.getConnection();
   
    return conn;
View Full Code Here

        default:
          value = (int) Double.parseDouble(pram.toString());
          break;
      }
    }catch (Exception e) {
      throw new UEngineException("This value("+pram+") is null or don't transform to Number ",e);
    }
   
    return value;
  }
View Full Code Here

          success();
        }catch(UEngineException e){
          fail(e);
        }catch(Exception e){
          e.printStackTrace();
          fail(new UEngineException("Exception: " + e.getMessage(), e));
        }
      }
    }.start();
  }
View Full Code Here

    Serializable retObj = null;
    if (pdRemote != null && piRemote != null) {
      ProcessVariable variable = pdRemote.getProcessVariable(key);

      if (variable == null)
        throw new UEngineException(
            "Undeclared process variable reference : " + key);

      ProcessVariableValue theValue = pdRemote.getProcessVariable(key)
          .getMultiple(piRemote, "");
View Full Code Here

      }
      return valueMap;
    }
    public void saveValueMap() throws Exception{
      FileOutputStream fos = null;
      if(getFilePath()==null) throw new UEngineException("OfficeDocument has not been initialized.");
      //File f = new File(FILE_SYSTEM_DIR + getFilePath().replace(".xls", "") + ".xml");
      //System.out.println("Absolute Path : " + f.getAbsolutePath());
      String calFilePath = UEngineUtil.getCalendarDir();
      File dirToCreate = new File(FILE_SYSTEM_DIR + calFilePath);
      dirToCreate.mkdirs();     
View Full Code Here

TOP

Related Classes of org.uengine.kernel.UEngineException

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.