<p>Have a look at <a href="https://arxiv.org/pdf/1603.07466v1.pdf" rel="nofollow noreferrer">https://arxiv.org/pdf/1603.07466v1.pdf</a>, this could help. There is a link in the document to a github project with dmn-js where a rules validtion is added, also to an online version where you can see how it works. </p>
Validate DMN rule not overlap while adding new rule to DMN table
<p>I am using camunda DMN in my application(in angular, java, spring).</p>

<p>I want to validate if rule is not overlapping while adding new rule to DMN table.</p>

<p>for example following is my DMN table,</p>

<hr>

<h1>| x   |  y     |   o/p  |</h1>

<p>| &lt;9  |  >50   |  "ABC" |</p>

<p>| &lt;20 |  >100  |  "XYZ" |</p>

<p>Consider user is so dumb :D , and can create rules like above.</p>

<p>Now if i/p's for above DMN are x = 10 and y = 99 then it satisfy both rules.</p>

<p>If I use UNIQUE hit policy, it wont show me error at the time of add new rule rather it will show me while evaluation of DMN table. And I dont want that :(</p>

<p><strong>How to avoid overlapping of rules while creating of rule it self using either camunda dmn js api or camunda dmn java api ?</strong></p>