I have a requirement to calculate a risk score based on multiple parameters.I need to terminate the processing of my decision table if it meets a certain outcome. I could not think of any good appraoches. Below are my thoughts. Please let me knwo if they are correct or there is a better way of implementing it.
1. Break the logic into mutliple decision tables for each parameter. Collate values from diff decision tables in a decision tree and if the outcome meets that criteria then exit the decision tree logic in between otherwise continue.
2. Create a declare on change to track value of the particular field and if it meets the criteria then use ticket to jump to a later step.
Any Decision Table can be turned into a Tree and vice versa. The decision is which approach is easier to maintain. If using different Tables they could be called independently - a reuse benefit. A Table that is overly wide in terms of inputs is more difficult to maintain - especially if actually just a merge of independent tables - as well as visualize if requiring horizontal scrolling. Decision Trees supports Function Aliases so allow a single rule with related conditions to be more easily comprehended and maintained with no need for horizontal scrolling.