Examples of orderByUpdateTime()


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

     
      String processDefinitionName     = StringUtil.getString(filter.get("processDefinitionName"));
      if(StringUtil.isNotEmpty(processDefinitionName))
        processInstanceQuery.processDefinitionNameLike(processDefinitionName);
     
      processInstanceQuery.orderByUpdateTime().desc();
      Date dates = null;
      Date datee = null;
      String dss = StringUtil.getString(filter.get("startTimeS"));
      String dse = StringUtil.getString(filter.get("startTimeE"));
      if(StringUtil.isNotEmpty(dss)){
View Full Code Here

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

      if(StringUtil.isNotEmpty(initor))
        processInstanceQuery.initiatorLike(initor);
      if(processInstanceStatus !=null){
        processInstanceQuery.processInstanceStatus(processInstanceStatus);
      }
      processInstanceQuery.orderByUpdateTime().desc();
      List<ProcessInstance> processInstances = processInstanceQuery.listPagination(pageIndex, rowNum);
     
      List<Map<String,Object>> instanceMaps = new ArrayList<Map<String,Object>>();
      for(ProcessInstance tmp: processInstances){
        Map<String, Object> persistentState = tmp.getPersistentState();
View Full Code Here

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

   
    //需要重置查询,因为order by 有叠加效果
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstanceQuery.processDefinitionKey(definitionKeys);
    //根据更新时间升序排序
    processInstanceQuery.orderByUpdateTime().asc();
    //获取第一页的0-5条结果
    processInstances = processInstanceQuery.listPage(1, 5);
    //获取第二页5-10条结果
    tmpProcessInstances = processInstanceQuery.listPage(6, 10);
    //取得第一条结果
View Full Code Here

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

   
    //需要重置查询,因为order by 有叠加效果
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstanceQuery.processDefinitionKey(definitionKeys);
    //根据更新时间降序序排序
    processInstanceQuery.orderByUpdateTime().desc();
    //获取第一页的0-5条结果
    processInstances = processInstanceQuery.listPage(1, 5);
    //获取第二页5-10条结果
    tmpProcessInstances = processInstanceQuery.listPage(6, 10);
    //取得第一条结果
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.