Online Helps > Rule Team Server Online Help > Understanding Your Rules > Actions

The action part of a rule describes what to do when the conditions of the rule are met, and in some cases what to do if the conditions are not met. Actions are represented in the Rule Editor by whatever appears after then and else.

For example, in the following rule, 20 is added to the score if the borrower has never filed a bankruptcy:

if
   it is not true that `the borrower' has filed a bankruptcy
then
   add 20 to the corporate score in `the loan report'

Note
Though the definition and condition parts of a rule can be empty, this is not the case for the action part, where at least one action must be specified.

If there are more than 1 action to perform, they are carried out in the order in which they appear in the action part.

The else part of a rule is an optional block of actions that specify what to do when the conditions are not met. For example, in the following rule, there are actions when the loan is accepted but also when it is not accepted:

if
   'the loan report' is approved
   and the loan grade in 'the loan report' is one of { "A" , "B" , "C" }
then
   in 'the loan report' , accept the loan with the message "Congratulations! Your loan has been approved"
else
   in 'the loan report' , refuse the loan with the message "We are sorry. Your loan has not been approved"

It is also possible to refine the use of the else part of a rule by setting variables in the definitions part. This is explained in section Use Definitions with the Else Part.

Related Sections

Using the Rule Editor
Conditions
Definitions
Rule and Decision Table Editing Tutorial
The Rule Team Server Environment
Rule Team Server Basics
Explore: Manage Your Projects
Compose: Create Project Elements