Transaction handling in BPM

Hi,

Is there any way to implement transaction on Process level? How will the database operations get rolled back in case a process instance fails after 2-3 database inserts? Is there anything out of the box for transaction handling?

Thanks and Regards,
Ninad Patil