Decision Requirements Diagram

Overview

Decision Requirements Diagram (DRD) is part of Decision Service, which is defined as per the Decision Model and Notation (DMN) specifications. DRD modeler can be used to seamlessly chain and execute multiple decision tables together to achieve a business outcome.

DRD Modeler

To help you design a Decision Requirements Diagram to orchestrate business rules, a new DRD modeler is now available as part of our Developer Tools Extension Pack for VS Code . Using this extension, you can build the required decision model definitions and DRD definitions which are compliant with the DMN specifications.

Using the DRD Modeler

Prerequisite: As a prerequisite, build all the decision table models which are required in your application. Make sure the decision models used in a DRD are related in some way and link to a common business theme and outcome. The outcome of one decision table can be used as the input of another decision table, to orchestrate business rules. Once all the required decision tables are created, create a new DRD model (.otdrd extension) to start creating the flow of decision models to achieve a business outcome.

DRD modeler properties

Similar to all other OCP modelers, provide the standard properties such as namespace, display name, name and description for the DRD model.

Property details:

  • Namespace: namespace can be used for grouping different models for a given solution.
  • Display name: display name can be used to provide an easy to identify reference for the DRD model.
  • Name: name can be used to identify a DRD model uniquely.
  • Description: description can be used to describe the DRD model details in an application context.

Stencil elements

Currently, the DRD model just supports Decision tables in the allowed items as part of the stencil configuration to model business rule orchestration as a Decision Service.

Decision Service Canvas

The DRD modeler currently supports business rule orchestration as a Decision Service. To model business rules and link multiple decision tables, drag and drop the required decision tables from the project to the DRD modeler.

Decision Service Modeler

The DRD modeler is divided into two sections. All the decision tables which are part of the DRD execution business outcome MUST be part of the upper section. All the remaining decision tables can be placed in the lower section of the DRD modeler.

Drag and drop all the input decision tables to the lower section and output decision tables to the upper section of the DRD. Connect the decision tables in the decision service modeler canvas using point and click arrows.

Decision Table Element Configuration

To use decision tables in a DRD, simply drag and drop the Decision table element to the Decision Service canvas, and configure the required decision table model reference from the properties to link the respective decision tables.

Make sure the decision tables are logically linked to achieve the business outcome. The outcome of one decision table can be used as the input of another subsequent decision table.

An example completed DRD model looks as follows:

Once the DRD model is deployed as part of the VS code application project along with other OCP modelers, the DRD model can be executed by using the Decision Service execution APIs to orchestrate and process the configured business rules to achieve the business outcome.