cancel
Showing results for 
Search instead for 
Did you mean: 

how to get activities from a processdefinition

fanso
Champ in-the-making
Champ in-the-making
ProcessDefinitionEntity.getActivities()

why the result is  null ?
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Process-definitions you get from the process-definition queries don't have the activities initialized. You should get a ReadOnlyProcessDefinition by calling the public ReadOnlyProcessDefinition getDeployedProcessDefinition(String processDefinitionId) on RespositoryServiceImpl (you would need to cast your RepositoryService).