◷ Reading Time: 6 minutes
Techniques
There are two ways of entering the rules:
- Using the mouse (drag and drop technique)
- Using keyboard (filter and enter technique)
To compose a rule using the drag and drop method involves several steps;
- Select an item from the toolbox
- Drag it over the document (blank opened rule document)
- Drop the item into the document.
The following table shows how to create a procedure rule and start adding the first element to the rule document:
The first step is to create a project and add a procedural rule into it named procedure.xml.
- First, select the root folder from Project Explorer and then press
- A rule document selector will be displayed, then select the “Decision Logic\Tree Procedure” from the tree on the left pane and the “Tree Procedure” icon from the right pane.
- Enter the rule name (Procedure.xml) and press “OK”.

After adding a document, the Properties window can be seen.

Using the Mouse (drag and drop technique)



DO NOT RELEASE THE MOUSE BUTTON.



Positioning an Item
While you are dragging an item from the toolbox into the document you have the following choices, each of which will have a different result and put the new item in different positions vis-a-vis the selected node in the document.
First, add a Scope node to the document you have opened:

And then you can practice the following techniques:
Over a Selected Node


Top of Selected Node


Bottom of the selected node


Using keyboard (filter and enter technique)
Once you have your document opened, instead of dragging items from the toolbox and dropping them on the document, you can use the keyboard to create your model. Let’s continue and add a couple of more nodes to this rule document.
Enter




Shift Enter




This is a good technique that lets you add multiple items under a single node without touching your mouse!
Document Status
When you modify a document, it becomes unsaved. When you can see “*” on top of the document, you just added a node (last step).