Fix for job process definition id and adding process instance ids query option to REST API