parseInteger(string attribute)>0 will return an error if the string attribute cannot be parsed to int. so you just need to create an error handling flow, look at this :
a second option would be to use a regex with the function ismatch()
Hi Chaitali Gangane,
you can check with the below regex expression
Hope it helps you!
You are on the track, but you also have to customize the error handling of the action parsing the string in order to catch the exception, and then apply an error handler activity flow as Yehoshua already explained.
It sounds like the string needs to start with a digit that isn’t zero, and be followed by zero or more digits. We can look for this using a regular expression and isMatch.
If this passes you can then use the parseInteger method to convert the string to an integer.
I hope this helps.