Step order

The <Step> element has an optional Order attribute that defines the order in which the step will be processed.

<Step Id="AddEmployee" 
 TargetBusinessObject="Hansen.Resources.Employee" 
 Action="Create" 
 Order="1" >

Data Management follows these rules to order steps:

  • Ordering is based on the steps that are not children of other steps, called root steps.
  • If a root step has children, then the root step and its children are processed in a single transaction.
  • If the Order attribute is used on the root steps, then transactions are executed in the order specified by this attribute.
  • If the Order attribute is not used, then transactions are executed in the order in which the root steps were added to the mapping file.
  • If some steps have the Order attribute and others do not, then the ordered steps are executed first. Unordered steps are then executed in the order in which they were added to the mapping file.