Ektron
Creating Business Rules for Your Website
Prerequisite
Only members of the Administrators user group and those defined in the Manage Members for Role: Add Role Member Business Rule Editor screen can work with Business Rules. See Also: Defining Roles
Business Rules let you define conditions for Web pages on your site. You choose an action based on whether the conditions are true or false when a site visitor browses your site. For example:
With Business Rules, you do not write code to set conditions and initiate actions. You simply complete the Business Rules wizard, have your developer add a Business Rules server control to your Web form, and assign a Business Ruleset to the server control. See Also: BusinessRules server controla server control uses API language to interact with the CMS and Framework UI to display the output. A server control can be dragged and dropped onto a Web form and then modified..
Business Rules start out with a ruleset made up of one or more rules. Rules consist of conditions and actions. There are several predefined conditions and actions for rules.
Conditions include:
Actions include:
When a rule is defined, you can add it to multiple rulesets. This is useful if several rulesets use a common rule.
There are 2 ways to select an existing rule:
You can now add a rule (as described in Add a New Rule to a Ruleset ) or click Back () and return to add a rule later.
After creating a ruleset, you typically add rules to it via the View Ruleset screen. This screen is the launch pad for working with existing rulesets or creating new rulesets.
You can edit a ruleset from 2 locations: the Web page or the Workarea. To edit a ruleset from the Web page, navigate to a Business Rule on a Web page while logged in. Then, right click the Business Rule icon and click Edit.
To edit from the Workarea:
IMPORTANT: The rule must be inactive (check box deselected) for you to remove the rule. If the check box is not empty, the rule will only appear as though it has been removed.
The order of rules in a Ruleset affects their application when a site visitor views a page. For example, you want to display a welcome message before a content item. To accomplish this, move the rule for the welcome message above the rule for a content item.
When you delete a Ruleset, it is removed from the system permanently. However, rules in a Ruleset are not deleted because they can be used in multiple Rulesets.
Does the site visitor's system have an Ektron cookie?
Usage: Cookie param “Name” equals value “Ektron”
A form has a Choices Field element with the Field Name “Favorite_Food” and choices of Pizza, Steak and Chicken. When a site visitor chooses Pizza and clicks submit, your rule launches a Pizza company’s website.
Usage: Form param “Favorite_Food” equals value “Pizza”
Is content with the ID of 18 being displayed?
Usage: QueryString param “ID” equals value “18”
Is the site visitor’s browser using SSL?
Usage: Server Variable param “HTTPS” equals value “On”
Is the user's account balance $1000?
Usage: Custom param “AcctBlnc” equals value “1000”
You can add a rule to multiple Rulesets. To do so: