Compilation error on saving data transform post migration
Compilation error occurs on saving a data transform. This occurs after migration of data transform from Pega 7.1.7 to Pega 7.4.
Test compilation failed: ----------
The method interpretBoolean(String) in the type PublicAPI is not applicable for the arguments (boolean)
1 problem (1 error)
Steps to Reproduce
- Create a data transform with the below specifications:
Relation: equal to
Source: @java("tools.findPage(\"TempInputAccelPage\").getProperty(\"Channel\").getMessageCount()>0") ? "" : pyWorkPage.Channel
- Save the data transform
The expression language and the interpreted language indicate a conversion from Text to Boolean. Hence, the generated code invokes tools.interpretBoolean(). However, the call is invalid since the parameter going into interpretBoolean is a Boolean and not a string. In the expression language code generation, it is treated as a special case and call to interpretBoolean() must not be generated.
0% found this useful