Import dmn xml 1.1 files

292 views
Skip to first unread message

Alexandre Ramos

unread,
Jun 5, 2017, 7:38:26 PM6/5/17
to Drools Setup
Hi everyone,

    How to import .dmn files on Drools Workbench 7???

Thanks,

Alexandre Porcelli

unread,
Jun 5, 2017, 8:37:22 PM6/5/17
to drools...@googlegroups.com
Hi Alexandre,

Sorry to say that Workbench currently doesn't have .dmn support - a
thing that we hope to change soon.

Regards,
___________________
Alexandre Porcelli
F: +1 (978) 844-8695
http://porcelli.me
> --
> You received this message because you are subscribed to the Google Groups
> "Drools Setup" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to drools-setup...@googlegroups.com.
> To post to this group, send email to drools...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/drools-setup/664cf5ca-1ef0-4b3a-8ef0-e1bf6029d88d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Alexandre Ramos

unread,
Jun 6, 2017, 11:55:33 AM6/6/17
to Drools Setup
Hi Mr. Porcelli,

     Thanks for your reply...
     I'm using Drools 7 CR3. 

Thxs,

Alexandre Porcelli

unread,
Jun 7, 2017, 10:47:07 AM6/7/17
to drools...@googlegroups.com
Hi Alexandre,

Yes... the core engine supports DMN, but what I said is that our web
tooling (workbench) is not there yet. But you can use it outside
Workbench.

Regards,
___________________
Alexandre Porcelli
F: +1 (978) 844-8695
http://porcelli.me


On Tue, Jun 6, 2017 at 11:55 AM, Alexandre Ramos
> https://groups.google.com/d/msgid/drools-setup/9a499436-6911-4cf9-a3aa-bfda61d54b59%40googlegroups.com.

Alexandre Ramos

unread,
Jun 7, 2017, 10:59:56 AM6/7/17
to Drools Setup
And how could I do that, Mr. Porceli?

I have used Signavio Trial to generate my rules directly but I would like to use an open source tool for financial issues initially, I thought of Camunda. However I do not understand how I can aggregate the .dmn file exported from Camunda to my project (kjar).

Michael Anstis

unread,
Jun 7, 2017, 11:09:20 AM6/7/17
to drools...@googlegroups.com
You should be able to add the DMN file to Kie as you would DRL files (I assume you've read the User Guide)?

BCC'ed Edson and Matteo who are our resident DMN experts for further comment (and perhaps pointer to Unit Tests).

To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

Edson Tirelli

unread,
Jun 7, 2017, 11:43:04 AM6/7/17
to drools...@googlegroups.com

   Michael is correct. We don't have an editor for DMN files yet, but you can add DMN files to projects in workbench as you would add any other file. 

   Also, if all you want is to execute the model, you can do so from java like in these examples:


   It is also supported in the kie-server if you want to use REST APIs to invoke the model.

   Sorry we are a bit late on the documentation, but you can follow progress on the documentation here:


   Finally, a couple blogs showing examples:



   Edson


On Wed, Jun 7, 2017 at 12:09 PM, Michael Anstis <michael...@gmail.com> wrote:
You should be able to add the DMN file to Kie as you would DRL files (I assume you've read the User Guide)?

BCC'ed Edson and Matteo who are our resident DMN experts for further comment (and perhaps pointer to Unit Tests).

For more options, visit https://groups.google.com/d/optout.



--
  Edson Tirelli
  Sr Principal Software Engineer 
  Red Hat Business Systems and Intelligence Group

Alexandre Ramos

unread,
Jun 7, 2017, 1:04:12 PM6/7/17
to Drools Setup
To finish I ask: If the rules are defined via DMN files, as is the case with time and quantity events?


Em quarta-feira, 7 de junho de 2017 12:43:04 UTC-3, Edson Tirelli escreveu:

   Michael is correct. We don't have an editor for DMN files yet, but you can add DMN files to projects in workbench as you would add any other file. 

   Also, if all you want is to execute the model, you can do so from java like in these examples:


   It is also supported in the kie-server if you want to use REST APIs to invoke the model.

   Sorry we are a bit late on the documentation, but you can follow progress on the documentation here:


   Finally, a couple blogs showing examples:



   Edson

On Wed, Jun 7, 2017 at 12:09 PM, Michael Anstis <michael...@gmail.com> wrote:
You should be able to add the DMN file to Kie as you would DRL files (I assume you've read the User Guide)?

BCC'ed Edson and Matteo who are our resident DMN experts for further comment (and perhaps pointer to Unit Tests).

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

Alexandre Ramos

unread,
Jun 8, 2017, 10:06:18 AM6/8/17
to Drools Setup
Hi Mr. Tirelli,

     A create a new project and I import the .dmn file created on Camunda at "Upload file" menu choice on Workbench.
     The error message unknown resource type: ResourceType = 'Decision Model and Notation'.

Thx,


Em quarta-feira, 7 de junho de 2017 12:43:04 UTC-3, Edson Tirelli escreveu:

   Michael is correct. We don't have an editor for DMN files yet, but you can add DMN files to projects in workbench as you would add any other file. 

   Also, if all you want is to execute the model, you can do so from java like in these examples:


   It is also supported in the kie-server if you want to use REST APIs to invoke the model.

   Sorry we are a bit late on the documentation, but you can follow progress on the documentation here:


   Finally, a couple blogs showing examples:



   Edson

On Wed, Jun 7, 2017 at 12:09 PM, Michael Anstis <michael...@gmail.com> wrote:
You should be able to add the DMN file to Kie as you would DRL files (I assume you've read the User Guide)?

BCC'ed Edson and Matteo who are our resident DMN experts for further comment (and perhaps pointer to Unit Tests).

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
1.png
2.png
3.png
4.png
diagram_1.dmn

Michael Anstis

unread,
Jun 8, 2017, 11:11:42 AM6/8/17
to drools...@googlegroups.com
I suspect you'd need to use (at least) 7.0.0.Final if not 7.1.0-SNAPSHOT.. but Mr Tirelli can confirm.

To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

Alexandre Ramos

unread,
Jun 8, 2017, 11:16:34 AM6/8/17
to Drools Setup
Mr. Anstis,

      Can you give me the link to download these new versions?

Thx,

Michael Anstis

unread,
Jun 8, 2017, 11:39:45 AM6/8/17
to drools...@googlegroups.com
You can try searching for them on Maven Central or Nexus.

Your question highlighted the Drools and jBPM download pages have not been updated (thanks!) so we'll chase up the necessary changes.

To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages