Thanks, that helped a lot. I think the console should see processes from java code if I get the history log to work. I saw this quote in another thread:
Demian Calcaprina:
Jbpm console looks the processes in history logs database
Maybe I can confirm this, but the history log still does not work. I added the code you mentioned and created a META-INF dir to place the persistence.xml I found in the documentation. Now I get another exception:
javax.naming.NameNotFoundException: unable to find a bound object at name 'jdbc/processInstanceDS'
Thats quite interesting since this object is used in the persistence.xml I used.
I add a screenshot of my workspace (plain jbpm installer 5.2 sample with modifications that are mentioned in this thread) so you can see what I could have done wrong.
https://community.jboss.org/servlet/JiveServlet/downloadImage/2-648644-17831/450-246/myWorkspace.png