cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Archana
Product and Topic Expert
Product and Topic Expert

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.

0 Kudos

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