| | |
| | | } |
| | | // 总记录数 |
| | | long total = query.count(); |
| | | |
| | | return new TableDataInfo<>(processDefinitionVoList, total); |
| | | TableDataInfo<ProcessDefinitionVo> build = TableDataInfo.build(); |
| | | build.setRows(processDefinitionVoList); |
| | | build.setTotal(total); |
| | | return build; |
| | | } |
| | | |
| | | /** |
| | |
| | | * @param processDefinitionId 流程定义id |
| | | */ |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public boolean deleteDeployment(String deploymentId, String processDefinitionId) { |
| | | try { |
| | | List<HistoricTaskInstance> taskInstanceList = QueryUtils.hisTaskInstanceQuery() |
| | |
| | | } |
| | | //删除流程定义 |
| | | repositoryService.deleteDeployment(deploymentId); |
| | | //删除表单配置 |
| | | iWfFormDefinitionService.getByDefId(processDefinitionId); |
| | | return true; |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |