ProcessDefinitionRef ref = ModelAdaptor.adoptDefinition(processDefinition);
results.add(ref);
}
// suspended processes
ProcessDefinitionQuery pdQuery2 = repositoryService.createProcessDefinitionQuery();
pdQuery2.suspended();
List<ProcessDefinition> suspendedPds = pdQuery2.list();
for(ProcessDefinition p : suspendedPds)
{
ProcessDefinitionRef ref = ModelAdaptor.adoptDefinition(p);
ref.setSuspended(true);