Development / Project Explorer

  Business Rules

Development / Project ExplorerPrint||
Business Rules

Business rules extend the functionality of a web application through custom code.

Business rules are located under the Business Rules node of a controller. The icon of a business rule is different for each business rule type: SQL, JavaScript, C#/Visual Basic, or Email.

Business rules that belong to Orders controller in the Project Explorer.

Creating a Business Rule

A business rule can be created by using the context menu option New Business Rule on the Business Rules node.

New Business Rule context menu option in the Project Explorer

Enter a Command Name, Type, Phase, and Script if necessary. Press OK to save, and the business rule will be added to the list.

Reordering Business Rules

The order of business rules reflect the execution sequence.

Dropping a business rule onto another business rule will place it after the target rule.

Dropping r100 business rule onto r101 business rule.     Business rule r100 placed after r101.

Dropping a business rule on the right side of a business rule will also place it after the target rule.

Dropping business rule r101 on the right side of r100.     Business rule r101 is placed after r100.

Dropping a business rule on the left side of a business rule will place it before the target rule.

Dropping business rule r101 on the left side of r100.     Business rule r101 placed before r100.

The context menu commands Cut/Copy and Paste will also move business rules.

Cut context menu option on a business rule node.

Business rules can be moved to another controller by dragging onto another controller node.

Dropping r100 business rule on Order Details controller. Business Rule r100 placed under Business Rules node of OrderDetails controller.

Dropping onto another Business Rules node will place the business rule at the bottom of the list.

Dropping r101 business rule onto the Business Rules node of Order Details controller. Business rule r101 placed at the bottom of Business Rules node in OrderDetails controller.

Renaming Business Rules

The ID of a business rule can be changed using the context menu option Rename.

Rename context menu option for business rule in the Project Explorer.     Business rule r101 in Rename mode.

Editing Business Rules

For SQL, JavaScript, and Email business rules, the script can be changed by opening the business rule in the Project Browser.

Open context menu option in the Project Explorer.

Code business rule files can be opened by using the context menu option Edit in Visual Studio.

Edit in Visual Studio context menu option in the Project Explorer.

Deleting Business Rules

Business rules can be deleted by using the context menu option Delete, or the Delete keyboard shortcut.

Delete context menu option in the Project Explorer.

Table of Contents