Interact with the canvas

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

Rename our decision node

The decision nodes are the most important kind of node in 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 our recently created decision node to rename it to Can drive? (yes, with the question mark) ;-)

Create an input data node

Great stuff!

Now, let's create an input data node by dragging the rounded-corner rectangle onto 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 our node to rename.

Edit node properties

Excellent!

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

Editor components

The properties panel shows all properties related to the currently selected node. You can update our input data (to set its type to number, for example), but don't worry about that 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 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 the decision.

Right now, you don't have any boxed expression defined for our node, so click 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 this link!