cancel
Showing results for 
Search instead for 
Did you mean: 

List all ProcessDefinition

tunglk
Champ in-the-making
Champ in-the-making
Hi all,

I try use RepositoryService to get all ProcessDefinition but i'm not foud a method to do it.
With my application, i want list all ProcessDefinition and when user click one, it will display all ProcessInstance and task with each intance.

How can i do?
Thanks!
2 REPLIES 2

tunglk
Champ in-the-making
Champ in-the-making
I just use:     
        List<ProcessDefinition> abc = repositoryService.createNativeProcessDefinitionQuery().list();
     System.out.println(abc.size());

but it print: 0
and on database SELECT count(*) FROM ACT_RE_PROCDEF = 20.

balsarori
Champ on-the-rise
Champ on-the-rise
You can get all process definitions by using ProcessDefinitionQuery

[java]
List<ProcessDefinition> myProcessDefinitions = repositoryService.createProcessDefinitionQuery().list();
[/java]