我想提供一个进度图,但是我不清楚如何使用可流动的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);