How to get complete BPMN xml using process definition id

Hi All,

I am able to query a model based on process definition id. However, I don’t find any api that could be me the complete bpmn.xml for this model. Am I missing something?

final org.flowable.bpmn.model.Process process = this.repositoryService.getBpmnModel(processDefinitionId).getMainProcess();

Thanks,
Gaurav

Hi Gaurav,

You can get the XML of a process definition like this:

String xml = StreamUtils.copyToString(repositoryService.getProcessModel(processDefinitionId), StandardCharsets.UTF_8);

Regards,
Matthias