Wednesday Sep 25, 2013

Using a Soft Enter to Make Calculation Rules More Readable

Jasmine Lee | Oracle Policy Automation Expert @ Oracle

As calculation rules get longer they become more difficult to read. Consider the two example rules below.

The rule below is short, has few inputs, and thus is very easy to read:


The rule below is longer, has far more inputs, and is a little more difficult to read:


You can make a long calculation rule easier to read by using a 'soft enter' (Shift+Enter). A 'regular enter', i.e. just hitting the enter key, inserts a hard enter which moves the remaining content to a new line and also indicates a new paragraph. This means that all formatting associated with a new paragraph will apply. From an OPM rule perspective it means the remaining content would become detached from the start of the rule, and the rule would be broken.

A soft enter moves the remaining content to a new line, but it does not indicate a new paragraph. This means you can make the rule appear like the example below, without the rule being broken.


In the example above, a soft enter was inserted between each item in the calculation, making it much easier to read. Below is a screenshot of the same rule with the formatting marks displayed. Notice that the only paragraph mark (  ) appears at the very end of the rule, whereas the other lines end in a soft enter (  ).



About

Welcome to the OPA blog where Oracle's Policy Automation experts share their views on everything OPA.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today