Package com.founder.fix.fixflow.core.runtime

Examples of com.founder.fix.fixflow.core.runtime.ProcessInstanceQuery.processInstanceId()


      }
      ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
      if(StringUtil.isNotEmpty(processDefinitionKey))
        processInstanceQuery.processDefinitionKey(processDefinitionKey);
      if(StringUtil.isNotEmpty(processInstanceId))
        processInstanceQuery.processInstanceId(processInstanceId);
      if(StringUtil.isNotEmpty(title))
        processInstanceQuery.subjectLike(title);
      if(StringUtil.isNotEmpty(bizKey))
        processInstanceQuery.processInstanceBusinessKeyLike(bizKey);
      if(processInstanceStatus !=null){
View Full Code Here


      if(StringUtil.isNotEmpty(processDefinitionKey))
        tq.processDefinitionKey(processDefinitionKey);
     
      String processInstanceId = StringUtil.getString(filter.get("processInstanceId"))//流程实例号
      if(StringUtil.isNotEmpty(processInstanceId))
        tq.processInstanceId(processInstanceId);
     
      String subject = StringUtil.getString(filter.get("subject"))//主题
      if(StringUtil.isNotEmpty(subject))
        tq.subjectLike(subject);
     
View Full Code Here

//        processInstanceQuery.queryExpandTo(queryExpandTo);
        processInstanceQuery.processDefinitionNameLike(processName);
       
      }
      if(StringUtil.isNotEmpty(processInstanceId))
        processInstanceQuery.processInstanceId(processInstanceId);
      if(StringUtil.isNotEmpty(subject))
        processInstanceQuery.subjectLike(subject);
      if(StringUtil.isNotEmpty(bizKey))
        processInstanceQuery.processInstanceBusinessKeyLike(bizKey);
      if(StringUtil.isNotEmpty(initor))
View Full Code Here

    runtimeService.suspendProcessInstance(processInstanceId);
   
    //创建流程实例查询
    ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询刚才暂停的流程实例
    processInstanceQuery.processInstanceId(processInstanceId);
    //获取流程实例
    processInstance = processInstanceQuery.singleResult();
    //验证流程实例已经暂停
    assertTrue(processInstance.isSuspended());
   
View Full Code Here

    runtimeService.continueProcessInstance(processInstanceId);
   
    //重置流程实例查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询刚才的流程实例
    processInstanceQuery.processInstanceId(processInstanceId);
    //获取流程实例
    processInstance = processInstanceQuery.singleResult();
    //验证不是暂停状态
    assertFalse(processInstance.isSuspended());
  }
View Full Code Here

    runtimeService.terminatProcessInstance(processInstanceId);
   
    //创建流程实例查询
    ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询刚才暂停的流程实例
    processInstanceQuery.processInstanceId(processInstanceId);
    //获取流程实例
    processInstance = processInstanceQuery.singleResult();
    //验证流程实例为终止状态
    assertEquals(ProcessInstanceType.TERMINATION, processInstance.getInstanceType());
  }
View Full Code Here

      //执行通用按钮
      taskService.expandTaskComplete(expandTaskCommandGeneral, null);
     
      if(i == 1){
        ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
        processInstance = processInstanceQuery.processInstanceId(processInstanceId).singleResult();
        begin = processInstance.getEndTime();
      }
     
      if(i == 3){
        ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
View Full Code Here

        begin = processInstance.getEndTime();
      }
     
      if(i == 3){
        ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
        processInstance = processInstanceQuery.processInstanceId(processInstanceId).singleResult();
        middle = processInstance.getEndTime();
      }
     
      if(i == 4){
        ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
View Full Code Here

        middle = processInstance.getEndTime();
      }
     
      if(i == 4){
        ProcessInstanceQuery processInstanceQuery = runtimeService.createProcessInstanceQuery();
        processInstance = processInstanceQuery.processInstanceId(processInstanceId).singleResult();
        end = processInstance.getEndTime();
      }
      Thread.sleep(1000);
    }
    //将1和2归档
View Full Code Here

    Date end = new Date();
   
    //重置查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    //查询流程定义名称等于“TaskServiceTest”的流程实例
    processInstances = processInstanceQuery.processInstanceId(processInstanceId).list();
    //验证是否有10个
    assertTrue(processInstances.get(0).hasEnded());
   
    //重置查询
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
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.