How to create correspondence fragment rules
Use correspondence fragment rules to hold re-usable content that contains code or logic – for example, references to other rules, iterations through lists, conditional statements, and so on. Correspondence fragments are categorized by correspondence type, but they have no Applies to class and are, therefore, available to any correspondence rule. For more information about fragments, see the Correspondence Fragment and Correspondence Rules section in "Overview of the Correspondence Feature."
To create correspondence fragment rules, complete the following steps:
- From the Rules by Type explorer, select Process > Correspondence Fragment.
- From the list, click New.
- In the New dialog box, enter a name in the Stream field, select the appropriate correspondence type, and specify the appropriate RuleSet and version.
- Click Create.
- On the Stream tab of the rule, enter the appropriate text, HTML formatting, and logic. For example:
For information about typical JSP tags used in correspondence, see the Common JSP tags for correspondence section in "Correspondence Reference." For information about the entire pega tag library, see the Application Developer Help.
Note: Be sure to use HTML character entities for special characters — & for ampersand, for example. Also, do not copy and paste text from Word documents unless you have limited the text to an ASCII font like
- At the bottom of the tab, specify whether extra spaces should be removed from the generated results at runtime.
- In the Generate For field, select
- Optional. If any of the JSP tags you entered included references to a named page, identify the pages and their classes on the Pages and Classes tab.
- On the History tab, enter a description in the Usage and Full Description fields.
- Click Save.