cancel
Showing results for 
Search instead for 
Did you mean: 

Get ProcessDefinitions (Java API)

gant
Champ in-the-making
Champ in-the-making
Hi,

I'd like to get all process definitions deployed on the engine (the latest version, if there is more than one). I can't find nothing in the user guide and Javadoc.

In the REST-section of the user guide, i can see, that

GET /process-definitions?start={start=0}&size={size=10}&sort={sort=id}&order={order=asc}

that is, what I want, is equivalent to

ProcessEngines.getProcessEngine(configuredProcessEngineName).getProcessService().createProcessDefinitionQuery().listPage()

But I can't find ProcessService anywhere. so how can I do this in a different way?

Regards
michael
1 REPLY 1

gant
Champ in-the-making
Champ in-the-making
Found it:

repositoryService.createProcessDefinitionQuery().latestVersion().list();
seems to work.