Section
form
|
Optional. Identify parameters for this section rule. (Parameters are allowed only for JSP-based section rules.)
Parameterized sections provide flexibility and promote reuse. For example, a single section may include a button which has one of three labels — Increase, Decrease, and Clear — depending on the value of a section parameter. (Since that button always calls a single activity, some mechanism within that activity must operate at runtime to determine the context and desired result.)
Using parameterized section rules can promote reuse and reduce the number of distinct section rules you need in your application. Be careful to ensure that each parameter has a value in each enclosing rule (section, harness, or flow action) that includes the section.
You can use parameter values in these three situations:
You can use any of these ways to supply parameter values for a section rule that accepts parameters.
Pass current parameter page?
check box.This tab is wide. To display more of the content, click the collapse arrow () in the portal to temporarily hide the navigation panel. When you finish working with this tab, click the expand arrow () to display the navigation panel again.
Field |
Description |
Name |
Choose
a name for this parameter, starting with a letter and
using only letters and digits. Do not choose a parameter
name that starts with the reserved word
Use the following syntax to identify complex parameters:
As with scalar parameters, these complex parameters are not true property rules — no Rule-Obj-Property rule exists for them — but they mimic the structure of the property types. Complex parameter definitions are accepted on this Parameters tab, on the Parameters tab of the HTML Property form. Use the <pega:param > JSP tag, within the <pega:reference ..> JSP tag, to set values for complex and scalar parameters. Typically, complex parameter values are used within the scope of a <pega:forEach ..> JSP tag. |
Description |
Optional. Enter descriptive text to document the purpose of each parameter. This description appears when a developer completes parameter values. |
Data Type |
Select |
Required? |
Select to indicate that the parameter (of data type
Leave cleared for Boolean parameters. |
Type for SmartPrompt |
Optional. To aid application developers in selecting a value for this parameter, identify a concrete class that has a single key part, such as Data-Admin-Operator-ID. This instructs the system to let developers complete this parameter value through a SmartPrompt selection rather than by typing; it has no runtime effect. |
Validate As |
Optional. Identify a |