If you enable persistence and BAM feature as explain in user guide (http://docs.jboss.org/jbpm/v5.1/userguide/ch07.html#d0e2836) you can query your database to retrieve all NodeInstanceLog that has an entry with type = 0 but not his related entry with type = 1.
Francesco.