java - Validate DMN rule not overlap while adding new rule to DMN table -
i using camunda dmn in application(in angular, java, spring).
i want validate if rule not overlapping while adding new rule dmn table.
for example following dmn table,
| x | y | o/p |
| <9 | >50 | "abc" |
| <20 | >100 | "xyz" |
consider user dumb :d , , can create rules above.
now if i/p's above dmn x = 10 , y = 99 satisfy both rules.
if use unique hit policy, wont show me error @ time of add new rule rather show me while evaluation of dmn table. , dont want :(
how avoid overlapping of rules while creating of rule self using either camunda dmn js api or camunda dmn java api ?
this not possible require knowledge possible input combinations. infer overlapping value range of rules can quite hard.
Comments
Post a Comment