Hi, I am using XPath arithmetic operators in two different ways to do some subtraction/addition with ESB 4.9.0 as coded below,
*<property name="number1" scope="default" value="20"/> <property name="number2" scope="default" value="40"/> <log level="custom"> <property expression="$ctx:number2 - $ctx:number1" name="subtraction"/> </log>* Output: subtraction = 20.0 *<property name="number1" scope="default" value="20" type="INTEGER"/> <property name="number2" scope="default" value="40" type="INTEGER"/> <log level="custom"> <property expression="$ctx:number2 - $ctx:number1" name="subtraction"/> </log>* Output: subtraction = NaN This is a strange behavior where it says that Not a Number(NaN) when we define it as integer and treats as numbers with default type(String). Does anyone have any idea on this? Thanks, Rajeevan -- Vimalanathan Rajeevan Software Engineer, WSO2, Inc. *http://wso2.com* <http://wso2.com> Lean.Enterprise.Middleware Mobile: *+94 773090875* LinkedIn: *https://www.linkedin.com/in/RajeevanVimalanathan <https://www.linkedin.com/in/rajeevanvimalanathan>*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev