<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Filip_Drools_DMN</id>
	<title>Filip Drools DMN - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=Filip_Drools_DMN"/>
	<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Filip_Drools_DMN&amp;action=history"/>
	<updated>2026-05-13T23:41:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://training-course-material.com/index.php?title=Filip_Drools_DMN&amp;diff=75380&amp;oldid=prev</id>
		<title>Fstachecki: /* Drools &amp; DMN⌘ */</title>
		<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=Filip_Drools_DMN&amp;diff=75380&amp;oldid=prev"/>
		<updated>2019-12-17T20:18:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Drools &amp;amp; DMN⌘&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Drools Filip|096]]&lt;br /&gt;
===DMN⌘===&lt;br /&gt;
* Decision Model and Notation&lt;br /&gt;
* OMG Specification (version 1.2 published in January 2019)&lt;br /&gt;
* https://www.omg.org/spec/DMN&lt;br /&gt;
* The purpose of DMN is to &amp;#039;&amp;#039;&amp;#039;provide the constructs that are needed to model decisions&amp;#039;&amp;#039;&amp;#039;, so that organizational decision-making can be readily depicted in diagrams, accurately defined by business analysts, and (optionally) automated.&lt;br /&gt;
&lt;br /&gt;
===Decision-making⌘===&lt;br /&gt;
DMN provides Decision Requirements Diagrams:&lt;br /&gt;
* Business process models will define tasks within business processes where decision-making is required to occur&lt;br /&gt;
* Decision Requirements Diagrams will define the decisions to be made in those tasks, their interrelationships, and their requirements for decision logic&lt;br /&gt;
* Decision logic will define the required decisions in sufficient detail to allow validation and/or automation.&lt;br /&gt;
====Two levels of modeling decisions⌘====&lt;br /&gt;
:[[File:ClipCapIt-140805-154318.PNG]]&lt;br /&gt;
&amp;lt;small&amp;gt;Decision Model and Notation Beta 1, Figure 1: Aspects of modeling&amp;lt;/small&amp;gt;&lt;br /&gt;
===Drools + DMN example===&lt;br /&gt;
====swaager====&lt;br /&gt;
* Create a DMN asset (DRD + Decision logic)&lt;br /&gt;
* Deploy it&lt;br /&gt;
* Go to: http://localhost:8080/kie-server/docs/&lt;br /&gt;
* find DMN Models &lt;br /&gt;
:[[File:ClipCapIt-191217-184611.PNG]]&lt;br /&gt;
:[[File:ClipCapIt-191217-185120.PNG]]&lt;br /&gt;
* change Parameter content type to application/json&lt;br /&gt;
* Use the Deployment Unit name for a containerid&lt;br /&gt;
:[[File:ClipCapIt-191217-185506.PNG]]&lt;br /&gt;
* Use name and Namespace from your DMN model&lt;br /&gt;
:[[File:ClipCapIt-191217-185305.PNG]]&lt;br /&gt;
* paste json request and execute&lt;br /&gt;
&lt;br /&gt;
====json request====&lt;br /&gt;
 {&lt;br /&gt;
 	&amp;quot;model-namespace&amp;quot;:&amp;quot;https://kiegroup.org/dmn/_DEF37C97-81DD-490A-8B67-C3FF395D87AE&amp;quot;,&lt;br /&gt;
 	&amp;quot;model-name&amp;quot;:&amp;quot;CarRental1&amp;quot;,&lt;br /&gt;
 	&amp;quot;dmn-context&amp;quot;:{&lt;br /&gt;
 		&amp;quot;CarType&amp;quot;:&amp;quot;Lux&amp;quot;		&lt;br /&gt;
 	}&lt;br /&gt;
 	&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
====server response====&lt;br /&gt;
 {&lt;br /&gt;
  &amp;quot;type&amp;quot; : &amp;quot;SUCCESS&amp;quot;,&lt;br /&gt;
  &amp;quot;msg&amp;quot; : &amp;quot;OK from container &amp;#039;DMNtest_1.0.0-SNAPSHOT&amp;#039;&amp;quot;,&lt;br /&gt;
  &amp;quot;result&amp;quot; : {&lt;br /&gt;
    &amp;quot;dmn-evaluation-result&amp;quot; : {&lt;br /&gt;
      &amp;quot;messages&amp;quot; : [ ],&lt;br /&gt;
      &amp;quot;model-namespace&amp;quot; : &amp;quot;https://kiegroup.org/dmn/_DEF37C97-81DD-490A-8B67-C3FF395D87AE&amp;quot;,&lt;br /&gt;
      &amp;quot;model-name&amp;quot; : &amp;quot;CarRental1&amp;quot;,&lt;br /&gt;
      &amp;quot;decision-name&amp;quot; : [ ],&lt;br /&gt;
      &amp;quot;dmn-context&amp;quot; : {&lt;br /&gt;
        &amp;quot;CarType&amp;quot; : &amp;quot;Lux&amp;quot;,&lt;br /&gt;
        &amp;quot;Calculate price&amp;quot; : 200&lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;decision-results&amp;quot; : {&lt;br /&gt;
        &amp;quot;_DC576EEE-1286-4B82-9112-85EF6F50BF40&amp;quot; : {&lt;br /&gt;
          &amp;quot;messages&amp;quot; : [ ],&lt;br /&gt;
          &amp;quot;decision-id&amp;quot; : &amp;quot;_DC576EEE-1286-4B82-9112-85EF6F50BF40&amp;quot;,&lt;br /&gt;
          &amp;quot;decision-name&amp;quot; : &amp;quot;Calculate price&amp;quot;,&lt;br /&gt;
          &amp;quot;result&amp;quot; : 200,&lt;br /&gt;
          &amp;quot;status&amp;quot; : &amp;quot;SUCCEEDED&amp;quot;&lt;br /&gt;
        }&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===DMN cheat sheet⌘===&lt;br /&gt;
[[File:CheatSheet-DMN-en-EMEA.pdf]]&lt;br /&gt;
===Drools &amp;amp; DMN⌘===&lt;br /&gt;
https://www.drools.org/learn/dmn.html&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;quot;Drools DMN engine provides full runtime support for DMN models at Conformance level 3, meaning 100% of the features in the Standard.&amp;quot;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
https://access.redhat.com/documentation/en-us/red_hat_process_automation_manager/7.2/html/designing_a_decision_service_using_dmn_models/dmn-model-creating-proc_dmn-models&lt;/div&gt;</summary>
		<author><name>Fstachecki</name></author>
	</entry>
</feed>