Products | Versions |
---|---|
TIBCO BusinessWorks ProcessMonitor | - |
Not Applicable | - |
Description:
When attempting to setup aspect configurations in TIBCO BusinessWorks ProcessMonitor (BWPM) and trying to access an XML as the input element using XPATH2.0, we do not get the expected value as the result. The result does not provide any value, i.e., the XPATH expression yields blank.
This issue can be explained as follows.
1). Consider that the input XML is the file below:
<ns1:SentRequestID xmlns:ns1="http://www.repsrv.com/ResponseBaseType">2014042409302453-SRAZPHX171-5000-ePortalAssetWS-ePortalAssetWS-ProcessArchive-171</ns1:SentRequestID>
<ns1:overallStatus xmlns:ns1="http://www.repsrv.com/ResponseBaseType">Error</ns1:overallStatus>
<ns1:responseTimeStamp xmlns:ns1="http://www.repsrv.com/ResponseBaseType">2014-04-24T09:30:27.227-07:00</ns1:responseTimeStamp>
<ns1:errorList xmlns:ns1="http://www.repsrv.com/ResponseBaseType">
<ns2:errorItem xmlns:ns2="http://www.repsrv.com/ServiceBaseTypes">
<ns2:errorCode>50005</ns2:errorCode>
<ns2:errorLevel>Exception</ns2:errorLevel>
<ns2:errorDescription>PK_Customer_ID 1171 not found in table Customer</ns2:errorDescription>
<ns2:errorStackTrace>RepublicSystemServices/CDH/SystemInterfaces/Asset/GetNumberOfDays.process/CDH
Result 0 Error</ns2:errorStackTrace>
</ns2:errorItem>
</ns1:errorList>
<ns1:auditTrack xmlns:ns1="http://www.repsrv.com/ResponseBaseType">
<ns2:auditAppName xmlns:ns2="http://www.repsrv.com/AuditTrackBaseType">ePortal</ns2:auditAppName>
<ns2:auditDomain xmlns:ns2="http://www.repsrv.com/AuditTrackBaseType">ePortalAssetWS</ns2:auditDomain>
<ns2:auditTransID xmlns:ns2="http://www.repsrv.com/AuditTrackBaseType">2014042409302453-SRAZPHX171-5000-ePortalAssetWS-ePortalAssetWS-ProcessArchive-171</ns2:auditTransID>
</ns1:auditTrack>
</ResponseHeader>
</ns0:GetNumberOfDaysRes>
2). The element trying to be reached (using XPATH 2.0) is 'ns2:errorStackTrace'.
3). Set the XPATH to '//ns2:errorStackTrace' and test expression.
4). The result does not result in any value, that is, the XPATH expression yields blank.