Skip to main content
The visual representation of a Decision Requirements Graph (DRG) is called a Decision Requirements Diagram (DRD).

Switch from decision table to DRD

Open the existing Dish decision table and click View DRD to access the Decision Requirements Diagram view, which displays a single decision named Dish. Switch to the DRD view

Set the name and the id of the DRD

Click the canvas and open the properties panel. Update the id to dinnerDecisions and the name to Dinner Decisions. Set the DRD id and name

Create a new decision in the DRD

Select the decision icon from the palette to add a new decision. Name it Beverages and set its type to Decision Table using the wrench icon. Configure the id as beverages via the properties panel. Connect the Dish decision to Beverages to indicate that Dish is a required decision providing input for the beverages evaluation. Add the Beverages decision Connect the required decision

Configure the decision table and add the rules

Set up the Beverages decision table with:
  • Input: Dish (expression: desiredDish, type: string)
  • Input: Guests with children (expression: guestsWithChildren, type: boolean)
  • Output: Beverages (name: beverages, type: string)
  • Hit Policy: COLLECT (with LIST operator)
Configure the Beverages decision table Save your changes and replace the DMN file in src/main/resources.
Catch up: get the sources of Step-5
Or download as a .zip.

Evaluate the decision

Extend the application class to evaluate the Beverages decision by adding a guestsWithChildren variable:
Catch up: get the sources of Step-6
Or download as a .zip.

Build and deploy the web application

Build with Maven and replace dinner-dmn-0.1.0-SNAPSHOT.war in $ASEEFLOW_HOME/server/apache-tomcat/webapps. Check the Tomcat log for successful deployment indicators:

Verify the evaluation with Cockpit

Open Cockpit and navigate to the Decisions section. Beverages decision overview in Cockpit Click the Beverages decision and select an id to review the historic evaluation data. Beverages decision history in Cockpit Verify that both rules matched, producing beverages outputs of Guiness and Water. Note that the Dish decision evaluates as part of the Beverages evaluation, providing Stew for the desiredDish input.

Next steps