| | |
| | | } |
| | | |
| | | @Override |
| | | public IPage<FlowProcess> selectProcessPage(IPage<FlowProcess> page, String category, Integer mode) { |
| | | public IPage<FlowProcess> selectProcessPage(IPage<FlowProcess> page, String category, String name, Integer mode) { |
| | | ProcessDefinitionQuery processDefinitionQuery = repositoryService.createProcessDefinitionQuery().latestVersion().orderByProcessDefinitionKey().asc(); |
| | | // 通用流程 |
| | | if (mode == FlowModeEnum.COMMON.getMode()) { |
| | |
| | | if (StringUtils.isNotEmpty(category)) { |
| | | processDefinitionQuery.processDefinitionCategory(category); |
| | | } |
| | | if (StringUtils.isNotEmpty(name)) { |
| | | processDefinitionQuery.processDefinitionName(name); |
| | | } |
| | | List<ProcessDefinition> processDefinitionList = processDefinitionQuery.listPage(Func.toInt((page.getCurrent() - 1) * page.getSize()), Func.toInt(page.getSize())); |
| | | List<FlowProcess> flowProcessList = new ArrayList<>(); |
| | | processDefinitionList.forEach(processDefinition -> { |