Create Rule Service and Ruleset
- How to create
rule servicewhich is the deployable entity of business rules
- How to create
rulesetto bundle rules with same output
Rule Service is an interface or an end point that enables an application to invoke a decision logic. In an online transaction or workflow, rule service is invoked by passing any relevant input from an application to the rule service in a stateless manner.
Ruleset is a logical collection of rules that helps you group business rules that govern a specific function. A
ruleset links a rule or group of rules to a rule service.
For more information, you can read the help documentation:
- Step 1
Switch to Rule Services tab in Manage Rules Application.
Click + to create the rule service.
In the Details tab, enter the following rule service details:
BONUS_PERCENTAGE_S4Hor any name of your choice.
Bonus Percentage Rule Serviceor any label of your choice.
Calculates minimum bonus percentage for Custom Business Object of S/4HANAor any description of you choice.
Label and Description are optional fields.
Switch to Vocabulary tab.
Click + and add the following rows one after the other.
Select the following values from the drop down:
Switch to Annotations tab.
Click + to add annotation to rule service.
From the options, choose ABAP on HANA.
Click Activate button to save and activate the changes.
If activation is successful, then you will see the status of the rule service as Active.
Click the rules project breadcrumb link to return to the project page.
- Step 2
Click + to add
In the Details tab, enter the following values for the
BONUS_PERCENTAGE_COLLECTIONor any name of your choice.
Bonus Percentage Collection Rulesetor any label of your choice.
Executes all business rules to compute the Maximum Bonus Percentage allowed based on Custom Business Object of S/4HANAor any description of your choice.
In Rule Service field, choose a rule service from already defined rule services.
Switch to Rules tab.
Click + to add the rule to
Select the rule from the list.
Once you complete editing, click Activate to save and activate
If activation is successful, then you will see the status of the rule service as
- Step 3
Which is the deployable rule model in SAP Cloud Platform Business Rules?
- Step 4
What is the annotation defined in rule service for S/4HANA Cloud system?
- Step 5
Which among the following can be configured in ruleset?