Data templates and transformations > Data transformations > Defining transformations for Message data > Transformation for Message data using meta rule

Transformation for Message data using meta rule
If all nodes in the data template are replicated from the Message data, you can use the recurse or enumerate meta rule on the message node in the data template (see Meta rules (recurse and enumerate) for more information about meta rules). The meta rule will automatically generate the rules for the entire
/data/message sub tree, i.e. the full data transformation for the data template.
If you have a Message that contains blocks (i.e. blocks defined in Event for recurring fields), the data template will contain nodes for the blocks and the recurring fields as sub nodes. If these blocks are to be used as Repeaters, and the recurring fields as Substitutions in the layout presentation, you can use meta rules on the block nodes.
To use recurse on the message node
1
Right-click the message node and select Edit transformation.
2
/data/message
recurse
.
To use recurse on a block node
1
Right-click the <block> node and select Edit transformation.
2
/data/message/<block>
recurse
.
Editing transformation rules for individual nodes
After applying a meta rule to a node you can edit the transformation rules for individual sub nodes if you need to. When you edit the transformation rules for an individual node, the “meta rule effect” is stopped for that node and all its descendants.
For example, if you use recurse on the message node you have to consider the expected occurrence of the nodes in the message tree (see Occurrence of template nodes) and edit the rules for individual nodes accordingly. You can check the compiled transformation in the Data transformation panel to see whether you have to edit transformation rules.
OpenText StreamServe 5.6.2 Updated: 2018-01-26