In earlier versions, it was possible to add an application level entity class to the hibernate config, and persist it through the same transaction as jbpm by getting the transaction from ExecutionContext.
I couldn't find a way to do so in jbpm4. The documentation has a reference to "Environment", but I couldn't figure out how to use it. Not to mention that the PvmEnvironmentFactory is not in API package and gives me a hint not to use it.
Any thoughts?
Is this what you are looking for?
This has details about what you need to do get things going,
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=158508
Let us know if you need more,