Enumerations in DMN-Editor

196 views
Skip to first unread message

Bronson

unread,
Aug 31, 2020, 4:43:28 AM8/31/20
to Kogito development mailing list
Hi all,

is it possible to define enumerations in the DMN-editor?

Cheers
B.

Amit Nijhawan

unread,
Aug 31, 2020, 5:55:28 AM8/31/20
to kogito-de...@googlegroups.com
Yes you can use enumerations in the DMN-editor.

I have attached the screenshot to use enumerations.

You can follow the doc(Click Add Constraints, select Enumeration from the drop-down options, and add the following constraints:)



--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/b036eac1-540e-40cf-a7de-67b6caeac33cn%40googlegroups.com.
Screenshot from 2020-08-31 15-20-47.png

Bronson

unread,
Aug 31, 2020, 7:30:19 AM8/31/20
to Kogito development mailing list
Thanks, works like a charme. :-)

Amit Nijhawan

unread,
Aug 31, 2020, 7:39:47 AM8/31/20
to kogito-de...@googlegroups.com
Good to hear from you:)

Eugenio Martín

unread,
Sep 13, 2021, 9:48:13 AM9/13/21
to Kogito development mailing list
Hi All, I know that is possible to write enumerate values in editor

dmn-custom-data-type-constraints.png
But if the client send me E, G, F, P, B.... and I want to see in the DMN, Excellent, Good, Fair, Poor and Bad, because is bussines oriented insted codes value, how I do?

In drools was something like this... 'Country' : ['AF=Afghanistan (AF)', 'AL=Albania (AL)']

Thanks !!!

Matteo Mortari

unread,
Sep 14, 2021, 7:45:59 AM9/14/21
to Kogito development mailing list
Hi Eugenio,

If I understand correctly your problem: on the Business / Domain Analyst side you have a domain-friendly set of enumeration, with the whole DMN model designed around it, as one would expect. On the other side, external clients might be using technical codes instead, in order to communicate the in/out values.

You need a way to bridge and make the translation between the domain model, expressed by the BA, and the external app or 3rd party app.

You may follow 2 general guidelines

Option1
You design this translation in the DMN itself, for example, you make first a subdecision that converts, from the technical code (US) received in the InputData, to the domain (United States).
This could be as simple as a common lookup of a Relation in DMN (something like lookup[code=myInput][1]).
This option is preferable when you want the Analyst to be in direct control of the translation.

Option2
You put a thin layer in front of the decision service implemented with DMN, where this translation happens.
It can be a simple Java code, orchestrated by a simple straight-through process with BPMN2 invoking first the Translation, and then the DMN model.
You can even take a look at http://www.atlasmap.io to achieve this.
This option is preferable if the boundary of the Analyst is responsible for the DMN modeling, but coordinates with some more technical actor for the integration of the decision service to the calling application.

Hope this helps, let us know your feedback
MM


Phone: +34 913 75 83 75

Web: www.decidesoluciones.es

Connect: Linkedin Twitter


Todos los datos personales utilizados para este envío han sido tratados como Responsable del Tratamiento por la entidad DECIDE SOLUCIONES, S.L. con domicilio en C/ ALBASANZ N.º 16 planta 3 – 28037 MADRID (MADRID) con la finalidad de gestionar la relación a que se refiere esta comunicación y en base a la normativa vigente. 
Los datos serán conservados durante el periodo en que dure la relación y de acuerdo con las leyes específicas, quedando sometidos a las garantías establecidas en el Reglamento (UE) 2016/679. 

La entidad DECIDE SOLUCIONES, S.L., le informa de la posibilidad de ejercitar, conforme a dicha normativa, los derechos de acceso, rectificación, supresión, limitación del tratamiento, portabilidad y oposición dirigiendo un escrito a la siguiente dirección electrónica: in...@decidesoluciones.es


AVISO DE CONFIDENCIALIDAD


Este correo y la información contenida o adjunta al mismo es privada y confidencial y va dirigida exclusivamente a su destinatario. DECIDE SOLUCIONES informa a quien pueda haber recibido este correo por error que contiene información confidencial cuyo uso, copia, reproducción o distribución está expresamente prohibida. Si no es Vd. el destinatario del mismo y recibe este correo por error, le rogamos lo ponga en conocimiento del emisor y proceda a su eliminación sin copiarlo, imprimirlo o utilizarlo de ningún modo.

CONFIDENTIALITY WARNING

This message and the information contained in or attached to it are private and confidential and intended exclusively for the addressee. DECIDE SOLUCIONES informs to whom it may receive it in error that it contains privileged information and its use, copy, reproduction or distribution is prohibited. If you are not an intended recipient of this E-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute any portion of this E-mail.

DECIDE SOLUCIONES S.L. R.M. Madrid, Tomo 25528, Libro 0, Folio 164, Sección 8, Hoja M-459986. C.I.F.: B-85391233.

--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.


--
Reply all
Reply to author
Forward
0 new messages