How to set a Driver Routing rule containing more than one value per property.

How to set a Driver Routing rule containing more than one value per property.

book

Article ID: KB0084392

calendar_today

Updated On:

Products Versions
TIBCO DataSynapse GridServer -
Not Applicable -

Description

Description:
The Gridserver Broker Routing page allows an Administrator to add rules for the routing of engines or drivers to particular brokers. As explained in the "Gridserver Administration Guide", all comparators added in the driver routing section for a particular broker will be ANDed, and the field validation will not allow to have two rules of the same property with different values. This is expected behavior and designed to avoid the comparators to return result a false value.


Example. If the property Username is required to have the values TestUser1 as well as TestUser2, create following two rules.


- rule 1: Username equals TestUser1
- rule 2: Username equals TestUser2

The rule validation will logically result, after saving to show both rules as Username equals TestUser1.

Resolution

The solution is to add all the values needed for a single properties separated by commas.
e.g: As per the example above, if Username needs to have the values TestUser1 an TestUser2, the rule should then be:  Username equals TestUser1,TestUser2   
This rule means that if a driver submits with user TestUser1 OR TestUser2, the driver will be routed to Broker A

Issue/Introduction

How to set a Driver Routing rule containing more than one value per property.

Additional Information

Requested to be added in the documentation.