Package org.uengine.persistence.processinstance

Examples of org.uengine.persistence.processinstance.ProcessInstanceDAOType


        targetProcessInstanceId = new Long(targetPI.getInstanceId());
      } else {
        targetProcessInstanceId = new Long(instance.getRootProcessInstanceId());
      }
     
      ProcessInstanceDAOType piDAOF = ProcessInstanceDAOType.getInstance(instance.getProcessTransactionContext());
      ProcessInstanceDAO piDAO = piDAO = piDAOF.getSiblingProcessInstances(targetProcessInstanceId, this.isTerminateRunAndForgetSubProcess());

      Hashtable options = new Hashtable();
      options.put("ptc", instance.getProcessTransactionContext());

      while (piDAO.next()) {
View Full Code Here


//  }

  ProcessInstanceDAO processInstanceDAO;
  public ProcessInstanceDAO getProcessInstanceDAO() throws Exception{
    if(processInstanceDAO == null){
      ProcessInstanceDAOType pidt = ProcessInstanceDAOType.getInstance(getProcessTransactionContext());
      processInstanceDAO = pidt.findByPrimaryKey(new Long(getInstanceId()));
      processInstanceDAO.getImplementationObject().setTableName("BPM_PROCINST");
      processInstanceDAO.getImplementationObject().setKeyField("INSTID");
      processInstanceDAO.getImplementationObject().createUpdateSql();
    }
   
View Full Code Here

   
    getProcessTransactionContext().addTransactionListener(this);
   
    Long instanceId = UniqueKeyGenerator.issueProcessInstanceKey(getProcessTransactionContext());
   
    ProcessInstanceDAOType pidt = ProcessInstanceDAOType.getInstance(getProcessTransactionContext());
    processInstanceDAO = pidt.createDAOImpl(null);
       
    processInstanceDAO.setStatus(Activity.STATUS_READY);
    processInstanceDAO.setDefName(procDef.getName().getText());
    processInstanceDAO.setInstId(instanceId);
    processInstanceDAO.setDefModDate(procDef.getModifiedDate().getTime());
View Full Code Here

    final String archivePath = processArchive.save(getProcessTransactionContext())
    //should be invoked after applyChanges() of this ProcessInstance
    getProcessTransactionContext().addTransactionListener(new TransactionListener(){

      public void beforeCommit(TransactionContext tx) throws Exception{
        ProcessInstanceDAOType pidt = ProcessInstanceDAOType.getInstance(getProcessTransactionContext());
        pidt.archiveInstance(new Long(getInstanceId()), archivePath);
      }

      public void beforeRollback(TransactionContext tx) throws Exception{
        // TODO Auto-generated method stub
       
View Full Code Here

          pdvid = ""+pdvr.getDefVerId();
//          throw new UEngineException("There is same version already exists. Choose another version.");
         
          //FIXME: implement for non-ejb version.
          if(!"org.uengine.kernel.DefaultProcessInstance".equals(GlobalContext.getPropertyString("processinstance.class"))){
            ProcessInstanceDAOType pidaotype = ProcessInstanceDAOType.getInstance(tc);
            ProcessInstanceDAO existingInstances = pidaotype.findByDefinitionVersion(pdvr.getDefVerId());
            if(existingInstances.size()>0){
              throw new UEngineException("There is some instances belonged to this definition already exists. Choose another version number.");
            }
          }
          overwrite = true;
View Full Code Here

TOP

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

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.