SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Create Rule Services and Rulesets

Create a rule service interface for an application to invoke the decision logic by associating the rule to a ruleset of the rule service.

Overview

🎓 beginner 5 min. Business RulesBeginnerCloudSAP Business Technology PlatformSAP BTP Cloud Foundry Environment

You will learn

  • โœ”How to create a rule service as an interface
  • โœ”How to create a rule set and associate rules to a rule service
Unknown U Unknown December 10, 2024
Created by December 10, 2024
Contributors

Prerequisites

Steps

Intro

A rule service is an interface or an end point that enables an application to invoke a decision logic. A rule set is a collection of rules related to a scenario, for example, assigning equipment to an employee in this tutorial. A rule set can be linked to a rule service so that the set of rules in the rule set gets executed when the rule service is deployed.

In this tutorial, we will create the rule services and rule sets required to deploy the decision logic.


Step 1 Create rule services
โ€”

  1. Navigate to the Rule Service tab, then choose + to create a new rule service.

    Create rule service
    Create rule service

  2. In the New Rule Service page, enter the following details:

    NameLabelDescription
    DetermineEquipmentRuleserviceDetermineEquipmentRuleserviceService to determine equipment for the new hire.

    Rule service details
    Rule service details

  3. In the Vocabulary tab, choose + and select the following options:

    NameUsage
    EmployeeInput

    Similarly, choose + to add a new row and select the following options:

    NameUsage
    EquipmentInfoResult

    Then, choose Activate.

    Activate rule service
    Activate rule service

  4. Navigate to the Rule Service tab and create and activate another rule service with the following details:

    | Name | Label | Description | :————- | :————- | EquipmentApprovalRuleservice | EquipmentApprovalRuleservice | Rule service to determine if the approval is needed for the equipment or not.

    Vocabulary:

    NameUsage
    EquipmentInput
    EquipmentApprovalResult

    Then, choose Activate.

    New rule service
    New rule service

    Navigate to the Rule Service tab to view the list of rule services.

    List of rule services
    List of rule services

Step 2 Create rulesets
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 2
1. Create rule services 2. Create rulesets

Learn more →