You can use the EntityManagerFactory that you put in the Enviroment to create a SteatefulKnowledgeSession to get an EntityManager and create a query like
SELECT n FROM org.jbpm.process.audit.NodeInstanceLog WHERE ...
Reply to this message by going to Community
Start a new discussion in jBPM at Community