Log out?

Routing Modules

eiConsole v.13.17R1
Documentation

eiConsole Tutorial Basic

Routing Modules

In the eiConsole, Routing Modules are used to send a message to some sub-set of defined target systems. To configure a Routing Module, start by selecting and opening an existing interface. Double click your interface to open the main route grid.


routing-modules-001-13-16-r3

Click the route icon in the main route grid and select the Routing Rules configuration tab.


routing-modules-002-13-16-r3

The eiConsole comes bundled with three out-of-the-box Routing Modules. The simplest of these, and the default, is the All Targets. This Module will take any inbound message and send it to each defined target system.


routing-modules-003-13-16-r2

The second included Routing Modules is the Load Balancer Routing Module. It balances the load of the target transports by successively calling all target systems. One target system is called for one transaction.
Note, that some of the transports may not be able to work properly with simultaneous connections or will be limited to some number of them.

The third is the XPath Routing Module. Most commonly, when you want to route a transaction to some sub-set of the defined target systems, you will use the content of the message or the metadata associated with the message to determine what data needs to be sent to which target systems. XPath is the most typical mechanism for querying this data.


routing-modules-004-13-16-r2

To configure an XPath based Routing Module, select XPath/Attribute from the Routing Module dropdown. In the Module Configuration area a tree will appear. At first this tree will only contain a rules node.


routing-modules-005-13-16-r2

You will build this tree with all of the rules that you need to determine what information needs to be sent to which target systems. Select the Rules node by left clicking and right click to add a rule.


routing-modules-006-13-16-r2

Left click the rule and right click Set Expression.


routing-modules-007-13-16-r2

There are several ways to associate expressions with rules. Most commonly you will use an XPath Query.


routing-modules-008-13-16-r2

When XPath Query is selected from the contents menu, an XPath Expression Configuration dialogue will appear to the right. Here you will enter in the XPath Expression that you would like to evaluate. Enter \\DesiredTarget = “SystemA” in the dialogue panel. Once this information is entered, it will appear as an XPath node in the Module Configuration tree (left).


routing-modules-009-13-16-r2

Next, associate a target system with this Rule. Again, left click on the Rule node. Right click and select Add Target from the contents menu. Then select Transport Target.


routing-modules-010-13-16-r2

Once the Transport Target is added, you’ll be able to select from all of the fully configured transports. In our case it is only Example-Interface.Directory Transport.


routing-modules-011-13-16-r3

Choose it from the drop down menu.


routing-modules-012-13-16-r2

Now, when this Routing Module is executed any time that the Desired Target equals System A (as seen in the diagram below) you will send the data along to this defined Transport.


routing-modules-013-13-16-r2

You can add additional rules by right clicking the Rules node again and selecting Add Rule and continuing in the manner that you did before.


routing-modules-014-13-16-r2

routing-modules-015-13-16-r2

Rules can also be combined using Boolean operators. This can be done by setting the Expression as a Logical AND or Logical OR rather than an XPath Query.


routing-modules-016-13-16-r2

You can also query Transaction Attributes associated with a message using the Transaction Attribute Query option.


routing-modules-017-13-16-r2

Attribute queries will allow you to inspect an Attribute associated with a transaction, apply an Operator and compare it to a particular Attribute value.


routing-modules-018-13-16-r2

Rules can also be deleted and moved through the tree (right click).


routing-modules-019-13-16-r2

When the route node of the Module configuration tree is selected, you’ll see that you have the option to stop after the first match. If you wish for the data to be sent to multiple target systems, you will want to uncheck this. This means that all XPaths will be evaluated and all XPaths that are returned true will have their transports invoked. When this is left checked, only the first rule that returns true will be invoked. Only that transport will be used.


routing-modules-020-13-16-r2

If you would like more information about using the eiConsole’s Routing Modules please contact us at support@pilotfishtechnology.com.

    to post comments

    This is a unique website which will require a more modern browser to work! Please upgrade today!

    Thanks!

    Our editors are notified.

    Close