Multi-Instance Logic

Usage

When you use this function, all possible results are taken into account when processing rules in the business transaction, that is to say expressions can return several results. Without this function the system would only return one result.

Prerequisites

  • You have globally activated multi-instance logic. In Customizing for Customer Relationship Management, choose the application you use and go to Start of the navigation pathBusiness Rule Framework Next navigation step Activate Business Rule FrameworkEnd of the navigation path.

  • You have set the Multi-Instance Mode indicator for your required rules. To do this, choose Start of the navigation pathBusiness Rule Framework Next navigation step Configure Business Rule FrameworkEnd of the navigation path in BRF Customizing.

  • You have to deactivate the expression buffer for BRF events that process the tag expressions.

Features

A tag expression is a complex expression that consists of a sequence of tags from the tag hierarchy. The results returned by a tag expression depend on the filter settings you made in the related tag in the BRF.

There are two possible ways of filtering the results in the tags of a tag expression:

  • You define the filter setting for individual tags using a tag criterion. For example, the criterion "Sold-To Party" can be assigned for the PARTNER tag (business partner). You define tag criteria beforehand in BRF Customizing by choosing Start of the navigation pathBusiness Rule Framework Next navigation step Define Tag CriteriaEnd of the navigation path.

  • You define the filter settings using the formula editor. Tags for which the formula editor is available are identified by the pushbutton in the Formula Editor column.

    If you choose to set the Use Formula indicator for such tags, you specify that filtering is to be based on the formula editor rather than criteria. For example, you can use the time functions in the BRF formula editor to perform filtering on time-dependent data records.

When multi-instance logic is active, a BRF rule is executed consecutively for each result value read in a tag expression.

Example

You want to read the present salary of a business partner in the tag expression Current Salary. You use the Sold-To Party criterion for filtering the results in the Business Partner tag (this means you filter on this partner function) and filter the present salary in the Salary tag using the formula editor.



Figure: Tag Expression and Result Filtering

See also:

Example: Definition of a Tag Expression