[jboss-user] [jBPM] - Re: Forcing savepoints during workflow execution

Chris Melas do-not-reply at jboss.com
Mon Feb 20 04:00:28 EST 2012

Chris Melas [https://community.jboss.org/people/melc] created the discussion

"Re: Forcing savepoints during workflow execution"

To view the discussion, visit: https://community.jboss.org/message/717885#717885

> .... if in a sync service task I inserted some data into a DB (non-transactional maybe) and the engine crashes between this point and the next wait state then on resume this data will get inserted in the DB again.
One way of handling this is to place some logic before saving your data in order to check whether it actually needs to be saved or not. 
For example from your business logic i.e. do i have an entry for this entity with this id already? etc if it is not possible to have it from your logic then use the process instance id i.e. save the pid in a table associated to the specific entry.

However the same problem you mention may happen at any point of your code as long as it does not belong to the same transaction, so having a way to force saving the state is the same as saving it from the process.

Please take a look at the following discussion, it is a little long but i think this issue is discussed quite thorougly,
 https://community.jboss.org/message/649767#649767 https://community.jboss.org/message/649767#649767


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120220/0a1b4213/attachment.html 

More information about the jboss-user mailing list