XPath.executeXPathWithEvent()

Signature

String[] executeXPathWithEvent (String xpath, Event event, String prefixes)

Domain

action, condition, query

Description

Evaluate an XPath Expression against the input event.

Parameters

NameTypeDescription
xpathStringThe XPath expression. $var is required in front of the root element, for example: "count($var/order/orderlines)".
eventEventThe Event object on which the XPath expression executes.
prefixesStringThe prefixes and namespaces in comma delimiter format, for example: "xns1=http://www.tibco.com/be,xns2=http://www.tibco.com/support".

Returns

TypeDescription
String[]The result of the evaluation. Each node is returned as a separate string in the array.

Cautions

RuntimeException for an undefined property.