
One of the most important aspects of a multi-tier application is the business logic. With Data Abstract's new Business Rules Scripting support, it is now possible to define your business logic with scripts written in JavaScript that will run across platforms in servers written in .NET/Mono, Delphi and in Relativity Server. Select business rules scripts can also be shared with the clients, allowing your application to perform validation of data for the client (for convenience & fast user response) and the server side (for security), without maintaining the rules in two places.
We Wrote the Book on This!
Read more about Business Rules Scripting in Data Abstract by downloading an advance preview chapter on the topic from our upcoming book on Enterprise and Cloud Database Application Development for Mac and iOS.
The book, written by Data Abstract for Xcode main architect marc hoffman and RemObjects Software developer evangelist Jim McKeeth, will be a comprehensive guide to Relativity Server and Data Abstract for Xcode, but the scripting chapter provided below offers content that is equally applicable to all editions of Data Abstract.
Download as PDF or ePub (for iBooks and other readers), free!
Data Abstract for .NET and Relativity Server use our open source RemObjects Script framework, which has just been completely revamped for version 2.0 to no longer require the Microsoft Dynamic Language Runtime, be much faster, and complete 100% of the EC5 EcmaScript test suite successfully. Data Abstract for Delphi uses Microsoft ActiveScript's JScript implementation. (Client-side Scripting support for Data Abstract for Xcode is currently in development and will use the JavaScriptCore framework that also powers Webkit.)

Scripting support can be added to your existing Data Abstract applications with the drop of a single component, and is available via a check-box option in the New Project wizards and Relativity Server. Both Schema Modeler for Windows and the all-new Schema Modeler for Mac (pictured above) allow editing of scripts to run on your servers, clients or both.
Business Rules Scripting provides a comprehensive API that allows your scripts to work with and validate data as it is being processed by the Data Abstract infrastructure. This includes event handlers that let you hook into the data access and data modification processes, an extensive JavaScript class library to work with requests, deltas and changes, and even a Local Data Adapter that lets you query and modify secondary data from within your (server-side) scripts. A comprehensive overview of this can be found on our Wiki.