Skip to content

Latest commit

 

History

History
72 lines (48 loc) · 2.59 KB

File metadata and controls

72 lines (48 loc) · 2.59 KB

Custom Value Editor Sample

Introduction

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.

Running this sample in Decision Center

1) Prerequisites

Before you begin, ensure you have at least Docker 24.0.x (and optionally Kubernetes 1.27+).

2) Building the Decision Center extension JAR

To use the sample in Decision Center, you need to build a JAR for Docker and a ZIP for Kubernetes

  1. 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
  2. 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.

3) Instructions to use the sample in Decision Center

Click one of the links below: