Download all process definitions as bpmn files which are deployed


#1

Hi,

I would like to download or export all the deployed process definitions using Java API not Rest call. Could you please help me with it?

Thank you,
Sowmiya


#2

You could use the rest API to first get all deployed definitions and then get the BPMN XML for each.


#3

Without using rest api? something using repositoryService or any other service. I can find functions to pass process definition id. I need list of process definition id


#4

Do you want to use the Java API instead?


#5

Yes please. Thats would suffice


#6

This should do the trick

    processEngine().getRepositoryService().createProcessDefinitionQuery().list();
    
    processEngine().getRepositoryService().getProcessModel("someID");

#7

Thank you so much ! worked! :slight_smile: