Question
3
Replies
1271
Views
Posted: April 30, 2018
Last activity: May 18, 2018
Closed
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.
Hi Arun,
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?