Powered By Blogger

Jul 29, 2016

WSO2 Data Mapper Operators - Type Conversion category

This post describes about the operators in the Type conversion category



  • StringToNumber

This converts a String value to a number



StoNum1.png
Eg: convert the price value from String to a number


StToNum2.png

  • StringToBoolean

This converts a String value to a boolean


stToBool1.png


Eg: This converts the veg value from String “true” to boolean true

StroBool2.png

  • ToString
This converts a boolean or a number to a String value


toString1.png


Eg: The calories value is converting from number to string and the veg value is converting from boolean to a string



toString2.png




No comments:

Post a Comment