如何获得高流动性的高光

时间:2019-04-23 10:33:18

标签: java flowable

我想提供一个进度图,但是我不清楚如何使用可流动的API获得引人注目的流程。有人可以帮我吗?

BpmnModel bpmnModel = repositoryService.getBpmnModel(historicProcessInstance.getProcessDefinitionId());
List<HistoricActivityInstance> historicActivityInstances = historyService.createHistoricActivityInstanceQuery()
                .processInstanceId(processInstanceId)
                .orderByHistoricActivityInstanceStartTime()
                .asc()
                .list();


List<String> highLightedActivitis = historicActivityInstances.stream().map(HistoricActivityInstance::getActivityId).collect(Collectors.toList());

List<String> highLightedFlows = new ArrayList<>();


ProcessDiagramGenerator diagramGenerator = processEngineConfiguration.getProcessDiagramGenerator();

return diagramGenerator.generateDiagram(bpmnModel, imageType, highLightedActivitis, highLightedFlows);

0 个答案:

没有答案