Conditional steps

You can make a child step conditional, depending on the action performed by the parent. For example, if a parent step’s action is “Create, Update,” you may want to process a child step when the parent adds a new record, but not when it updates an existing record.

To make the child step conditional, add a For attribute to the <Link> element. The attribute can specify one or more of three values in a comma-separated list: Create, Update, and Delete. To process the child step when the parent adds a record, but not when it updates one, you would set the For attribute to Create, as shown in this example:

<Link StepId="1" 
 RelativeQuery="./LaborCosts/Cost" For="Create" />