Thursday, October 18, 2018

New DMN Editor Preview

The Workbench 7.13.0.Final was released Tuesday, October 16, and this version brings a lot of interesting features and important fixes. One of the highlights is the new DMN Editor as a tech preview feature that is still under development but that you can begin using.

In this article, you'll learn how to enable the DMN Editor Preview, create a simple DMN model, and execute it via a REST API.

Let's get started :-)

1) Enabling the Preview editor

Since the feature is available as a tech preview, it's hidden by default. To enable it, go to Settings -> Roles, select the role you're logged in (for example, "admin") and remove the "DMN Designer" exception in the "Permissions" section. Take a look at the steps:


2) Creating a DMN model

Now that you have the DMN Editor enabled, let's create a new project: Go to "Projects", click on "Add asset" and then open the "DMN Preview". Here you can explore the editor and create your DMN file with your own rules or you can follow the steps provided by this video:

Notice that two input nodes ("Number of branches" and "Branches dispersion") and one decision node ("Branches distribution") were inserted. Additionally, we created a Decision Table in the "Branches distribution" node to write some rules.

The DMN file created in the video can be downloaded here.

3) Executing the DMN model

With the DMN file created and saved, it's time to deploy the DMN model. Go to Projects -> Your project and click on "Deploy" to deploy your project in a KIE Server. Now, access your instance with the "/dmn" suffix, in my case the URL is: http://localhost:8080/kie-server/services/rest/server/containers/DMNSample_1.0.0/dmn.

If you follow the steps above correctly, you'll see something like this:


Notice the model-namespace and the model-name values, they will be useful in the next step.

Now, we can make requests to execute rules in our KIE Server instance. See the example below:

Replace the URL, the model-namespace and the model-name with your own information, and try it locally. The rules will be executed by the KIE Server with the DMN model you've created, and the response will be something like this:

This article describes a small part of all the functionality of the DMN Editor. You can write even more complex rules by applying different structures. If you want to read more about the DMN specification, see the DMN Cookbook.

The DMN Editor is still under development. New features and enhancements are to come. Stay tuned ;-)


Share/Bookmark

6 comments:

  1. Hi, can you please provide an example for POST request? I am having a hard time figuring out how to pass the input parameters for the decision in my HTTP request

    ReplyDelete
  2. It was a brilliant opportunity to visit this sort of site and I am cheerful to know, much obliged to you such a great amount for allowing us to have this open door.mobile app development company chennai

    ReplyDelete
  3. While using combined each of our remarkably seasoned home cleaning staff members, most up-to-date tools along with good quality substances that leave Force along with Water the industry market leaders pertaining to Property cleanup throughout Dubai. cleaning services abu dhabi

    ReplyDelete
  4. The updated version is more advanced and more convenient to use for users.

    ReplyDelete
  5. فنحن نقوم بكافة أعمال التنظيف للشقق والفلل والقصور نعمل على تنظيف كافة المنزل بداية من الأرضيات سواء كانت بلاط أو سراميك أو رخام و أيضا نقوم بتنظيف فرش الأرضيات سواء موكيت أو سجاد بأكثر من طريقة سواء باستخدام البخار أو بجهاز الرغوة الالية أو باستخدام الفرشاة الاليه. كما نقوم بتنظيف الأثاث بأجود المواد التي لا تؤثر على درجة الالوان أو حالة الأخشاب كما نقوم بتلميع الزجاج ممها بلغ ارتفاعة.

    شركة غسيل موكيت بابها
    شركة عزل خزانات بابها
    شركة تنظيف خزانات المياه بابها
    شركة تنظيف كنب بابها
    شركة رش مبيدات بابها
    شركة رش مبيدات بابها
    شركة مكافحة الحشرات بابها

    ReplyDelete
  6. Thanks for sharing. Very nice blog. Get popular magical short video app Likee and watch the latest rahasya gorak movie videos online.

    ReplyDelete