# Intro / Motivation

You might wonder, what exactly constitutes business logic in this scenario? To provide a comprehensive explanation, we'll delve into two real-world scenarios recently developed for a CoB client.

Upon completing the setup of their server and implementing the desired look and feel changes, along with custom user interfaces to streamline the use of the CoB system, the client requested additional modifications in the realm of business logic. These included:

  • Automatically sending an email to the responsible person for a "contract" if it is nearing expiration, on the first day of every month. This email would contain details of the expiring contracts, along with supplemental information.

  • Upon entering the start date and duration of a contract during its creation or update, automatically calculate the end date and populate the corresponding field in the RecordM, eliminating the need for user intervention.

We'll now outline the various steps taken to fulfill these requests for our client.