XML is a key technology in PRPC. How to generate the XML which the format you want. You can follow these steps below:
1. Create an instance of Rule-Obj-XML.
This XML rule is the rule which will make up the XML you want. For example:
*pega:reference is a common method. Any others please refer to HTML, Directives, and JSP Tags in prhelp.*Mode=”literal” means that it will delete the XML especial symbol like “⁢”, “>” and so on.
2. Create a model to initialize properties.(Optional)
Model is used to initialize properties. This is an optional step, and you can use Activity’s Property-Set method instead.
3. Create an Activity to call method Property-Set-XML.
The most important of XML generation is method Property-Set-XML in Activity. Example Screenshot:*XMLGenerated is a local variable defined in Parameter Tab. It is used to save final XML.*XMLStream and XMLType have presented in XML rule.
Generated XML just like this:
Additionally, for ValueList properties, the code in XML like this:
For PageList properties, you can refer to this code, the precondition is you should use class Code-Pega-List.
Powered by: BlogJava Copyright © zolly