5
5
This sample demonstrates how to automate the deployment and execution of a ruleset using the REST API.
6
6
7
7
In this sample, you will:
8
- - Deploy ODM either on Kubernetes or in Docker,
9
- - Import a Decision Service in Decision Center (optionally),
10
- - Deploy a ruleset from Decision Center to Decision Server,
11
- - Execute this ruleset.
8
+ - Deploy IBM ODM on either Kubernetes or Docker.
9
+ - Optionally import a Decision Service into Decision Center.
10
+ - Deploy a ruleset from Decision Center to Decision Server.
11
+ - Execute the deployed ruleset.
12
12
13
13
## Prerequisites
14
14
15
- - Ensure you have at least Docker 24.0.x or Kubernetes 1.27+
16
- - Install [ jq] ( https://jqlang.github.io/jq/download/ )
15
+ Ensure you have the following tools installed:
16
+ - Docker 24.0.x or later, or Kubernetes 1.27+.
17
+ - [ jq for JSON processing] ( https://jqlang.github.io/jq/download/ )
17
18
18
19
## Installation of ODM
19
20
20
- Click one of the links below depending on how you prefer to deploy ODM :
21
+ Select your preferred deployment method and follow the corresponding guide :
21
22
* [ Kubernetes] ( README-KUBERNETES.md )
22
23
* [ Docker] ( README-DOCKER.md )
23
24
24
25
## Configuration
25
26
26
27
### 1. Set Environment Variables
27
28
28
- Set the following environment variables:
29
+ Define the following environment variables:
29
30
30
31
<!-- markdown-link-check-disable -->
31
32
@@ -35,17 +36,15 @@ Set the following environment variables:
35
36
| DSR_URL | Decision Server Runtime URL | see below | http://localhost:9060/decisioncenter/DecisionService |
36
37
37
38
<!-- markdown-link-check-enable-->
38
-
39
- If ODM is deployed on Kubernetes, you can check the section ** Access the ODM services** for your platform to find out how to get those URLs:
39
+ If ODM is deployed on Kubernetes, you can check the ** Access the ODM services** section for your platform to find out how to get those URLs:
40
40
- [ Amazon EKS] ( https://github.com/DecisionsDev/odm-docker-kubernetes/blob/master/platform/eks/README.md#6-access-the-odm-services )
41
41
- [ Azure] ( https://github.com/DecisionsDev/odm-docker-kubernetes/blob/master/platform/azure/README.md#access-odm-services )
42
42
- [ Google GKE] ( https://github.com/DecisionsDev/odm-docker-kubernetes/blob/master/platform/gcloud/README.md#6-access-odm-services )
43
43
- [ Minikube] ( https://github.com/DecisionsDev/odm-docker-kubernetes/blob/master/platform/minikube/README.md#c-access-the-odm-services )
44
44
- [ Openshift] ( https://github.com/DecisionsDev/odm-docker-kubernetes/blob/master/platform/roks/README.md#4-access-the-odm-services )
45
45
46
46
### 2. Deploy the ` Loan Validation Service ` Decision Service
47
-
48
- If the ` Loan Validation Service ` Decision Service is not available in Decision Center yet, run:
47
+ If the ` Loan Validation Service ` is not available in Decision Center, import it using the following commands:
49
48
50
49
``` bash
51
50
# configure the Authentication (using Basic Auth)
@@ -115,8 +114,8 @@ curl -sk -X POST ${AUTH_CREDENTIALS[@]} -H "accept: application/json" -H "Conten
115
114
116
115
# # Expected result
117
116
118
- You should see traces similar to these :
119
- 1. after the ruleapp deployment:
117
+ 1. After deploying the ruleset, you should see a confirmation message :
118
+
120
119
` ` `
121
120
{
122
121
" id" : " e51db153-bca2-49a8-8998-2b5e6c93f6cb" ,
@@ -164,7 +163,8 @@ You should see traces similar to these:
164
163
" archive" : null
165
164
}
166
165
```
167
- 1. after the ruleset execution:
166
+
167
+ 2. After executing the ruleset, the response should include the rule execution results:
168
168
```
169
169
{
170
170
" report" : {
0 commit comments