suprit chaudhary [https://community.jboss.org/people/supritchaudhary] created the discussion
"Re: jBPM 5.2 with Custom transactions." To view the discussion, visit: https://community.jboss.org/message/759369#759369 -------------------------------------------------------------- If you have service task in workflow, they all will run in same thread context, which have started the process. In the very first service task call "userTransaction.begin();" and in the the last service task call "userTransaction.commit();" Remeber to call flush() followed by persist() to avoid transaction errors. Sample Code: "entityManager.persist(someObject); entityManager.flush();" -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/759369#759369] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
