Use a data transform (known before PRPC 6.2 as a "model rule") to define how to take source data values — data that is in one format and class — and turn them into data of another format and class (the "destination" or "target").
What a data transform does
Generally speaking, a data transform defines how to take source data values — data that is in one format — and transform them into data of another format (the "destination" or "target"). In PRPC, you can use a data transform to:
Note: Prior to version 6.2, data transforms were known as model rules, and only involved setting property values. Data transforms now provide more powerful actions than they previously could.
A data transform is a structured sequence of actions. When the system invokes the data transform, it invokes each action in turn, following the sequence defined in the data transform's record form.
The Data Transform record form
On the data transform's Definition tab, the actions to be taken are presented as a sequence of rows in a tree grid. Except for the conditional types of actions (such as When, For Each Page In, and similar actions) and transitional actions (such as Exit For Eachand similar actions), the system invokes each row in sequence, starting with the first row.
In the example below, the data transform CopyShippingInformationToBilling maps data from the shipping information for an order to the order's billing information.
In general, each row provides for:
ColumnDescriptionActionAn action to be taken.
TargetA target, if the action requires a target.
RelationA relation, if the action requires a relation to be specified. This relation is a relationship between the specified target and source.
SourceA source, if the action requires a source.