Designer:Debugger/Tutorial Run Template

From FlexRule Wiki
Jump to: navigation, search

In this tutorial we are going to show you how to start debugging a rule project in Designer:

Install Designer and Runtime

First of all, you need to install the latest version of FlexRule Designet and Runtime from the following URL: http://download.flexrule.com

Open sample project

When you have FlexRule Designer installed, it also installs a couple of rule sample projects. You need to run FlexRule Designer and then open a project called Car Insurance using DMN from the Welcome page.

Debugger Welcome.png

Click on the project to open it.

If this is the first time you are opening the project and you have FlexRule Runtime installed, there will be a pop up window that asks if you would like to update the project Runtime setting:

Frd-car-insurance-sample-link-runtime.png

We recommend you click Yes.

Open a Decision Requirement Diagram Sample

From the Project Explorer(on the right top side), click and open the "Car Premium" Decision Requirement Diagram.

Project Explorer Open DRD.png

Car Premium Decision Requirement Diagram

After opening the DRD, the page below will appear:

Car Premium debug.png

Start Debugging

On the top Toolbar, click on the "Logic Run Template" icon:

Run Template Logic icon.png


A new Window will appear and you will be able to select a ready Template. On the top left side of the Window, there is a "Debug" button:

Logic Run Template debug.png

Now the FlexRule Designer is in debug mode you can see the yellow highlight and yellow arrow in your model (the yellow arrow points to the "Car Style Premium" Decision):

Debug begins.png

Start Navigation

Now you can use

  1. Toolbar
  2. F11 key
  3. Debug menu

to navigate the highlighted arrow

Frd-car-insurance-sample-debug-toolbar-menu.png

Opening Linked Models

When your model is linked to other models and you are trying to navigate into the child model, FlexRule Designer will ask you to confirm that you wish to open and navigate to the child model in detail or just execute it (in which case it does not go to child model details).

Frd-car-insurance-sample-debug-open-other-models.png

Note: this window may hide behind the actual FlexRule Designer main window sometimes. Look for it on your windows task bar.