Custom Rules

There are situations when custom rules need to be coded. These are for situations too complex for a declarative rule. The process is as follows: