cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Decision Table with interval

Former Member
0 Likes
276

Dear Experts,

we wanted to implement a decision table looking like this:

AgeValue
10-19aaa
20-29bbb
30-39ccc

So in this case with an age-input 17 we would get aaa back. For 25 bbb.

First Idea was building the table like this:

Age From
Age ToValue
1019aaa
2029bbb
3039ccc

But then we didn't come further with a decision table solution and ended up with the following rule flow / script: 

So my question is: Is this approach ok? Is there a possibility using decision tables for this requierement?

Thanks a lot,

Koray

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Apparently this was also possible using Java BRM Decision Table. Here is the solution:

Answers (1)

Answers (1)

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Koray,

I am not sure if I understand your problem completely. I haven't worked with rule scripts and don't know if they are a standard feature available in BRFplus (atleast, I haven't noticed them).

Nevertheless, to me, the logic of your rule script and your decision table seems same to me (except that in the script, I don't see the case where the value 'ccc' would be returned and this may be a typo). To your question whether this logic can be implemented using a decision table in BRF+, yes it certainly can. And, in fact, you need not even have two different columns - one for 'age from' and the other for 'age to'. You can have just one field 'age' and specify a range (like > 10 AND < 19).

Former Member
0 Likes

Hi Kumar,

Thanks for the answer. I am using BRM on the Java Stack. So it is a SAP BPM / BRM solution.

I am not sure how to define a decision table according to your suggestion in Java BRM.

Regards,

Koray

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes

Oh ok. Sorry, don't know Java BRM.