Question
2
Replies
255
Views
Posted: September 2, 2016
Last activity: September 6, 2016
Closed
Possible to programmatically change the rules in a decision table?
Hi,
Is there any way to programmatically change the rules in a decision table? For example, if we have a rule set up age > 18 and age <25, the return value is xxx. xxx will need to be dynamically changed every day. Of course, there will be other age breakout. So we would like to find the matching age breakout and update the return value. Is that possible?
Thanks,
Kelly
***Updated by moderator: Lochan to add Categories***
In theory you could do this (in theory you can change any PRPC rule programatically - using an OBJ-OPEN to fetch the definition, then alter the properties, and re-save it).
But can you use Parameters to influence the behaviour of the Decision Table ? I *think* (I would have to try though) you can compare properties with properties as well (rather than hardcoding a number like 18,25 etc?)
(Can you do something like .age > .minimumAge etc)