Rules

Rules provide a way to model the behavior or presentation logic of the form with minimal coding. This makes the logic easier to identify and maintain by both developers and business analysts.

Rules consist of events and actions. For example, the rule “Guardian required when Age < 21” is modeled as:

Event:
CustAge updated
Action:
GuardianName.Required = (CustAge < 21)

Whenever Customer Age changes, the Guardian Name field is marked as required only if Customer Age is less than 21.

Rules are associated with events and actions as follows:

  • Events are used to trigger the rules, to define when the actions are performed. For any rules that are triggered by the same event, they will be executed in the order in which they are defined in the form model.
  • Actions define what will be performed. They can be individually enabled or disabled in the rule. The actions within a rule will also execute in the order defined in the form model.
    Note: Business analysts can add rules, edit their general properties and descriptions, and add events. They cannot create new actions, but they can re-use the already defined shared actions.

You can add and edit rules in TIBCO Business Studio Forms as described in the following sections: