I am having a trouble on checking null value from a Java Method component in Tibco ActiveMatrix process.
Basically, I have a Java Method component invoking java to get a billing account, if the return is null, I would like to log the searching criteria - billing account id; otherwise, I will map the object to be XML content...
The problem is while using the following in 'XPath' to check the null object in a transition (Success with condition):
- empty($Get-BA-Details/ns5:JavaMethodActivityOutput/MethodReturnValue
- count($Get-BA-Details/ns5:JavaMethodActivityOutput/MethodReturnValue)= 0
- string-length($Get-BA-Details/ns5:JavaMethodActivityOutput/MethodReturnValue) = 0
'$Get-BA-Details' is the Java Method component.
they all return 'false', and then try to map the java object to be XML content, which results in error while billing account is not found.
Could anyone shed some lights?
Thanks a lot!