Added process definition key to deployment query
Cherry pick of deployment category update and process definition key query