Skip to Content
0

How to build complex business rules using the SAP Cloud Plattform Business Rules

Feb 15 at 09:20 AM

55

avatar image

I have a question concerning building complex business rules using the Business Rules Service on the SAP Cloud Plattform.

The idea is to use more than one decision table and data object associations in order to simplify building the rule service.

As far as I understood, this should be possible. Unfortunately I did not find any tutorial or documentation on how to achieve this. I hope someone can help me.

Case having one input payload with one decision table – this works but can lead to a very complicated and big decision table. The picture below shows a simplified case.

Here is my question:

Is it possible to achieve the same using more than one decision table and data object associations or similar in a rule service, as shown in the picture below?

As far I understood this should be somehow possible. I tried several approaches but was not able to activate / deploy the rule service. The documentation doesn’t say too much on how to achieve this.

Any help would be appreciated.

simple.png (169.3 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Archana Shukla
Feb 16 at 05:49 AM
1

Hello John,

If you want to call multiple rules, then you can do that from your custom application or cloud integration service. So how it works is:

1. You create 3 decision tables as shown in your second part
2. Then you use business rules runtime Public APIs to invoke 1st and 2nd rule and then use the output of these to invoke the 3rd rule. This you can do in your custom code through ajax calls as explained in my blogs or through cloud integration using HTTP adapters

Hope that helps.

Share
10 |10000 characters needed characters left characters exceeded
John D'Avanzo Feb 16 at 12:16 PM
0

Hello Archana,

Thanks for your answer. Our idea is to have just one REST call to the SAP Cloud Platform Business Rules Service in order to reduce traffic (also to avoid possible performance issues).

Our solution at the moment will be to build up everything in one decision table (as far as possible).

As I saw in the SAP Cloud Platform Business Rules road map we could use the "Flow Rules" that should allow us to chain decision tables and execute them in one rule service. This feature should be released in Q4/2018 as far I understand.

Regards,

John

Share
10 |10000 characters needed characters left characters exceeded