Dmn-js - create custom data type

Hi,

Is there a simple way to add custom data type (BigDecimal) to dmn-js modeler and viewer? It is a must if I want to work with money.
I found documentation but only for Java engine part.

Thank you,
Best regards,
Rómeó Nagy

Hi Rómeó,

in the modeler, whenever you can assign a type, you are not limited to the dropdown values. You can also click in the field and manually enter a custom value in there.

Does this answer your question?

Cheers
Sebastian

Hi Sebastian!

Thank you, I did not know that this is a freely type field. However:

  • I would like to see BigDecimal in the drop down list.
  • I would like to handle BigDecimal as a number to use it in simple (editing) mode.

Best regards,
Rómeó Nagy

You can replace the build in module that defines how the dropdowns are handled with your custom implementation. There you add BigDecimal to the list of available options. A good starting point would be the type-row feature.

Hi Sebastian!

I think it should be available at the time of constructing the DMN as a parameter to define custom data types and set its form like string, number, etc… to how behave in simple editing mode.

I know its a FR and can be other idea too.
Anyway, thanks for the help.

Best regards,
Rómeó Nagy