[jboss-user] [jBPM] New message: "Re: Automatic transition from wait state - is it correct?"
Peter Meggitt
do-not-reply at jboss.com
Mon Mar 1 16:14:43 EST 2010
User development,
A new message was posted in the thread "Automatic transition from wait state - is it correct?":
http://community.jboss.org/message/529206#529206
Author : Peter Meggitt
Profile : http://community.jboss.org/people/jbossphan
Message:
--------------------------------------------------------------
I haven't made use of "state" activities. Looking at the code it looks like a "state" activity will end the current transaction. Transaction demarcation is very important, especially if you are interacting with an external system. You don't want to hold a transaction open while waiting for an external operation to complete. You should let JBPM handle the timeout for you (and possibly have 1 transition for normal work and 1 transition for timeout). If the operation completes before the timeout, the job in the timeout queue needs to be deleted. If you go and add another timeout in the same transaction this might cause a problem. What table/constraint is being violated?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529206#529206
More information about the jboss-user
mailing list