Technical data
Creating Rules, Formul as, and User Functions Chapter 10
INC(&Profit, REVENUE);
DEC(&Profit, EXPENSE)
The lifetime of a variable is a single evaluation of the rule; the value of a variable is not preserved across
multiple evaluations.
Inserting a Built-in Function into a Rule
To insert a built-in function into a rule:
1. Select the pla
ce in the rule where you want to add the function.
2. Click the Past
e Built-in Function button.
TheChooseBui
lt-in Function drop-down list box appears.
3. Use the scroll
bar to scroll through the list of built-in functions.
4. Click the desi
red built-in function.
PeopleSoft Ana
lytic Calculation Engine pastes the built-in function and argument names into the
rule bar.
5. For each argum
ent:
a.
Highlight the argument.
b. Replace the highlighted argument with the argument value.
6. Complete your work on the rule, and then:
• Click the Accept Changes button to accept the changes.
• Click the Exit Formula Mode button to keep the changes without validating the rule.
• Click the Cancel Changes button to cancel the changes.
See Also
Chapter 11, “U sing Built-in Functions in Analytic Models,” Built-in Function Reference, page 139
Inserting a Us
er Function into a Rule
To insert a user function into a rule:
1. Select the place in the rule where you want to add the user function.
2. Click the name of the user function in the part browser.
PeopleSoft Analytic Calculation Engine pastes the user function into the rule bar.
Note. If you enter a user function name that does not exist, the analytic calculation engine returns
an error when validating the analytic model.
Inserting a Numeric Value or Text Value into a Rule
To insert a num
eric value in a rule, enter the value (for example, 12).
To use a text value in a rule, enter the value and enclose it in double quotes (for example, "Smith").
128 Copyright © 1988-2007, Oracl e. All rights reserved.