Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions decisioncenter/dynamicdomain/README-DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ To set up the ODM container with dynamic domain support:

1. Start the ODM container:
```bash
docker-compose up odm-dynamic-domain &
docker-compose up -d odm-dynamic-domain
```
> **Explanation**: This command initializes the ODM environment required for the sample.

Expand Down Expand Up @@ -75,7 +75,7 @@ To set up and populate the dynamic domains database:
- leave `default value` empty. Save the setting.
1. Set the value of this new custom setting to `ilog.rules.studio.samples.bomdomainpopulate.DataBaseDomainValueProvider`.
1. Navigate to the **Library** tab.
1. Import the rule project archive `dynamicdomain/projects/bomdomainpopulate-rules.zip`.
1. Import the rule project archive [dynamicdomain/projects/bomdomainpopulate-rules.zip](projects/bomdomainpopulate-rules.zip).
> Note: this rule project `bomdomainpopulate-rules` is only aimed at editing rules to demonstrate loading domains from a database. It is missing a deployment configuration and cannot be executed.
1. Once the archive is imported, the **bomdomainpopulate-rules** decision service will be displayed. Click the **main** branch to access to the decision artifacts.
1. Display the rule `CheckOrder > OrderType`. An error **Value (string) 'CompanyX' is incorrect** is displayed. Edit the rule and either remove **"CompanyX"** and press SPACE or double-click **"CompanyX"**. A list of suitable companies gets displayed in a drop-down. `CompanyX` is not one of these companies. Close down the rule **without** saving.
Expand Down
6 changes: 3 additions & 3 deletions decisioncenter/dynamicdomain/README-KUBERNETES.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ helm search repo ibm-odm-prod
```
```bash
NAME CHART VERSION APP VERSION DESCRIPTION
ibm-helm/ibm-odm-prod 25.1.0 9.5.0.1 IBM Operational Decision Manager License By in...
ibm-helm/ibm-odm-prod 26.0.0 9.6.0.0 IBM Operational Decision Manager License By in...
```

Create a file named `values.yaml`. This file will be used by the `helm install` command to specify the configuration parameters.
Expand All @@ -112,7 +112,7 @@ internalDatabase:
enabled: false
useDynamicProvisioning: false
populateSampleData: true
runAsUser: ''
runAsUser: '' # Specific to OCP
```

