I had the same issue as well. In the end I created my own JPA query using the entity manager. I had a requirement to create a runtime operation to check process meta data and this was the only way I could do it. I'm not convinced my approach is the best way...