Interact with the canvas

Let's create a decision node by dragging the rectangle into the canvas.

Rename our decision node

The decision nodes are the most important kind of node on our DMN model. Their output value depends on their decision logic and input data (input nodes or the output value from other decisions).

Now, let's double-click on our recently created decision node to rename it to Can drive? (yes, with the exclamation mark) ;-)

Create an input data

Great stuff!

Now, let's create an input data node by dragging the rounded corner rectangle into the canvas.

Rename the input data node

Input data elements denote information used as input for one or more decisions.

Now, rename our input to Age. Remember, you can double-click on our node to rename.

Edit nodes properties

Excellent!

You can also define other properties on our nodes. Toggle the properties panel by clicking on the pencil icon.

Editor components

The properties panel shows all properties related to the currently selected node. Thus, you're able to update our input data (to set its type to number for example). But don't mind about it right now.

Let's check another powerful and essential tool, the boxed expression editor, which is responsible for the defining decision logic for decision nodes. Open it by selecting our decision node Can drive?, and then clicking on the pencil icon.

Boxed expression editor

Here's where we define the decision logic for our decision node. This logic will determine the output value for it.

Right now, you don't have any boxed expression defined for our node, so click on Select expression to select one of the available boxed expressions.

Boxed expression

Excellent! If you want to learn more about each kind of boxed expression, check this: learn-dmn-in-15-minutes.com/learn/decision-logic .

Now, let's go back to our canvas by clicking on this link!