cloud-businessrules-samples
cloud-businessrules-samples copied to clipboard
SAP Cloud Platform Business Rules sample projects that can be used as reference content. Users can download and import the content of these projects in their account to understand and learn how-to aut...
Business Rules capability of SAP Workflow Management Sample Projects and Applications
Business Rules capability of SAP Workflow Management enables line of business users, application developers to automate decisions in simple human friendly rule language and integrate these decisions via APIs with their cloud applications. You can use these sample applications and rule projects as reference content to learn more about how-to build and consume business rules in neo and cloud foundry environments.
Solution Diagram
This diagram shows how you can consume business rules service from workflow, cloud integration and other SAP Business Applications.

Beside these, there are many other services which can consume Business Rules. Below diagram shows a rich list of various consumption models:

Prerequisites For Neo Environment
You need to have the following:
- SAP BTP (Neo) account with an active subscription to Business Rules service.
- Refer here for information on accessing Business Rules in Neo trial account.
- RuleSuperUser role for Runtime and Repository operations.
- Developer role to create and deploy SAPUI5 applications in SAP BTP.
- SAP Business Application Studio enabled in SAP BTP.
Prerequisites For Cloud Foundry Environment
You need to have the following:
- SAP BTP Cloud Foundry account with subscription to Business Rules application.
- Refer here for information on accessing Business Rules in Cound Foundry trial account.
Folders Overview
The available samples are of 2 types depending upon the folder containing them. There would be different setup process for each type:
- apps - It contains SAPUI5 applications that need to imported from WebIDE and deployed to Neo environment.
- shoppingcart application shows how to consume rule service in custom HTML5 application
- rulesmanager application shows how to embed SAPUI5 Rules Builder control in your custom application.
- rulesprojects - It contains sample business rules projects that shows rules capabilities through different use cases
- cf-apps - It contains applications that helps you to understand consumptions of business rules in Cloud Foundry environment
- Go to the README to know more
Getting Started with Business Rules in Neo Environment
- Download and Extract the content from the git
-
From content in apps folder:
- Open SAP Web IDE Full-Stack and import the project zip using File --> Import --> From File System option.
-
From content in rulesproject folder:
- Open Business Rules Editor and import the project using the Import button on the Manage Projects screen
Getting Started with Business Rules in Cloud Foundry Environment
How to obtain support
The project is provided "as-is", with no expected changes or support.
License
Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file