This sample demonstrates how to plug a custom value editor into the Business console Intellirule editor.
It is the ODM on k8s adaptation of the ODM on premises Custom Value Editor sample.
Before you begin, ensure you have at least Docker 24.0.x (and optionally Kubernetes 1.27+).
To use the sample in Decision Center, you need to build a JAR for Docker and a ZIP for Kubernetes
-
Retrieve ODM libraries:
Navigate to the source directory of the Custom Value Editor sample:
cd decisioncenter/businessvalueeditor/businessvalueeditor-source
ODM libraries are required to compile the JAR. For that, deploy ODM for Developer public docker image:
docker-compose -f compose-odm-dev.yml up odm &
and then download the ODM libraries:
wget http://localhost:9060/decisioncenter/assets/decision-center-client-api.zip
Unzip decision-center-client-api.zip in the lib directory :
unzip decision-center-client-api.zip -d "lib"
Undeploy ODM for developer (especially if you continue this tutorial on Docker to avoid a TCP/IP port usage conflict) :
docker-compose -f compose-odm-dev.yml down
-
Build the JAR
The instructions below enable to build the JAR using a Docker container featuring Maven and a JDK version 17.
For ODM 8.12, you must use maven:3.8.1-openjdk-11 instead and maven:3.8-adoptopenjdk-8 for earlier releases.
Run the command below in the decisioncenter/businessvalueeditor/businessvalueeditor-source directory:
docker run --rm \ -v "$(pwd)":/usr/src/sample \ -w /usr/src/sample \ maven:3.8.5-openjdk-17 \ mvn clean install
The JAR that will be used on Docker is generated in the target directory and is named businessvalueeditor-1.0.jar.
The ZIP that will be used on Kubernetes is generated in the target directory and is named businessvalueeditor-1.0.zip.
Click one of the links below:
- In Kubernetes.
- In Docker.