Package com.founder.fix.fixflow.core

Examples of com.founder.fix.fixflow.core.ModelService


  public String getProcessVersionInfo(String fileName, String userId)throws Exception {
    String processKey = fileName.substring(0, fileName.lastIndexOf("."));
      List<Map<String, Object>> resultMaps = new ArrayList<Map<String,Object>>();
      ProcessEngine processEngine = getProcessEngine(userId);
      if(processEngine != null){
        ModelService modelService = processEngine.getModelService();
        ProcessDefinitionQuery processDefinitionQuery = modelService.createProcessDefinitionQuery();
        processDefinitionQuery.processDefinitionKey(processKey);
        processDefinitionQuery.orderByProcessDefinitionVersion().desc();
        List<ProcessDefinitionBehavior> processDefinitionBehaviors = processDefinitionQuery.list();
        for(ProcessDefinitionBehavior processDefinitionBehavior :processDefinitionBehaviors){
          resultMaps.add(processDefinitionBehavior.getPersistentState());
View Full Code Here


  public void deploy(Map<String, InputStream> fileInputStream,String deploymentId, String userId) throws Exception {
    ProcessEngine processEngine = null;
    try {
      processEngine = getProcessEngine(userId);
      if (processEngine != null) {
        ModelService modelService = processEngine.getModelService();
        if (deploymentId != null && !"".equals(deploymentId)) {
          modelService.updateDeploymentByStream(fileInputStream,deploymentId);
        } else {
          modelService.deploymentByStream(fileInputStream);
        }
      }
    }finally {
      if (processEngine != null) {
        processEngine.contextClose(true, true);
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.ModelService

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.