JBoss Community

Re: Running humantasks with HumanTaskService(Running in JBoss)

created by Miljenko Norsic in jBPM - View the full discussion

Hi Rajan,

 

according to Hibernate docs, I suspect the problem might be because you are not using user transaction (java:comp/UserTransaction). Please see the following topic: https://forum.hibernate.org/viewtopic.php?t=970727&view=next&sid=e94d5d4e467a4eed7d35cfe6869dd8e0.

 

Try the following:

UserTransaction ut = (UserTransaction) new InitialContext().lookup("java:comp/UserTransaction");

ut.begin();

//....add users and groups

ut.commit();

 

Thanks,

Miljenko

Reply to this message by going to Community

Start a new discussion in jBPM at Community