To override a static route using DVM:
-
Double-click the mediator component to open the Mediator Editor.
-
Under the Routing Rules section, scroll down to the routing rule that you want to modify.
-
To the right of the Override Using field, click the button, identified by the green arrow. Figure 20-42 shows the Override Using field.
Figure 20-42 Override Using Field Under Routing Rules
Description of "Figure 20-42 Override Using Field Under Routing Rules"The Override Routing dialog appears.
-
Select Use Domain Value Map to create or use a domain value map. Figure 20-43 shows the Override Routing dialog.
-
To the right of the Location field, click Create new DVM file, identified by the green plus (+) icon, to create a new DVM file. The Create Domain Map Value dialog appears.
Note:
You can also choose an existing DVM file by clicking Find existing DVM file, identified by the Search icon.
-
In the Create Domain Map Value dialog, specify a DVM Name and select a Directory to store the DVM file. Click OK. The DVM File Created dialog appears.
-
Click OK to confirm. The Override Routing dialog is now populated with the details of the new DVM. shows the Override Routing dialog after creating a new DVM.
A new domain is created for each feature of the mediator that can be overridden. For example, as shown in Figure 20-44, the Filter domain is created for the mediator Filter Expression.
-
Select a Key Domain corresponding to the lookup column for the DVM.
-
To the right of the Value Expression field, click the Invoke Expression Builder icon to specify a value expression corresponding to the key domain. The Expression Builder dialog appears.
-
Build the expression corresponding to the value expression for the domain key, and click OK. You can use the Help button for more information on the Expression Builder.
-
Click OK in the Override Routing dialog.