Package org.uengine.persistence.processdefinition

Examples of org.uengine.persistence.processdefinition.ProcessDefinitionRepositoryHomeLocal.findByPrimaryKey()


      Collection versions = pdvh.findAllVersions(pdid);
      //force to remove the definition if there's no more version.
      if(!versions.iterator().hasNext()) throw new ObjectNotFoundException();
    }catch(javax.ejb.ObjectNotFoundException e){
      ProcessDefinitionRepositoryHomeLocal pdhr = GlobalContext.createProcessDefinitionRepositoryHomeLocal(tc);   
      ProcessDefinitionRepositoryLocal pdr = pdhr.findByPrimaryKey(pdid);
     
      //don't remove
      //pdr.remove();     
      pdr.setIsDeleted(true);
    }
View Full Code Here


      objectType = (String)options.get("objectType");

    //if there is no parent folder, this will throw an exception to break this try~catch block
    if(UEngineUtil.isNotEmpty(folder) && !folder.equals("-1")){   
      try{
        pdhr.findByPrimaryKey(new Long(folder));
      }catch(javax.ejb.ObjectNotFoundException e){
        throw new UEngineException("No such folder");
      }
    }else{
      folder="-1";
View Full Code Here

    //if there is no definition for this version, create new one
    boolean definitionExist = false;   
    if(belongingPdid !=null){
      try{
        pdhr.findByPrimaryKey(new Long(belongingPdid));
        definitionExist = true;
      }catch(Exception e){
      }
    }   
    if(!definitionExist){
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.