Node for calling IBM ODM decision services
Last updated 2 months ago by jphillips-bp3 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @bp3/node-red-contrib-ibm-odm-make-decision 
SYNC missed versions from official npm registry.


This Node-RED node allows IBM ODM decision services to be configured and executed from within a single node without having to resort to configuring a series of nodes within a flow.

The purpose is to hide away the complexities of calling decision services and extracting the various parts of the response such as execution trace information, whilst providing easy to use configuration options that deal with the specifics of ODM.


The Make Decision node can be found in the IBM ODM palette. Simply drag onto the canvas to start configuring and using it. It can be found in the IBM ODM section of the node palette as shown below.

When the decision service is called, the status of the service is displayed on the flow, as shown below.

The configuration of the node is split into two parts using configuration nodes. The first is the target decision server configuration including the host and authentication details, and the second is the configuration of the rule app and rule set path. This allows a mixture of configurations per node, for example if you want to call the same rule app/rule set but on different target decision servers. Examples can be seen below.

You can also set the decision service configuration dynamically by setting properties on the msg object, which can be mixed and matched with the defined configuration nodes. An example can be seen below.

There is full documentation on how to configure the node within the node help info. There is also an example flow which can be imported from the file tests/make-decision-test-flow.json.


To run the unit tests, use the following command from the root of the project: npm test.

There is also a Docker Compose YML file node-red/docker-compose.yml that will create a basic Node-RED server. Once started you can then see the test flow with described earlier. To run the Node-RED container you will need to first install Docker, and then run the following command: docker-compose up.


The component currently only works with JSON/REST services. This decision was made due to the fact that JSON/REST is the most popular method of communicating with ODM decision services, and that natively Node-RED works with JSON and Javascript Objects. If there is a demand for SOAP or XML/REST, then we will look to build it into the component.

The execution trace currently only returns the following information. Again of more trace data is required then we will look into building it into the component:

  • Decision Id
  • Requested ruleset path
  • Executed ruleset path
  • Execution date
  • Execution duration
  • List of the rules fired


This component has been tested with the following ODM versions:

  • ODM 8.9.2 & 8.10
  • ODM On Cloud

However given the stable nature of the HTDS functionality in ODM, this should work OK with past versions of ODM that support JSON over REST.

Current Tags

  • 1.0.10                                ...           latest (2 months ago)

9 Versions

  • 1.0.10                                ...           2 months ago
  • 1.0.9                                ...           9 months ago
  • 1.0.8                                ...           10 months ago
  • 1.0.7                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 10
Last Month 21
Dependencies (2)
Dev Dependencies (3)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |