Integers with alphabet input pass validation but cause an error
SummaryAn integer property is populated with alphabet value or a number that contains one or more spaces( example: "asdf" , 12 345), throwing an error at onchange event.
Error MessagesFail ** PropertyValueInvalid null .pegaToInteger() Invalid number format (was 12 345). This cause error during datatype conversion.
Steps to Reproduce1. Configure the text input with property type "Decimal" and UI Control with pxNumber.
2. Add a change event with "refresh the section" action.
3. Call the activity which includes the When rule.
Root CauseIts an expected behavior, as the property type is of Decimal, user providing the input as "12 35", where the system assuming the given value as string and failing to compare the value with when condition provided in the activity.
Explanation: Requested user to add one more step in an activity before calling "Property-set-messages" to validate the property value using "Property-validate" method, based on the results to continue next step in the activity.
Published March 3, 2017 - Updated March 17, 2017