Function Alias
form
|
Identify the function rule and the prompt text to appear for each parameter.
After you save the rule form, use the Preview toolbar button () to review the presentation of the alias rule, and the Run toolbar button () to test the function alias rule in conjunction with the function rule.
Choose a function.
Field |
Description |
Select a Function |
Click when defining a new function alias rule to find the Library, Name, and RuleSet through searches rather than selection. On the pop-up window, select the return type of the function you want in the Filter by field. Enter a word or partial word in the Find box, then click Go repeatedly to review in sequence any functions that contain that word in the name. Click Open to review a function rule, and click Select to record your choice.
Choose a function that returns a Boolean, integer,
or other primitive return type, or a string
( |
Function Reference |
These fields are copied from the selected function rule. |
Name |
The name of the function (Rule-Utility-Function rule type) that this rule provides an alias for. Click the pencil icon () to review the function defined by the Name, RuleSet, and Library fields. |
Returns |
The return type of the function, from the function rule. |
Description |
The function description, from the function rule. |
Library |
The library containing the function. |
RuleSet |
The RuleSet to which the function belongs. |
This array contains a row for each function parameter, in the order they appear in the function signature. You cannot add or delete rows from this array.
Complete each row to determine whether and how users enter a value for the parameter. Every parameter must be accounted for, even if the corresponding parameter number does not appear in the Template field.
Field |
Description |
Input Parameters |
|
1., 2., 3. |
Note the sequential number of each parameter, as this identifies the parameter in the Template text. |
Name |
Name of the parameter, from the function rule. |
Description |
Enter a text description for this parameter, as internal documentation of this function alias rule. |
Prompt Type |
Select to determine how the system prompts users to enter a value for this parameter within the template when this alias is selected:
|
(no label) |
Complete the prompts corresponding to the choice you made in the Prompt Type field:
|
Default |
Optional. Provide a literal constant default value for this parameter, or enter a property reference starting with a period. |
Field |
Description |
Presentation | |
Return type |
Select the type of the function return when this alias function rule is used. Ordinarily, this is the same as the type of the function, but you can choose another type if desired, to cause the system convert the result to a different (compatible) type. See Data type conversions in expressions. |
Template |
Enter a text description of this function suitable for display in decision rules. Surround references to parameters in this text by curly brackets. Identify each parameter by number, as: Integer remainder of {1} divided by {2} The system uses the Short Description
of the function as the default text in this field,
followed by all parameters in curly brackets. You can
edit it as desired. Make sure all the parameters are
identified, except for those you marked |