Add all the other parameters suitable to your platform in `values.yaml`. Check this [link](https://github.com/DecisionsDev/odm-docker-kubernetes/tree/master/platform) for help.
Expand Down Expand Up @@ -145,7 +145,7 @@ The class that implements the customization must be declared:

### 4.2 Using a JVM parameter

Follow instructions as described [here](https://www.ibm.com/docs/en/odm/9.5.0?topic=kubernetes-persisting-decision-center-ruleset-cache) to create a Config Map with the additional JVM parameter below:
Follow instructions as described [here](https://www.ibm.com/docs/en/odm/9.6.0?topic=kubernetes-persisting-decision-center-ruleset-cache) to create a Config Map with the additional JVM parameter below:
```
-Dilog.rules.teamserver.derbyDataBaseDomainProvider=ilog.rules.studio.samples.bomdomainpopulate.DataBaseDomainValueProvider
```
Expand Down
12 changes: 6 additions & 6 deletions decisioncenter/dynamicdomain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Off-the-shelf, ODM only enables to store the values of a dynamic domain in an Ex

This sample demonstrates how to store the values of a dynamic domain in a database.

This sample was adapted from the [Data sources for BOM domains](https://www.ibm.com/docs/en/odm/9.5.0?topic=extensions-data-sources-bom-domains) sample for (on-premise) Rule Designer.
This sample was adapted from the [Data sources for BOM domains](https://www.ibm.com/docs/en/odm/9.6.0?topic=extensions-data-sources-bom-domains) sample for (on-premise) Rule Designer.
This sample runs both in Rule Designer and in Decision Center.

In this sample, you will :
Expand All @@ -31,8 +31,8 @@ To use the sample in Rule Designer, you need to build an Eclipse plugin.
- Select the folder `decisioncenter/dynamicdomain/src/ilog.rules.studio.samples.bomdomainpopulate`
- Tick the project `ilog.rules.studio.samples.bomdomainpopulate` and click **Finish**
- Right-click the `build-bomdomainepopulate.xml` file and click **Run as > Ant Build**. A file named `bomdomainpopulate.jar` gets generated at the root of the project.
- Right-click on the project and click **Export > Plug-in Development > Deployable Plug-ins and fragments** to build the plugin. Click **Next**, enter `<ECLIPSE_HOME>/dropins` as the destination directory (where `<ECLIPSE_HOME>` should be replaced by the HOME directory of the running Eclipse), and click **Finish**.
- Restart Eclipse.
- Right-click the `DynamicDomain.launch` file and click **Run as > DynamicDomain**.
- A new Rule Designer will be displayed.

>Note: if you modify the plugin and deploy it again, start Eclipse with the `-clean` parameter to force a cache update.

Expand All @@ -43,7 +43,7 @@ To use the sample in Rule Designer, you need to build an Eclipse plugin.
- bomdomainpopulate-rules
- bomdomainpopulate-xom

- Follow the [instructions from the documentation](https://www.ibm.com/docs/en/odm/9.5.0?topic=domains-data-sources-bom-sample-details) to try out how the sample works in Rule Designer.
- Follow the [instructions from the documentation](https://www.ibm.com/docs/en/odm/9.6.0?topic=domains-data-sources-bom-sample-details) to try out how the sample works in Rule Designer.

## 2. Running the sample in Decision Center

Expand All @@ -55,7 +55,7 @@ Ensure you have at least Docker 27.x (and optionally Kubernetes 1.28+).

If you deploy ODM on Docker, there is nothing to configure.

If you deploy ODM on kubernetes, and for the sole purpose of testing the sample, it is best to use the [PostgreSQL internal database](https://www.ibm.com/docs/en/SSQP76_9.5.0/com.ibm.odm.kube/topics/con_internal_db.html) to store the dynamic domain data (along with Decision Center data).
If you deploy ODM on kubernetes, and for the sole purpose of testing the sample, it is best to use the [PostgreSQL internal database](https://www.ibm.com/docs/en/SSQP76_9.6.0/com.ibm.odm.kube/topics/con_internal_db.html) to store the dynamic domain data (along with Decision Center data).

In that case, and provided ODM is deployed in a Helm Release named `myodmsample`, you do not need to modify [database.properties](src/ilog.rules.studio.samples.bomdomainpopulate/src/main/resources/data/database.properties).
Edit that file otherwise.
Expand All @@ -79,7 +79,7 @@ To use the sample in Decision Center, you need to build a JAR file that depends

Start the ODM for Developer Docker image to quickly access the necessary libraries:
```bash
docker-compose up odm &
docker-compose up -d odm
```

3. **Download the Decision Center Client API**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench">
<booleanAttribute key="append.args" value="true"/>
<booleanAttribute key="askclear" value="true"/>
<booleanAttribute key="automaticAdd" value="true"/>
<booleanAttribute key="automaticValidate" value="true"/>
<stringAttribute key="bootstrap" value=""/>
<stringAttribute key="checked" value="[NONE]"/>
<booleanAttribute key="clearConfig" value="true"/>
<booleanAttribute key="clearws" value="false"/>
<booleanAttribute key="clearwslog" value="false"/>
<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/DynamicDomain"/>
<booleanAttribute key="default" value="true"/>
<booleanAttribute key="includeOptional" value="true"/>
<stringAttribute key="location" value="${workspace_loc:ilog.rules.studio.samples.bomdomainpopulate}"/>
<booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21"/>
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true"/>
<stringAttribute key="pde.version" value="3.3"/>
<stringAttribute key="product" value="com.ibm.rules.studio.rcp.bundle.odmproduct"/>
<booleanAttribute key="show_selected_only" value="false"/>
<stringAttribute key="templateConfig" value="${target_home}/configuration/config.ini"/>
<booleanAttribute key="tracing" value="false"/>
<booleanAttribute key="useCustomFeatures" value="false"/>
<booleanAttribute key="useDefaultConfig" value="true"/>
<booleanAttribute key="useDefaultConfigArea" value="true"/>
<booleanAttribute key="useProduct" value="false"/>
</launchConfiguration>
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Export-Package: ilog.rules.studio.samples.bomdomainpopulate,ilog.rules.s
tudio.samples.bomdomainpopulate.actions,ilog.rules.studio.samples.bomdo
mainpopulate.stock,org.apache.derby.iapi.services.info,org.apache.derby
.info,org.apache.derby.jdbc
Bundle-Version: 9.5.0.0
Bundle-Version: 9.6.0.0
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-21
Automatic-Module-Name: ilog.rules.studio.samples.bomdomainpopulate
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
odm:
image: icr.io/cpopen/odm-k8s/odm:9.5
image: icr.io/cpopen/odm-k8s/odm:9.6
mem_limit: 4G
memswap_limit: 4G
user: "1001:0"
Expand All @@ -12,7 +12,7 @@ services:
- 9453:9453

odm-dynamic-domain:
image: icr.io/cpopen/odm-k8s/odm:9.5
image: icr.io/cpopen/odm-k8s/odm:9.6
mem_limit: 4G
memswap_limit: 4G
user: "1001:0"
Expand Down
Loading