Siebel Personalization Administration Guide > Targeting Content by Using Expressions >

Writing a Business Rule


See also Displaying the Personalization Business Rules Designer, Personalization Business Rules Designer Contents, and Process of Creating Business Rules.

This section shows how to write a business rule using the Personalization Business Rules Designer.

Writing Rule Example

The following example shows how to write this rule:

EXISTS([Related Product] = GetProfileAttr("ProductInCart"))

which shows products that are related to products in the Siebel eSales Shopping Cart.

Writing a Personalization Rule

This procedure describes how to write a personalization rule.

To write a personalization rule

  1. Click the icon in a selected expression field.
  2. Choose Operator from Categories, Pattern Matching from Subcategories, and EXISTS from Elements, and then click Add Element.

    The Expression box displays EXISTS(<condition>).

  3. Click <condition> to highlight it.
  4. Choose Business Component Fields from Categories, <All> from Subcategories, and Related Product from Elements, and then click Add Element.

    The Expression box displays EXISTS([Related Product]).

  5. Place the cursor after [Related Product] in the Expression box, then click = in the Quick bar.

    The Expression box displays EXISTS([Related Product]=).

  6. Place the cursor after =.
  7. Choose Function from Categories, Profile from Subcategories, GetProfileAttr from Elements, and then click Add Element.

    The Expression box displays:

    EXISTS([Related Product]= GetProfileAttr(<attribute>))

  8. Click <attribute> to highlight it, and then type "ProductInCart".

    The Expression box displays the completed rule:

    EXISTS([Related Product] = GetProfileAttr("ProductInCart"))

  9. Save the rule to validate it and put it in the expression field.
Siebel Personalization Administration Guide Copyright © 2006, Oracle. All rights reserved.