|
||||||
An Introduction to Business Rules ProgrammingHow to Start Building Work Process and Practices into SoftwareBusiness rules are representations of the practices and process built ( and often evolved) within an organisation.Added to applications they benefit everyone
Business rules are a very important consideration in a modern organisation. Used correctly they can encapsulate the processes and practices of the organisation, and there are a number of advantages in using them:
Of course, it must be remembered that enough time must be set aside to produce the business rules, and that's because:
However, once all of those issues have been resolved then the programmer can start incorporating the business rules into applications. Identifying the Business RulesBefore going near any software, the programmer must understand the business rules to be used. The key to this is to have access to people that:
At the end of the process the programmer will (hopefully) have a mapping of the organisation's process (or at least the process containing the business rules) and they can then consider including these in an application. To Hard Code or Not to Card Code Business RuleAt its simplest level a business rule is just a set of if..then..else statements, for example: function business_rule (status)
if (status = "site required") then
notify("planning department")
else if (status = "planning approved") then
notify("building department")
else if (status = "building completed") then
notify("site kitters")
notify("letting agents")
end if
end function
The programmer can easily build this into any programming language. However, there is a potential problem. Business rules tend to be fluid, for example:
With this in mind it is a bad idea to hard code the business rules into an application. The users really won't appreciate yet another update because their manager has realised that they've missed out a key step (or needs a new one adding in). Instead it is better have design the application so that it can access business rules that reside outside of the application itself. If this is done then it is possible to update the business rules without having to change the application. Possible Solutions for Business RulesThe business rule programmer has many ways in which they can create a two-tier application. For example, they may:
Or they may choose to use applications that specialised in making business rules easy to write (see How to Create a REBOL Dialect). But, whichever method they decide upon they must:
And by doing this the programmer will create a business rule application that is powerful, adaptable and will aid the day to day lives of their users.
The copyright of the article An Introduction to Business Rules Programming in Computer Programming is owned by Mark Alexander Bain. Permission to republish An Introduction to Business Rules Programming in print or online must be granted by the author in writing.
|
||||||
|
|
||||||
|
|
||||||