Examples of orderByStartTime()


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

    processInstances = processInstanceQuery.processDefinitionKey(definitionKeys).list();
    //验证10条查询结果
    assertEquals(10, processInstances.size());
   
    //根据开始时间降序查询
    processInstanceQuery.orderByStartTime().desc();
    //获取第一页的0-5条结果
    processInstances = processInstanceQuery.listPage(1, 5);
    //获取第二页5-10条结果
    List<ProcessInstance> tmpProcessInstances = processInstanceQuery.listPage(6, 10);
    //取得第一条结果
View Full Code Here

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

   
    //需要重置查询,因为order by 有叠加效果
    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstanceQuery.processDefinitionKey(definitionKeys);
    //根据开始时间升序排序
    processInstanceQuery.orderByStartTime().asc();
    //获取第一页的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.