Tom Sheckells

Evaluating the "if" clauses

Discussion created by Tom Sheckells on Apr 14, 2009
Latest reply on Apr 27, 2009 by Tapas Saha

I have a need to evaluate the values selected in a decision table at runtime.  Specifically, in the decision table one option available to choose is the N/A.  If there are 5 conditions available, and in one row the chosen values are X,Y, N/A, N/A, N/A and the next row is X, Y, 1, N/A, N/A and the input values (that matter are) X, Y, 1, then both rows would fire as true.  However;  the desire is to have the more specific row be the result (X, Y, 1).  If the rows are in the "right" order then the correct row is selected, but we need the answer to be independent of the order of the rows.  My thought is to provide some logic at runtime that would "count" the number of N/A choices and select the answer with the least number of N/A's.  However; the values chosen from the table are not available in the template for the result template.  Is there a way to make the value chosen in the table available to the result template so that I can count the number of conditions that were set to N/A?

 

     Tom

Outcomes