The Rule Wizard provides a simple interface for creating data-entry rules, including specifying the type of rule, preconditions, expression, and actions.
Navigate through the wizard using:
The Rule Wizard has the following tabs.
In the Quick Start tab, you choose the type of rule to create.
Note: The tab appears when you create a rule but not when you view an existing rule.
Quick Start tab of Rules Wizard - Option descriptions
Option | Description |
---|---|
Intrinsic Rule | An intrinsic rule is a constraint rule or calculation rule based on a predefined rule template. Rule templates can be created for constraint rules and calculation rules. If no rule templates have been defined for the selected study object, then you cannot create an intrinsic rule for the study object. |
Constraint Rule | A constraint rule checks whether data is valid. |
Calculation Rule | A calculation rule sets the value of an item based on a calculation. |
In the Properties tab, you provide a name and a brief description for the rule.
Properties tab of Rules Wizard—Option descriptions
Option | Description |
---|---|
Name | The name of the rule:
|
Description | Description of the rule. The Description field can contain a description of the rule or the formal specification that is used by the actual rule developer. The limit is 2000 characters. |
In the Preconditions tab, you select from the options in the Evaluate on Event drop-down list to specify when the rule will be evaluated.
Preconditions tab—Option descriptions
Option | Description |
---|---|
Evaluate on Event | Event that causes the rule to execute:
|
Select the rules which should execute before this rule | Reserved for future use. |
Execute this rule only if the following expression is true | Reserved for future use. |
The Expression tab has two views, one for creating an intrinsic rule and another for creating a calculation or constraint rule.
For detailed information about creating rule expressions, see Components of a rule expression.
Expression tab—Option descriptions
Option | Description |
---|---|
Expression workspace | (Read-only for intrinsic rules) Provide the expression of the rule. |
Parameters section | (Visible only for intrinsic rules) Provide the parameters for the function. |
Data Mappings tab | Lists:
|
Constants tab | Lists constants created in the study and the libraries that appear in the Libraries List in the Study Editor. Any rule in the study can reference a constant. |
Functions tab | Lists functions registered in a study and the libraries that appear in the Libraries List in the Study Editor. Any rule in the study can reference a function. Note: This tab does not appear for intrinsic rules. |
Data tab | Lists study objects in the scope of the rule. Optionally, to view the rule model properties of all of the study objects, select Show all. |
In the Actions tab, you specify the action, or actions, that occur as a result of executing the rule.
Actions tab—Option descriptions
Option | Description |
---|---|
Add Action button | Add an action to the rule. Note: Click the Add Action button after defining an action only if you need to add another action. |
Delete Action button | Delete the action selected in the Actions grid. |
Grid |
|
Fire Event | Event that causes the action to occur. You select the event in the If The Value Is section. |
Actions | Action that occurs. |
If the value is section |
|
False | If the rule calculates a False value, the action occurs. |
Always | (Default for calculation rules) The action always occurs. |
True | If the rule calculates a True value, the action occurs. |
Only if no other action executes | The action occurs only if no other action occurs. Select this option only if you define at least two actions. |
Values to specify |
Note: You can include string values in the Equals and Not Equals fields. Enclose the string in double quotes. For example, "text". |
(Inclusive) checkbox | Select this option to make the number comparisons inclusive. For example, Less Than becomes Less Than or Equal To. |
Execute these actions grid |
|
Action | Available actions. Note: Actions appear after you select the event that causes the rule to execute. |
As you create a rule, the Rule Summary reflects the structure of the rule, including precondition, action, and expression information. Click a link in the Rule Summary to navigate through the Rule Wizard.
Copyright © 2013 Oracle and/or its affiliates. All rights reserved. |
---|