XML rules - Completing the Create, Save As, or Specialization form
Records can be created in various ways. You can add a new record to your application or copy an existing one. You can specialize existing rules by creating a copy in a specific ruleset, against a different class or (in some cases) with a set of circumstance definitions. You can copy data instances but they do not support specialization because they are not versioned.
Based on your use case, you use the Create, Save As, or Specialization form to create the record. The number of fields and available options varies by record type. Start by familiarizing yourself with the generic layout of these forms and their common fields using the following Developer Help topics:
This information identifies the key parts and options that apply to the record type that you are creating.
Create an XML Stream rule by selecting
XML Stream
from the
Integration-Mapping
category.
An XML Stream rule has three key parts:
Field | Description |
---|---|
Apply to |
Select the class of the page that is the basis for stream processing to generate an XML document from this rule. Enter
@baseclass
if this is a top-level XML Stream rule to be referenced in an activity, with no associated page.
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. |
Identifier | Enter a name for this XML Stream rule. Choose a name that starts with a letter and contains only letters, numbers, and a hyphen. |
XML Type |
Enter the literal
MapFrom
if 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
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. See How to enter a Java identifier. |
Rule resolution