Booleans in Element Templates

Hi everyone,

I am facing a problem while modeling Boolean values in my Element Templates.

I defined a boolean property like this in my Element Template:

boolean1

And in the Modeler it is displayed correctly:

boolean4

But there are some problems with actually using this checkbox.
Problem 1: If I DON’T check the checkbox and try to read the value with execution.getVariable() in my JavaCode, it allways returns null.
Problem 2: If I DO check the checkbox in the modeler, the modeler can’t even save the diagram. An exeception is thrown. See the below picture:

In the version 3.1.0 this error can be seen in the log. In the version 2.2.4 of the modeler it isn’t even showing an error, the modeler just can’t save the diagram and makes nothing.

Is anyone else facing these issues while working with boolean values in Element Templates? Are there other ways to use boolean values in Element Templates?

Thanks in advance.

Regards
Michael

Hi Michael,

there is a known issue for this: https://github.com/camunda/camunda-modeler/issues/472. Maybe you will find help in this thread.

1 Like

Thanks @Niklas_Kiefer,

this describes exactly my problem. I haven’t seen this thread yet.

I will try to change my templates to the type String then.

Regards
Michael