Function form
|
|
Complete the Parameters tab to declare input parameters for the function, and to test it before you affect other developers by publishing the function.
Because of Java language requirements, a function rule must have a fixed number of parameters. Variable-length argument lists are not permitted.
Plan parameters carefully. After you save a Function form, you cannot change the name, order, or type of parameters. (Use Save As instead of Save in this situation, then delete the unneeded function rule.)
Field |
Description |
Parameter Name |
Enter a variable name that is an input to the function. |
Java Type |
Enter a Java data type for this parameter, such as
When the system generates the Java from a function rule, it converts an Note: When you need to use Java.Util.Date, set the Jave Type field to |
Type |
Optional. If the Java Type field is Leave blank for other values of the Java Type field. |
Page Class |
Optional. Not used. If the Java Data Type is This field is for documentation purposes only. |
In/Out |
Leave blank. This field is not used. |
Description |
Optional. Enter a brief text description of this parameter. |
Output | |
Return Type |
Enter a Java data type for the return value.
You can enter |
Pega Type |
03-04 Optional. If the Return Type is |
Page Class |
Optional. If the Return Type is |
Classification | |
Usage Type |
Leave blank. This field is not used. |
Description |
Leave blank. This field is not used. |
Field |
Description |
Function ready to be Compiled? |
Leave this checkbox cleared until you finish coding the function. At any time when this checkbox is cleared, another application developer can create another function with the same name. If you select this checkbox but your function does not work correctly, you might unintentionally prevent other developers from completing work that they could otherwise complete. After you've tested the function and confirmed that it is ready for use, select this box and save the rule instance. Ordinarily, select this checkbox before you check in the updated function rule; a warning appears if you check in a function that is not marked as ready. |
Test Function Compilation |
After you've saved the instance, but before you click the Generate Library button, click to find any language errors. |
Generate Function | Click to generate the function, and the library that contains it. |
Generate Library |
Click to update the library on the PRPC system (on the current node only). Do not click this button until you have clicked Test Library Generation and performed other testing to confirm that your function works as intended. If you generate a library that includes compilation errors, but has the same RuleSet and version as a previously generated library that compiled, the older, working CLASS files are overwritten. This can affect processing of other users of the library |