XML_CONTENT_BASED_ROUTING

Description

Triggered when a match is found in the XML profile. There are three variables populated by the XML profile for this event:

v10.2 - v11.1

Variable Purpose
$XML::count Shows how many queries matched.
$XML::queries Contains an array of the query names that matched.
$XML::values Holds the values of the elements that matched.

v11.2 -

Variable Purpose
$XML_count Shows how many queries matched.
$XML_queries Contains an array of the query names that matched.
$XML_values Holds the values of the elements that matched.

Examples

v10.2 - v11.1

when XML_CONTENT_BASED_ROUTING {
  for {set i 0} { $i < $XML::count } {incr i} {
    log local0. $XML::queries($i)
    log local0. $XML::values($i)
    if {($XML::queries($i) contains "FinanceObject")} {
      pool finance_pool
    }
  }
}

v11.2 -

when XML_CONTENT_BASED_ROUTING {
  for {set i 0} { $i < $XML_count } {incr i} {
    log local0. $XML_queries($i)
    log local0. $XML_values($i)
    if {($XML_queries($i) contains "FinanceObject")} {
      pool finance_pool
    }
  }
}