--- url: "https://martinfowler.com/eaaCatalog/transactionScript.html" titulek: "Transaction Script" h1: "Transaction Script" popis: "Organizes business logic by procedures where each procedure handles a single request from the presentation." jazyk: "" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-13 21:08:34" znaku: 1100 slov: 159 kodovani: "utf-8" sha256: "2af111fb99631381389ac4193d18f0138d96ee421965d3cb3e7632f1bdb4bea9" --- # Transaction Script Organizes business logic by procedures where each procedure handles a single request from the presentation. Most business applications can be thought of as a series of transactions. A transaction may view some information as organized in a particular way, another will make changes to it. Each interaction between a client system and a server system contains a certain amount of logic. In some cases this can be as simple as displaying information in the database. In others it may involve many steps of validations and calculations. A Transaction Script organizes all this logic primarily as a single procedure, making calls directly to the database or through a thin database wrapper. Each transaction will have its own Transaction Script, although common subtasks can be broken into subprocedures. for more details go to [Chapter 09](https://learning.oreilly.com/library/view/patterns-of-enterprise/0321127420/ch09.html#ch09lev1sec1) of the online ebook at oreilly.com This pattern is part of [Patterns of Enterprise Application Architecture](.) [Martin Fowler](/) 05 March 2003