This topic shows how a dynamic business rule would utilize a user profile.
In the following scenario, an online clothing retailer wants to set up a dynamic business rule that says: "For young women who are browsing stretch t-shirts, also recommend cropped pants." We follow the shopping experience of a customer named Jane.
In order to set up this rule, a few configuration steps are necessary:
In Oracle Commerce Developer Studio, the retailer creates a user profile called
young_woman
, which corresponds to the set of customers who are female and are between the ages of 16 and 25.In Oracle Commerce Workbench, a dynamic business rule that uses the profile as a trigger is created, as shown below. No complex Boolean logic programming is necessary here. The business user simply selects a user profile from a set of available profiles to create the business rule.
young_woman X DVAL(stretch t-shirt) => DVAL(cropped pants)
In the Web application that’s driving the customer’s experience, there needs to be logic that identifies the user and tests to see if he or she meets the requirements to be classified as a
young_woman
. Alternatively, the profileyoung_woman
may already be stored along with Jane’s information (such as age, address, and income) in a database or LDAP server.
The user’s experience would go something like this:
Jane accesses the clothing retailer’s Web site and is identified by a cookie on her computer. By looking up a few database tables, the application knows that it has interacted with her before. The database indicates that she is 19 years old and female.
At this point, the database may also indicate the user profiles that she belongs to:
young_woman
,r_and_b_music_fan
,college_student
. Alternatively, the application logic may test against her information to see which profiles she belongs to, as follows: "Jane is between 16 and 25 years old and she is female, so she belongs in theyoung_woman
profile."As Jane is browsing the site, the Oracle Commerce MDEX Engine is driving her catalog experience. As each query is being sent to the Oracle Commerce MDEX Engine, it is augmented with user profile information. Here is some sample Java code:
profileSet.add("young_woman"); eneQuery.setProfiles(profileSet);
As Jane clicks on a stretch t-shirt link, the Oracle Commerce MDEX Engine realizes that a dynamic business rule has been triggered:
young_woman X DVAL(stretch t-shirt)
. Therefore, it returns a cropped pants record in one of the dynamic business rule zones.Jane sees a picture of cropped pants in a box labeled, "You also might like..."