Package com.founder.fix.fixflow.core.impl.persistence.definition

Examples of com.founder.fix.fixflow.core.impl.persistence.definition.ProcessDefinitionPersistence


        throw new FixFlowException("事件订阅删除出错! 错误信息:  " + e.getMessage(), e);
      }
    }

    if (deleteStatement.equals("deleteProcessDefinitionsByDeploymentId")) {
      ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
      processDefinitionPersistence.deleteProcessDefinitionsByDeploymentId(StringUtil.getString(parameter.toString()));
    }
    if (deleteStatement.equals("deleteResourcesByDeploymentId")) {
      ResourcePersistence resourceManager = ProcessObjectFactory.FACTORYINSTANCE.createResourcePersistence(connection);
      resourceManager.deleteResourcesByDeploymentId(StringUtil.getString(parameter));
View Full Code Here


  @SuppressWarnings({ "rawtypes"})
  public List selectList(String statement, Object parameter, Page page) {

    if (statement.equals("selectProcessDefinitionGroupKey")) {
      ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
      return processDefinitionPersistence.selectProcessDefinitionGroupKey();
    }



    if (statement.equals("findEventSubscriptionByQueryCriteria")) {
      EventSubscriptionPersistence eventSubscriptionPersistence = new EventSubscriptionPersistence(connection);
      try {
        eventSubscriptionPersistence.findEventSubscriptionByQueryCriteria((EventSubscriptionQueryImpl) parameter, page);
      } catch (Exception e) {
        throw new FixFlowException("事件订阅查询出错! 错误信息:  " + e.getMessage(), e);
      }
    }

    if (statement.equals("selectProcessDefinitionsByQueryCriteria")) {
      ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
      return processDefinitionPersistence.selectProcessDefinitionsByQueryCriteria((ProcessDefinitionQueryImpl) parameter,page);
    }

    return null;
  }
View Full Code Here

   
      return resourcePersistence.selectResourceByDeploymentIdAndResourceName(deploymentId,resourceName);
    }
   
    if (statement.equals("selectProcessDefinitionByDeploymentAndKey")) {
      ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
     
   
      return processDefinitionPersistence.selectProcessDefinitionByDeploymentAndKey(parameter);
    }
   

   

   
   
    if (statement.equals("findUserSubmitProcess")) {
      ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
      Map<String, String> strmap = (Map<String, String>) parameter;
      String userId = strmap.get("userId");
      int number = StringUtil.getInt(strmap.get("number"));
      return processDefinitionPersistence.findUserSubmitProcess(userId,number);
    }
   
   

    if (statement.equals("selectDeploymentById")) {
      DeploymentPersistence deploymentPersistence = ProcessObjectFactory.FACTORYINSTANCE.createDeploymentPersistence(connection);
     
      String deploymentId = StringUtil.getString(parameter);

      return deploymentPersistence.getDeployment(deploymentId);
    }
   
   



    if (statement.equals("selectLatestProcessDefinitionByKey")) {
      ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
      ProcessDefinitionBehavior processDefinition = processDefinitionPersistence.selectLatestProcessDefinitionByKey(parameter.toString());
      return processDefinition;
    }
    if (statement.equals("selectProcessDefinitionById")) {
      ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
      ProcessDefinitionBehavior processDefinition = processDefinitionPersistence.selectProcessDefinitionById(parameter.toString());
      return processDefinition;
    }

 

    if (statement.equals("selectResourceByResourceId")) {
      ResourcePersistence resourcePersistence = ProcessObjectFactory.FACTORYINSTANCE.createResourcePersistence(connection);
      return resourcePersistence.getResourceInputStream(parameter.toString());
    }

    if (statement.equals("selectProcessDefinitionByKeyAndVersion")) {
      ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
      ProcessDefinitionBehavior processDefinition = processDefinitionPersistence.selectLatestProcessDefinitionByKeyAndVersion(parameter);
      return processDefinition;
    }

   
    if(statement.equals("selectProcessDefinitionCountByQueryCriteria")){
      ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
      return processDefinitionPersistence.selectProcessDefinitionsCountByQueryCriteria((ProcessDefinitionQueryImpl)parameter);
    }

    return null;

  }
View Full Code Here

    if (insertStatement.equals("insertResource")) {
      ResourcePersistence resourceManager = ProcessObjectFactory.FACTORYINSTANCE.createResourcePersistence(connection);
      resourceManager.insertResource(persistentObject);
    }
    if (insertStatement.equals("insertProcessDefinition")) {
      ProcessDefinitionPersistence processDefinitionPersistence = ProcessObjectFactory.FACTORYINSTANCE.createProcessDefinitionPersistence(connection);
      processDefinitionPersistence.insertProcessDefinition(persistentObject);
    }

  }
View Full Code Here

    ExpandClassConfig expandClassConfig=processEngineConfiguration.getExpandClassConfig();
    List<ExpandClass>  expandClasses=expandClassConfig.getExpandClass();
    for (ExpandClass expandClass : expandClasses) {
      if(expandClass.getClassId().equals("ProcessDefinitionPersistence")){
        Object[] objTemp = new Object[] {connection}
        ProcessDefinitionPersistence processDefinitionPersistence =(ProcessDefinitionPersistence) ReflectUtil.instantiate(expandClass.getClassImpl(),objTemp);
        return processDefinitionPersistence;
      }
    }
    throw new FixFlowException("流程引擎扩展配置里的ProcessDefinitionPersistence实现类指定错误");
  }
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.impl.persistence.definition.ProcessDefinitionPersistence

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.