refactor, change numberOfResults from long to int (ProcessDefinitionService)
BS-8131, add ability to resolve dependencies for all processes