Package org.uengine.persistence.processinstance

Examples of org.uengine.persistence.processinstance.ProcessInstanceRepositoryHomeLocal


  }
 
  public ProcessInstanceRemote[] listProcessInstanceRemotes(String definition, String status) throws RemoteException{
    log("listProcessInstanceRemotes", new Object[]{definition, status});
    try{
      ProcessInstanceRepositoryHomeLocal pihr = GlobalContext.createProcessInstanceRepositoryHomeLocal();

      Collection instances;
     
      if(definition!=null){
        if(status!=null)
          instances = pihr.findByDefinitionAndStatus(new Long(definition), status);
        else
          instances = pihr.findByDefinition(new Long(definition));
      }else{
//        if(status==null)
          instances = pihr.findAllProcessInstances();
/*        else
          instances = pihr.findByStatus(status);*/
      }
       
      ProcessInstanceRemote[] pirs = new ProcessInstanceRemote[instances.size()];
View Full Code Here


  }
 
  public ProcessInstanceRemote[] listProcessArchiveRemotes() throws RemoteException{
    log("listProcessArchiveRemotes", new Object[]{});
    try{
      ProcessInstanceRepositoryHomeLocal pihr = GlobalContext.createProcessInstanceRepositoryHomeLocal();
      Collection instances = pihr.findAllProcessArchives();
       
      ProcessInstanceRemote[] pirs = new ProcessInstanceRemote[instances.size()];
       
      int i=0;
      for(Iterator iter = instances.iterator(); iter.hasNext();){
View Full Code Here

  public void removeProcessDefinition(String processDefinition) throws RemoteException{
    log("removeProcessDefinition", new Object[]{processDefinition});
    try{
      //Check there is referencing instance
      ProcessInstanceRepositoryHomeLocal pihr = GlobalContext.createProcessInstanceRepositoryHomeLocal();
      //if there is any of instance of this folder, this definition can't be removed
      Collection pis = pihr.findByDefinition(new Long(processDefinition));
      if(pis.iterator().hasNext())
        throw new UEngineException("This definition has instances");

      ProcessDefinitionFactory.getInstance(getTransactionContext()).removeDefinition(processDefinition);     
    }catch(Exception e){
View Full Code Here

TOP

Related Classes of org.uengine.persistence.processinstance.ProcessInstanceRepositoryHomeLocal

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.