Package com.founder.fix.fixflow.util

Examples of com.founder.fix.fixflow.util.Pagination


     
      List<TaskInstance> lts = tq.orderByTaskCreateTime().desc().listPagination(pageIndex, rowNum);
      Long count = tq.count();
      List<Map<String,Object>> instanceMaps = new ArrayList<Map<String,Object>>();
     
      Pagination page = new Pagination(pageIndex,rowNum);
      page.setTotal(count.intValue());
      IdentityService identsvz = engine.getIdentityService();
     
      for(TaskInstance tmp:lts){
        Map<String,Object> instances = tmp.getPersistentState();
//        String path = StringUtil.getString(filter.get("path"));
View Full Code Here


          persistentState.put("startAuthorName", tmp.getStartAuthor());
        }
        instanceMaps.add(persistentState);
      }
      Long count = processInstanceQuery.count();
      Pagination page = new Pagination(pageIndex,rowNum);
      page.setTotal(count.intValue());
      resultMap.put("dataList", instanceMaps);
      resultMap.put("pageInfo", page);
    }finally{
      closeProcessEngine();
    }
View Full Code Here

      tq.his();
      instances = tq.listPagination(pageIndex, rowNum);

      Long count = tq.count();
      List<Map<String,Object>> instanceMaps = new ArrayList<Map<String,Object>>();
      Pagination page = new Pagination(pageIndex,rowNum);
      page.setTotal(count.intValue());
      IdentityService identityService = engine.getIdentityService();
      for(ProcessInstance tmp:instances){
        Map<String, Object> persistentState = tmp.getPersistentState();
        ProcessEngine processEngine = ProcessEngineManagement.getDefaultProcessEngine();
        String processDefinitionId = tmp.getProcessDefinitionId();
View Full Code Here

      int maxResults = pageIndex*rowNum;//结束行
      Map<String,Object> userListMap = identityService.getUserTos(new Page(firstResult,maxResults), queryMap);
      List<UserTo> userTos = (List<UserTo>)userListMap.get("userList");
      int count = (Integer)userListMap.get("count");
      List<Map<String,Object>> userList = new ArrayList<Map<String,Object>>();
      Pagination page = new Pagination(pageIndex,rowNum);
      page.setTotal(count);
      if(userTos!=null){
        for(UserTo user:userTos){
          Map<String,Object> userMap = user.getPropertyMap();
          userList.add(userMap);
        }
View Full Code Here

      }
      Map<String,Object> userListMap = identityService.getUserTos(new Page(firstResult,maxResults), queryMap);
      List<UserTo> userTos = (List<UserTo>)userListMap.get("userList");
      int count = (Integer)userListMap.get("count");
      List<Map<String,Object>> userList = new ArrayList<Map<String,Object>>();
      Pagination page = new Pagination(pageIndex,rowNum);
      page.setTotal(count);
      if(userTos!=null){
        for(UserTo user:userTos){
          Map<String,Object> userMap = user.getPropertyMap();
          userList.add(userMap);
        }
View Full Code Here

      GroupDefinition groupDefinition = identityService.getGroupDefinition(groupType);
      Map<String,Object> map = groupDefinition.findGroups(new Page(firstResult,maxResults), queryMap);
      List<GroupTo> groupTos = (List<GroupTo>)map.get("groupList");
      List<Map<String,Object>> groupList = new ArrayList<Map<String,Object>>();
      int count = (Integer)map.get("count");
      Pagination page = new Pagination(pageIndex,rowNum);
      page.setTotal(count);
      for(GroupTo group : groupTos){
       
        Map<String,Object> groupMap = new HashMap<String,Object>();
        groupMap.put("groupId",group.getGroupId());
        groupMap.put("groupName", group.getGroupName());
View Full Code Here

      tq.orderByTaskCreateTime().desc();
      List<TaskInstance> lts = tq.listPagination(pageIndex, rowNum);
      Long count = tq.count();
      List<Map<String,Object>> instanceMaps = new ArrayList<Map<String,Object>>();
     
      Pagination page = new Pagination(pageIndex,rowNum);
      page.setTotal(count.intValue());
      IdentityService identsvz = engine.getIdentityService();
     
      for(TaskInstance tmp:lts){
        Map<String,Object> instances = tmp.getPersistentState();
        String userId = StringUtil.getString(instances.get("PI_INITIATOR"));
View Full Code Here

          persistentState.put("startAuthorName", tmp.getStartAuthor());
        }
        instanceMaps.add(persistentState);
      }
      Long count = processInstanceQuery.count();
      Pagination page = new Pagination(pageIndex,rowNum);
      page.setTotal(count.intValue());
      resultMap.put("dataList", instanceMaps);
      resultMap.put("pageInfo", page);
    }finally{
      closeProcessEngine();
    }
View Full Code Here

//      processDefinitionQuery.queryExpandTo(queryExpandTo);
      processDefinitionQuery.orderByDeploymentTime().desc();
      List<ProcessDefinitionBehavior> processDefinitions = processDefinitionQuery.listPagination(pageIndex, rowNum);
      Long count = processDefinitionQuery.count();
      List<Map<String,Object>> processDefinitionList = new ArrayList<Map<String,Object>>();
      Pagination page = new Pagination(pageIndex,rowNum);
      page.setTotal(count.intValue());
      for(ProcessDefinitionBehavior processDefinition:processDefinitions){
        Map<String,Object> processDefinitonMap = processDefinition.getPersistentState();
        processDefinitionList.add(processDefinitonMap);
      }
      resultMap.put("dataList", processDefinitionList);
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.util.Pagination

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.