Bundles and database transactions

Gosu provides APIs to change how changes to Guidewire entity data save to the database. For many programming tasks in Gosu, such as typical rule set code, you may not need to know how database transactions work. For some situations, however, you must understand database transactions, for example:

  • Adding entities to the current database transaction
  • Moving entities from one database transaction to another
  • Explicitly saving data to the database (committing a bundle)
  • Undo the current database transaction by throwing Gosu exceptions.
Warning: Only commit entity changes at appropriate times or you could cause serious data integrity issues. In many cases, such as typical Rule sets and PCF code, it is best to rely on default behavior and not explicitly commit entity data manually.