14.01.2020 Views

ABAP_to_the_Future

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating Rules in BRFplus: Complicated Example 9.3

왘 Color

Also mandatory: most of the time, the customer chooses green.

왘 Monster model

Also mandatory: the best-selling model is the ever-popular “bolts through the

neck.”

왘 Minimum oxtail soup percentage

Optionally, a customer can specify the minimum percentage of oxtail soup to

be in the monster’s blood. This is n eeded to keep the monster warm during

cold nights.

왘 Growth percentage

Optionally, a customer can specify that, when angry, the monster increases in

size by a specified percentage.

왘 Early age strength

Normally, a monster achieves its full strength at 28 days old, full strength being

defined as being able to carry 25 elepha nts on one finger without breaking a

sweat. Since that is usually good en ough, specifying early age strength is

optional. If a customer needs a strong monster in a hurry, though, then the customer

can specify “early age strength”— for example, 20 elephants by seven

days old.

In addition, the business expert has provided requirements about how to split up

ingredients appropriately in the form of a spreadsheet ; as you can see, the columns

in the spreadsheet correspond to the parameters that the customer has to

enter when specifying their monsters’ requirements. The actual spreadsheet goes

on forever; a small subset is shown in Figure 9.29.

Figure 9.29 Complex Rule Spreadsheet

389

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!