Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Business Rules screen assists businesses achieve its goals by giving more control over business behaviour.

Image Added

Procedures

Creating A Business Rule

...

  1. Enter the details.
  2. Click OK. The dialog will close and a new business rule will be created.
Info

...

A business rule clause in Framework ECM consists of an operand + a comparator + an operand.

...

 For example, the modified Initial Deposit Date must occur after the Sale Reported Date.

...


Info
To be complete, a business rule must also have a reversal.

...

 For example, the modified Sale Reported Date must occur before the Initial Deposit Date.

Disabling Individual Rules

...

Business Rules - String Syntax

...

Info
Incorrect use of business rules in Framework ECM may cause errors and/or unpredictable behaviour. If unsure how to implement business rule changes, please contact your Framework Solution Provider.

Any field in the Framework ECM database may have none (0) or more rules associated with it. For a new value to be accepted by that field, all rules of this field must evaluate to true.

...

  • 49882 - field context ID (long)
  • ‘2/4/99 - literal value (date)
  • ‘$4,500 - literal value (currency)
  • ‘Hooper - literal value (string)
  • ‘1:00 PM- literal value (time)

...

Info
If operands are of different types, an error will be generated.

Creating Clauses

If the value of the left operand is null (missing, empty, “”, white space, unknown, undefined), the clause is False.

...

  • [86 > %5.5%91] - Field 86 must be greater than 5.5% of field 91
  • [86 > *10*91] - Field 86 must be greater than 10 times field 91
  • [86 > -2-91] - Field 86 must be greater than field 91 minus 2
  • [86 = +12+91] - Field 86 must equal field 91 plus 12
  • [86 != /4.0/91] - Field 86 must not equal field 91 divided by 4
Info

...

The units of the parameter in the operation depend on the operation or the value of the field’s type. For all *,/ and % operations, the parameter is converted to a floating point double beforehand. For + and  operations, the parameter is converted to the same type as the field value. This may be numerical, date (days), time (minutes), currency (dollars), etc.

Using the third example above, if field 91 is a date, field 86 must be greater than field 91 minus 2 days.

...

  • Individual rules can be switched on and off in the f_customRule field
  • The message displayed to the user when a rule is violated is stored in m_notes
  • The ID of the context the rule belongs to is stored in l_context_id
  • Rule enforcement is enabled for a specific context (e.g.: region division) in the l_rDiv_id field in the rDiv table, and changes at log on/off. Thel_context_id of 0 will apply a rule to all regions/divisions.

...

Info
When a rule has been violated in Framework ECM, the screen remains in edit mode to enable the user to modify the offending fields to valid values. If the user cancels at this point, ALL CHANGES WILL BE LOST, including changed fields that satisfied their business rules.