Creating an XML Stream rule
Create an XML stream rule to define an XML template or skeleton message as part of an interface between the Pega Platform and an external system.
An XML Stream rule has three key parts:
In the header of Dev Studio, click.
On the Create page, in the Label field, enter a name for this XML Stream rule.Choose a name that starts with a letter and contains only letters, numbers, and a hyphen.
In the XML Type field, enter the literal
MapFromif this XML stream rule is to be referenced in the Response tab of a Service rule, such as Service MQ or Service SOAP.This key part is arbitrary and is referenced primarily when XML text (in one Rule-Obj-XML rule) uses the
<pega:include >JSP tag, which instructs the system to incorporate a second XML stream (where the third key parts must match).
You can use special characters, such as #, &, *, ( ), in this key part. However, as a best practice, begin the name with a letter and follow the rules for a Java identifier.
In the Context section, in the Apply to field, select the class of the page that is the basis for stream processing to generate an XML document from this rule.
The list of available class names depends on the ruleset that you select. Each class can restrict applying rules to an explicit set of rulesets as specified on the Advanced tab of the class form.
Click Create and open.The XML Stream rule opens on the Mapping tab.