Decision Table "Default Answer" Issue

Mukesh Khanna P
Tera Expert

I'm having a decision table which returns assignment group based on checking the condition using string input fields. The decision based on condition are working correctly and sends the assignment group to the script where it is called, but I'm having a requirement to have a default group when all the conditions are failed. I've setup the default value, but the decision table is returning empty/null value when all conditions fail, why is this happening! There is no complex logic/decision criteria involved in my scenario, but still the default answer which is OOTB functionality is not working correctly. 

I really appreciate any help on the above mentioned issue, thanks in advance!

1 ACCEPTED SOLUTION

I agree, there is a bug in decision table UI. If you make any changes to existing decision table, once publishing the drafted version, navigate to "sys_decision_question" table and search for the questions associated to your decision table, add "Active" field to the list view and validate if there is any questions marked as "Active = False".

 

If yes, make all the questions to "Active = True" and check it now, the decision table is returning the default answer.

This is definitely a bug that happens while publishing the drafted version for decision table which makes the decision questiosn as "Active = False".

View solution in original post

13 REPLIES 13

Omkar Kumbhar
Mega Sage
Mega Sage

Hello @Mukesh Khanna P ,

Can you navigate to sys_decision_question table and make the default answer field as true for your default answer requirement. Check if it works.

OmkarKumbhar_0-1734606713504.png

 

Thank you,

Omkar

If I was able to help you with your case, please click the Thumb Icon and mark as Correct.

I just now saw that table and in that some conditions including the default answer true contions are marked as active false, but it is there in the decision table view. Why is this marked as active false, do I need to change that back to true? Is that the UI issue from decision table?

I'm checking a record producer as mandatory field in the decision table, will that affect the default answer as it don't have any condition there? Also I'm seeing the default answer true order as 100, if I make this active do I need to change the order to a number that comes after all conditions?

Hello @Mukesh Khanna P ,

 

you need to add one more decision entry and make it default true.

So that if all the condition fails the default will run.

 

Thanks,

Valmik Patil

Please answer the below question for me to understand the decision table for future use, thanks in advance!

1) I'm checking a record producer as mandatory field in the decision table, will that affect the default answer as my default answer marked question don't have any condition there?

 

2) Also I'm seeing the question created as (default answer true) is marked with order as 100 automatically, is that an issue or will it run at first and doesn't validate any other conditions?