Posted: 30 Apr 2018 5:38 EDT Last activity: 18 May 2018 4:31 EDT
Decision table - Null consider as anything
We have a decision table with columns as A, B, C & D; value for A -> 10, B -> 10, C&D -> Null. If this row satisfy then it'll return as 50 otherwise 10.
A case have value of A-> 10, B-> 10, C -> 40, we expect this should return otherwise as 10 since the value of C is 40 in the case but null in decision table but it returns 10.
PEGA considered null as anything, Is it expected behaviour? if it's the case then please let me know how to achieve my expectation.
If the values are not provided in the columns of the decision table, that particular column is not validated in the if condition.
For ex: In your decision table, if condition is comparing value in columns A and B (which is getting true as per the condition), but columns C and D are not being considered in the if condition(since it is null). Hence it is returning 10 instead of otherwise value 50.
In order to achieve your requirement, please include "" in columns C and D in order to include C and D in if condition.
For further clarification in the code, please View java code from the Action tab.
Also, please let us know what platform version are you using?
Please find the attached screenshot where you can refer the View Java action from Pega 7.2. Also, the decision table will be evaluating as per the above mentioned comments. So you need to provide "" instead of blank to include null for comparing the required column with "" value in the if condition.