principianteintegraciónInicio fácil

Oracle DB Connector

Demonstrates how to leverage a database as a data source. It utilizes a user-configured database within its infrastructure and includes SQL commands to maintain the required tables.

DecisionRules

David Škarka

Template author

This solution demonstrates an integration between DecisionRules and an Oracle database, utilizing it as a source for data retrievalThe difference between multi-row and single-row query nodes is mentioned.

The primary objective of this flow is to allow users to filter geographic groups and retrieve a list of countries that match those groupsThe flow automates the process of querying a country database.

Solution Components

  • Decision Flow Oracle DB Connector: The core logic that processes user input, queries the database, and populates the flow’s output.
  • RDBMS Node (selectCountries): Queries the  lov_country_region_table  using the user-provided string to find matching geographical groups and provides a list of countries within those groups. Each country is then processed through iteration over every item returned by the query.
  • Append Node (arrayAppend): Within the iteration (loop) over every country, appends the country name to the end of the output parameter countriesList  (an array).
  • Assign Node (assignOutput): Assigns the total number of retrieved countries to the output parameter numberOfCountries.

How to Use This Rule
  • Prerequisites: An Oracle database must be accessible to the DecisionRules backend with the alias conn-oracle-templates.

  • Setup: Use the provided DDL and INSERT nodes to create the source table (templates.lov_country_region_table) and populate it with the sample data provided in the template.

  • More details could be found in the main flow description - in the Flow Designer, select in the Sidebar the Rule Settings  and scroll down to Description

Check iconA checkmark inside a circle signifying "yes"Minus iconA minus inside a circle signifying "no"PROS IconA plus symbol representing positive aspects or benefits.CONS IconA minus symbol representing negative aspects or drawbacks.

More Templates

See Other Templates

servicios financierossugerido

Pruebas A/B

Descubra una forma sencilla de asignar un grupo de prueba para realizar pruebas A/B en sus decisiones.

Explore
servicios financierossugerido

Precios basados ​​en el riesgo

Descubra una forma sencilla de aplicar una matriz de precios basada en riesgo adecuada en función del tipo de cliente.

Explore
servicios financierossugerido

Normas de elegibilidad y política

Descubra una forma sencilla de definir y ejecutar varios conjuntos de reglas y obtener el resultado de la decisión final.

Explore