Branching Example
This example describes a hierarchy of Routing Guide rules to deal with shipments that occur frequently from Packing Location A9901. The shipments are hazardous and the payment type is COD Amount.
The origin ID for A9901 exists with the Packing Location A9901.
Origin ID A9901
1 The first rule must indicate that the shipment is hazardous. When the shipment is hazardous, the origin ID A9901HZY applies.
a In option LN, create an origin ID A9901HZY.
b To create a Routing Guide rule to point to the origin ID for hazardous shipments, in the Routing Guide, select origin ID A9901.
c Create a Routing Guide rule.
d In the Routing Guide Rule header, select the Origin Assignment field.
e On the Origin Assignment tab, create A9901HZY as the origin ID.
f On the Routing Criteria tab, in the Hazmat section, set Allow Hazmat to Yes.
g Create the rule.
A9901 Hazardous Rule
2 The next rule in the hierarchy must indicate the action to take when the payment type for a hazardous shipment is COD Amount. For this condition, ID A9901COD is to apply.
a In option LN, create an origin ID A9901HZY.
b To create a Routing Guide rule to point to the origin ID for COD Amount payments, in the Routing Guide, select the origin ID A9901HZY.
c Create a Routing Guide rule.
d In the Routing Guide Rule header, select the Origin Assignment field.
e On the Origin Assignment tab, create A9901COD as the origin ID.
f On the Dynamic Criteria tab, in the Payment Method field, type COD Amount.
g Create the rule.
A9901HZY Payment Rule
When the Routing Guide fires for a hazardous shipment with the payment type COD Amount, the process works as follows:
1 Routing Guide processing begins.
2 When the A9901 Routing Guide rules are checked, the relevant Routing Guide rule determines that A9901HZY applies.
3 When the A9901HZY Routing Guide rules are checked, the relevant Routing Guide rule determines that the rule with the Payment Method applies. This rule in turn determines that A9901COD is applicable.
4 The Routing Guide rules on A9901COD are checked.
This example shows that you can build rules in hierarchies, branching in a different direction depending on the criteria that are fulfilled.