Read process XML during runtime

Hi
how can I select the BPMN/XML file of a process via Java API (not REST) during runtime?
THansk and best regards,
Roland

Hi Roland,

the following method returns the xml resource as an InputStream:

repositoryService.getProcessModel(processDefinitionId);

Does this answer your question?

Cheers,
Tassilo