WebSphere

 

Portal Express, Version 6.0
Operating systems: i5/OS, Linux, Windows

 

Example: Simple binding

Because bindings couple the conditional processing of a profiler with the functional power of an action, the simplest form of a binding works like a conditional “if-then” clause.

For example: If the current user is not a previous customer, then show a limited number of current offers. If the current user is a known customer, then show offers appropriate to their status level.

In the example below, the profiler Customer Type is used to check whether the current user is a known customer. If the customer is not a known customer, the action Get Limited Number of Offers is executed. If the profiler indicates the user is a known customer with a status of Gold or Platinum, then a different action is executed and different offers are retrieved for display.

  When Customer Type is
       Not A Customer
          do Get Limited Number of Offers
       Gold or
       Platinum
           do Get Offers For User
       order as is

 

Parent topic:

Bindings