---
parser: v2
auto_validation: true
time: 5
tags: [ tutorial>beginner, topic>cloud, products>sap-business-technology-platform, products>sap-btp--cloud-foundry-environment]
primary_tag: products>business-rules
slug: cp-cf-businessrules08-deploy-ruleservice
canonical_url: https://developers.sap.com/tutorials/cp-cf-businessrules08-deploy-ruleservice
---


# Deploy a Rule Service
<!-- description --> Deploy a rule service so that other applications can consume the decision logic.

## You will learn
  - How to deploy a rule service to the consumer application to implement the decision logic

## Intro
Once you have modelled the rule services, you can deploy them to execute the rule set associated to them. In this tutorial, we will deploy the rule services we have created. In the next tutorial, you can test the decision logic using the Business Rules APIs in SAP API Business Hub.

---

### Activate the project


1. Navigate to the **Details** tab of the project, then choose **Edit**.

    ![Edit the project](https://raw.githubusercontent.com/sap-tutorials/btp-adai/main/tutorials/cp-cf-businessrules08-deploy-ruleservice/deploy1.png)

2. Choose **Activate**.

    ![Activate the project](https://raw.githubusercontent.com/sap-tutorials/btp-adai/main/tutorials/cp-cf-businessrules08-deploy-ruleservice/deploy2.png)

    Ensure that each entity of the project is active.


### Deploy rule service to cloud runtime


1. Navigate to the **Rule Service** tab and then choose **Deploy** button of **`EquipmentApprovalRuleservice`** to deploy the rule service.

    ![Deploy EquipmentApprovalRuleservice](https://raw.githubusercontent.com/sap-tutorials/btp-adai/main/tutorials/cp-cf-businessrules08-deploy-ruleservice/deploy3.png)

2. Choose **Cloud Runtime** for deploying the rule service.

    ![Deploy to Cloud Runtime](https://raw.githubusercontent.com/sap-tutorials/btp-adai/main/tutorials/cp-cf-businessrules08-deploy-ruleservice/deploy4.png)

3. Similarly, choose the **Deploy** button of **`DetermineEquipmentRuleservice`** and then choose the system as **Cloud Runtime**.

      You will see the following message on successful activation of the rule service:

    ![Deploy successful](https://raw.githubusercontent.com/sap-tutorials/btp-adai/main/tutorials/cp-cf-businessrules08-deploy-ruleservice/deploy_success.png)


