Quantcast
Channel: SCN : Popular Discussions - SAP Business Rules Management
Viewing all articles
Browse latest Browse all 1717

Loop expression on a decision table

$
0
0

Hi experts,

 

We have a requirement for a recursive rule mapping and we need to use BRF+ for this. The best option to use seems to be a decision table. But we are having issues with using it to produce a desired result.

 

To explain it further:

We have a set of rules, where we provide a few fields as input to condition column of a decision table and then the decision table returns corresponding result set from the result columns. But now this result set is to be used as an input again to the same decision table to find another result set. And this needs to be done for the complete table until a matching rule can be found.

 

To implement this we are calling the decision table inside a loop and we loop on the table till the end. But since on a decision table call all the records are checked from the first row in the decision table, due to the type of rules we have, the program gets stuck in a loop. An example is as below:

 

INPUTOUTPUT
FIELD1FIELD2FIELD3OUT1OUT2OUT3
CC12CC13COMP12ACC12
CC13COMP12ACC12CC12
CC13CC14
I/PNS03CC12
O/PInfinite Loop

Here if the input is CC12, it produces the corresponding result but now on the second loop pass it gets CC12 as result. And subsequently on the other loop passes it goes into an infinite loop.

 

Is there any other way this problem can be bypassed? And force the decision table to start a search from a new row each time on a consecutive call?

 

Any help appreciated

 


Viewing all articles
Browse latest Browse all 1717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>