unification of persistence and transaction handling for jbpm and human task

(cherry picked from commit a0547526c1602899f1daf566b3f1c65a9a9727dc)
added missing environment key