I have a problem with element templates using Boolean type on camunda:inputParameter fields. When I select the template for a service task and change the status of the custom boolean field, I cannot save the diagram any more.
When now try to create a simple workflow start → service task → end, select the template on the service task and change the value of the checkbox, I cannot save the diagram anymore.
By now there is no correct way to bind template property with type Boolean to camunda:inputParameter with type Text (which is by default, if you not set “scriptFormat” in binding section)
You could see error by yourself (in Modeler open Developer Tools by F12 in Windows, go to Console tab, and after press Save). Some javascript expect String but get Boolean.
As indicated in my previous answer you cannot assign a Boolean value to camunda:inputParameter because the value must be of type String.
The documentation relates to the fact that you can very well use a boolean checkbox for actual boolean values (Process#isExecutable, camunda:async, …).
The documentation states that there are allowed bindings such as “camunda:inputParameter” and allowed Types such as “Boolean”.
Therefore at least Alexander and i concluded that the combination “camunda:inputParameter” + “Boolean” is possible as well.
To solve the initial question it was necessary to apply the workaround suggested by ArtyomKosykh.
Because the workaround enables us to provide a selectable “yes”, “no” option to a process designer. Its just a combobox-list instead of a checkbox.
So for me this workaround was the answer which solved the question.