Business Rules is a capability of SAP Cloud Platform Workflow Management, which enables business users and application developers to automate their decisions and enhance their decision-making experience. It offers a simplified Fiori-based rule authoring tool and a central rule repository with various deployment options to different platforms.
In this tutorial, you will learn how to import and manage rules to identify the list of equipment to be provisioned for the newly hired employee based on their role and work location Business Rules.
Step 1: Configure destination
The sample business rule used in this scenario is published in API Business Hub. BUSINESSRULES_APIHUB
destination is used in Manage Rule Projects application to import business rules from API Business Hub. This destination is already created in the previous set up tutorial, and now you will configure the destination for the password.
-
From your global account page, choose the trial
tile to access your subaccount.
-
Click Connectivity | Destinations from the left-hand navigation and search for the destination with name BUSINESSRULES_APIHUB
-
In Destination Configuration section, click Edit and enter your cloud platform trial user password:
Ensure that the user whose credentials (username and password) are entered in the destination does not have Two Factor Authentication enabled.
Step 2: Configure a system
To import the business rules project from API Business Hub, you need to configure a system which points to the API Hub destination and then use this system to import the project.
-
In your web browser, open the Workflow Management application and click the Manage Rule Projects tile..
You got the workflow management application link in the last step of the setup tutorial. The link would be like:
https://<subdomain>.cockpit.workflowmanagement.cfapps.<eu10 or us10>.hana.ondemand.com/cp.portal/site#Shell-home
-
Open Configure Systems.
-
Click + to add a system.
-
Enter the following details:
Field Name |
Value |
Name |
APIHub |
Destination |
BUSINESSRULES_APIHUB or the name of the destination you created in the setup tutorial |
-
Save the system configuration.
Step 3: Import business rules
-
Click Design icon, click Import to select Import Project from API Business Hub.
-
In the popup, do the following:
- In the System field, select
APIHub
or the name you entered while configuring the system.
- From the options shown in the Content Package Name dropdown, choose
Equipment Determination Business Rules
.
- Choose Go.
- Select the latest version of the project named
Equipment Determination Rules
.
- Choose Import.
-
You will see the business rules project imported and in Active status.
Step 4: Deploy business rules
-
Select the business rules project to navigate into the project.
-
Switch to the Rule Services tab.
-
Click Deploy to deploy rule services DetermineEquipmentRuleservice
and EquipmentApprovalRuleservice
.
-
Select the SAP Cloud Platform system.
-
Wait for the deployment to complete. You will get a popup message once the deployment is successful.
Only deployed business rules can be consumed via APIs published in API Business Hub.