Sie sind auf Seite 1von 3

Business Rule Framework (BRF)

Purpose
The BRF is an event-controlled runtime environment for processing rules. You can assign any number of rules to each event, whereby a rule normally consists of a Boolean expression and an action. If the expression returns the value TRUE, the action is executed. The BRF also contains a maintenance environment in which you can edit and configure BRF objects. You can configure both technically oriented as well as business process oriented rules. This means that you configure the rules in the maintenance environment, and the rules are processed in the runtime environment. The BRF is object-oriented and therefore offers appropriate enhancement mechanisms that are modification-free and upgrade-independent. "BRF event" is the term for a calling point from within the application to the BRF. This linkage is fixed, and the call is synchronous. For this reason, a BRF event should not be viewed like ABAP-OO or the "Observer Pattern" where an event only represents a loose linkage between two software components.

Notes on Implementation
The main situations in which you as a BRF user will be confronted with the BRF might be as follows: You want to integrate the BRF with an application for the first time.

In this case, we recommend that you first read First Steps Towards Your Own BRF Application. You want to make a BRF-related enhancement to an application that already uses the BRF. You want to configure rules for an application that is already linked to the BRF.

Integration
Every application that wants to use the BRF must be registered under a unique application class in the BRF. The application must call BRF events that contain rules that need to be processed.

Example

You can use the BRF to check whether an address that has been entered in an application is complete, for example: In the BRF you can specify that address data is complete if at least the street and postal code have been stated. If these fields have not been filled, the system executes a particular action. Possible expression (Address is incomplete):

(street = initial) OR (postal code = initial), in other words, if one of the two fields is initial, meaning that the field/s do not contain a value, the action that has been defined will be executed. Possible Actions:

The system displays a message that the address is incomplete What is important here is as follows: You can configure the expression to define yourself what an incomplete address is, without having to change the code of the application or perform any programming. In the configuration, you can determine yourself what the consequence should be if the expression returns the value TRUE.
Other Examples

The following table provides further examples from the SAP Claims Management insurance solution. Event Event After Change to Subclaim Status Expression Action Expression: Subclaim opened Action Subclaim opened If the current subclaim status is Subclaim Opened, the The purpose of the expression delivers the value action is to create TRUE. the log entry Subclaim has been opened. If the subclaim has Expression Subclaim closed: Action: Subclaim been closed, then closed: create the log entry If the current subclaim status Subclaim has been is Subclaim Closed, the The action consists closed. expression delivers the value of creating the log TRUE. entry Subclaim has been closed. Event Change to If it has been stated Expression1: Vehicle is Action: Offer Data on that the damaged on the road. External Service: Damaged vehicle is on the Vehicle road but is not Expression 2: Vehicle is The action consists Rule If the subclaim has been opened, create the log entry Subclaim has been opened.

roadworthy, then offer to provide a towing service.

not roadworthy.

of creating a task that induces the Expression 3: Expression agent to offer to provide a towing 1 AND Expression 2. service. Expression 3 is TRUE if it has been stated that the damaged vehicle is on the road and is not roadworthy.

Das könnte Ihnen auch gefallen