A No-Code Approach to Decision Support and Knowledge Capturing

Download the workshop slides here: pdf

1 Basic handyman example in DMN

1.1 Assignment

We use the Camunda DMN simulator to represent the following decision procedure:

  • First, you need to know if you can make a hole in the wall:
    • You can do this in brick or wood, but not in tile
  • Then, you can decide how to hang the object:
    • If you can make a hole and the object weighs <= 20kg, use nails
    • If you can make a hole and the object weighs > 20kg and <= 40 kg, use screws
    • If you can't make a hole and the object weighs <= 15 kg, use glue

Steps:

  • Download the skeleton DMN model and upload it to the Camunda DMN editor
  • Open the decision tables (by clicking on the green squares in the top left corner) and fill in the correct information Note that this tool represents the boolean values by true and false (instead of Yes/No). Strings have to be surrounded by double quotes.

1.2 Solution in Camunda

The solution file can be uploaded to the Camunda editor.

1.3 Handyman DMN in Interactive Consultant

View the same DMN model in Interactive Consultant. The "Edit" option can be used to view the tables.

2 Handyman example in cDMN

2.1 Assignment

Starting from this partial model, represent the following constraints using cDMN constraint tables:

  • Nails support weights up to 20kg, screws support up to 40kg and glue supports only 15kg.
  • Nails and screws require holes in the wall, which is possible for brick or wooden walls, but not for tiles.

2.2 Solution

3 Updating the Handyman example: diamond drill bit

3.1 Assignment

Extend the model to allow holes to be drilled in tiles walls if you own a diamond drill bit. Starting from the solution to the previous exercise, you will need to:

  • Add an additional Bool to represent whether we own such a diamond drill bit
  • Add an appropriate new column to one of the existing tables

3.2 Solution

4 Component design

4.1 Basic model

Starting from this glossary, add the following constraints:

  • For the Outer component
    • If its material is P1, then the maximum temperature <= 100
    • If its material is P2, then the maximum temperature <= 150
    • If its material is P3, then the maximum temperature <= 200
  • (Same for the Inner component)
  • The materials for the Inner and Outer components should be compatible:
    • P1 is compatible with P1 and P2
    • P2 is compatible with P1 and P2
    • P3 is compatible with P3

Here is the solution

4.2 With melting point

We now make the model more readable by adding the information that the ``magic numbers'' 100, 150, 200 are actually the melting points of the three materials P1, P2, P3. Starting from the solution to the previous exercise, update the glossary to represent this and then change also the constraint table.

Here is the solution with melting point

The resulting constraint table can be made more compact with a quantification

4.3 With compatible materials

Similarly to how we added the melting point function, we can also add and define an explicit relation stating that two materials are compatible. This results results in this model with named quantification.

How can we now use this replace the constraint table that we had previously?

Here is the solution.

5 Team selection

5.1 Initial model

We start from this model, which counts how many employees are selected to be part of the team. You can already experiment with it in the Interactive Consultant.

5.2 Knowledge of programming languages

Update the glossary of this model with the following concepts:

  • We consider three programming languages: Java, C, PHP
  • Our employees have knowledge of the following language
    • Edsger knows Java and C.
    • Tony knows PHP and Java.
    • Donald knows C.
    • Niklaus knows Java, C and PHP.
    • Brian knows C and Java.

Solution: intermediate result with updated glossary

Now, add a constraint that all selected team members should know Java.

The solution to this step looks like this.

5.3 Years of experience

Update the glossary with the following concepts:

  • Employees can have between 0 and 30 years of experience:
  • In the current case:
    • Edsger has 12 years of experience.
    • Tony has 5 years of experience.
    • Donald has 2 years of experience.
    • Niklaus has 10 years of experience
    • Brian has 1 years of experience.

See intermediate result with updated glossary

Add the constraint that all selected employees should have at least 2 years of experience.

The solution to this step looks like this.

5.4 Ranks and project lead

Update the glossary to represent that one of the employees must be Project Lead.

Add the constraint that the Project Lead must be an employee who is selected for the project and has at least 5 years if experience.

The solution to this step looks like this.

5.5 Skills

Update the glossary with the following concepts:

  • There are four different skills: Project Management, Agile, Functional Analysis
  • Our employees have the following skills:
    • Edsger has the "Agile" skill.
    • Tony has the "Agile" and "Functional analysis" skills
    • Donald has the "Functional analysis" skill.
    • Niklaus has the "Project Management" skill.
    • Brian has the "Functional analysis" skill.

This is the updated glossary

Add a constraint that the Project Lead should have the Project Management skill.

The solution to this step looks like this.

5.6 Scrum master

The project team should also have a Scrum Master, who should have the Agile skill. (The Scrum Master can be the same person as the Project Lead, or not.)

This leads to the complete solution.

6 Useful links

Author: Joost Vennekens

Created: 2024-08-27 Tue 16:29

Validate