Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 2 Concepts : Rules

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:
You can add and edit rules in TIBCO Business Studio Forms as described in the following sections:
Add a Rule Using the Outline View   To associate rules with events and actions, select the appropriate Events or Actions tab.
Add a Rule Using the Rule Wizard   When using the Rule Wizard, you can also remove the rule.
Rules Summary Table
The summary table for Rules provides a useful overview of the rules.
To see each rule in the current project, select the Rules node in the Outline View.
Figure 50 Rules Summary Table
This table displays the following columns:
Name   Name of the rule. To edit the name, click on the ellipsis (...) button, which appears when the name is selected. Edit the name using the Enter the Name page.
Label   Editable Label of the rule.
Edit   Displays the text Edit as a hyperlink. When clicked, will navigate to the configuration property screen for that rule.
Enabled   Displays a check box. If selected, then the rule is enabled.
Events   Non-editable, drop-down list of events that trigger this rule; for example, Form Open, Update of Control FirstName (firstName).
Actions   Non-editable, drop-down list of actions that are invoked by this rule. Each item will be in the form of [Action Label] (Action Name).
 
The standard cancel, close, and submit actions destroys the form. You need to ensure that any user-defined actions for the Cancel, Close, and Submit button click event should precede their respective standard actions.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved