Yes, but you can have jBPM do it for you. Create or load your process instance 
using the methods JbpmContext.newProcessInstanceForUpdate() or 
JbpmContext.loadProcessInstanceForUpdate() and jBPM will register the instance 
for auto-save.

By the way, if you create a process instance, signal it in the same transaction 
and the signal results in the creation of a timer that fires before the 
transaction commits, you will still get the constraint violation even if you 
use the above methods. In this case, you will have to create the process 
instance, commit the transaction and then reload the process instance in a new 
transaction before sending a signal() to it.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3933207#3933207

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3933207


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to