Examples of listPage()


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

    assertEquals(10, processInstances.size());
   
    //根据开始时间降序查询
    processInstanceQuery.orderByStartTime().desc();
    //获取第一页的0-5条结果
    processInstances = processInstanceQuery.listPage(1, 5);
    //获取第二页5-10条结果
    List<ProcessInstance> tmpProcessInstances = processInstanceQuery.listPage(6, 10);
    //取得第一条结果
    Date firstStartTime = processInstances.get(0).getStartTime();
    //验证比本页所有的时间都大,表示降序排序正确
View Full Code Here

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

    //根据开始时间降序查询
    processInstanceQuery.orderByStartTime().desc();
    //获取第一页的0-5条结果
    processInstances = processInstanceQuery.listPage(1, 5);
    //获取第二页5-10条结果
    List<ProcessInstance> tmpProcessInstances = processInstanceQuery.listPage(6, 10);
    //取得第一条结果
    Date firstStartTime = processInstances.get(0).getStartTime();
    //验证比本页所有的时间都大,表示降序排序正确
    for(int i = 1;i < processInstances.size();i++){
      Date tmpStartTime = processInstances.get(i).getStartTime();
View Full Code Here

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

    processInstanceQuery = runtimeService.createProcessInstanceQuery();
    processInstanceQuery.processDefinitionKey(definitionKeys);
    //根据开始时间升序排序
    processInstanceQuery.orderByStartTime().asc();
    //获取第一页的0-5条结果
    processInstances = processInstanceQuery.listPage(1, 5);
    //获取第二页5-10条结果
    tmpProcessInstances = processInstanceQuery.listPage(6, 10);
    //取得第一条结果
    firstStartTime = processInstances.get(0).getStartTime();
    //验证比本页所有的时间都小,表示升序正确
View Full Code Here

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

    //根据开始时间升序排序
    processInstanceQuery.orderByStartTime().asc();
    //获取第一页的0-5条结果
    processInstances = processInstanceQuery.listPage(1, 5);
    //获取第二页5-10条结果
    tmpProcessInstances = processInstanceQuery.listPage(6, 10);
    //取得第一条结果
    firstStartTime = processInstances.get(0).getStartTime();
    //验证比本页所有的时间都小,表示升序正确
    for(int i = 1;i < processInstances.size();i++){
      Date tmpStartTime = processInstances.get(i).getStartTime();
View Full Code Here

Examples of com.founder.fix.fixflow.core.task.TaskQuery.listPage()

    //取得第一条任务
    TaskInstance taskInstance = taskEnd.get(0);
    //验证任务中的流程定义名称不为空
    assertNotNull(taskInstance.getProcessDefinitionName());
    //测试分页 取1-9条
    taskEnd = taskQuery.listPage(1, 9);
    //验证取到9条任务
    assertEquals(9, taskEnd.size());
    //重置任务查询
    taskQuery = taskService.createTaskQuery();
    //获取流程定义名称等于TaskServiceTest的任务实例
View Full Code Here

Examples of org.activiti.engine.history.HistoricProcessInstanceQuery.listPage()

     */
    @Transactional(readOnly = true)
    public List<Leave> findFinishedProcessInstaces(Page<Leave> page, int[] pageParams) {
        List<Leave> results = new ArrayList<Leave>();
        HistoricProcessInstanceQuery query = historyService.createHistoricProcessInstanceQuery().processDefinitionKey("leave").finished().orderByProcessInstanceEndTime().desc();
        List<HistoricProcessInstance> list = query.listPage(pageParams[0], pageParams[1]);

        // 关联业务实体
        for (HistoricProcessInstance historicProcessInstance : list) {
            String businessKey = historicProcessInstance.getBusinessKey();
            Leave leave = leaveManager.getLeave(new Long(businessKey));
View Full Code Here

Examples of org.activiti.engine.identity.UserQuery.listPage()

      query.asc();
    } else {
      query.desc();
    }
   
    List<User> users = query.listPage(start, count);
   
    List<Item> items = new ArrayList<Item>();
    for (User user : users) {
      items.add(new GroupMemberItem(user));
    }
View Full Code Here

Examples of org.activiti.engine.management.TablePageQuery.listPage()

      else {
        query.orderDesc(sort);
      }
    }

    TablePage tablePage = query.listPage(start, size);
   
    ObjectNode responseJSON = new ObjectMapper().createObjectNode();
    responseJSON.put("sort", sort);
    responseJSON.put("order", order);
    responseJSON.put("start", tablePage.getFirstResult());
View Full Code Here

Examples of org.activiti.engine.repository.ProcessDefinitionQuery.listPage()

        Page<Object[]> page = new Page<Object[]>(PageUtil.PAGE_SIZE);
        int[] pageParams = PageUtil.init(page, request);

        ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery().orderByDeploymentId().desc();
        List<ProcessDefinition> processDefinitionList = processDefinitionQuery.listPage(pageParams[0], pageParams[1]);
        for (ProcessDefinition processDefinition : processDefinitionList) {
            String deploymentId = processDefinition.getDeploymentId();
            Deployment deployment = repositoryService.createDeploymentQuery().deploymentId(deploymentId).singleResult();
            objects.add(new Object[]{processDefinition, deployment});
        }
View Full Code Here

Examples of org.activiti.engine.runtime.ProcessInstanceQuery.listPage()

     */
    @Transactional(readOnly = true)
    public List<Leave> findRunningProcessInstaces(Page<Leave> page, int[] pageParams) {
        List<Leave> results = new ArrayList<Leave>();
        ProcessInstanceQuery query = runtimeService.createProcessInstanceQuery().processDefinitionKey("leave").active().orderByProcessInstanceId().desc();
        List<ProcessInstance> list = query.listPage(pageParams[0], pageParams[1]);

        // 关联业务实体
        for (ProcessInstance processInstance : list) {
            String businessKey = processInstance.getBusinessKey();
            if (businessKey == null) {
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.