camunda / camunda-modeler

An integrated modeling solution for BPMN, DMN and Forms based on bpmn.io.
https://camunda.com/products/modeler
MIT License
1.5k stars 481 forks source link

Boolean type input elements throw output errors #4517

Closed DenovVasil closed 1 month ago

DenovVasil commented 1 month ago

Describe the bug

When we create a scheme with aws textract connector in Desctop modeler, errors appear in the output section.

Steps to reproduce

  1. Add this template to modeler
  2. prepare simple schema with aws textract outnound connector
  3. see errors in output image

Expected behavior

Output should not contains errors. We think that errors in output are the reason for the e2e tests to fail

Environment

Additional context

No response

nikku commented 1 month ago

@DenovVasil any particular reason this ended up in this project?

DenovVasil commented 1 month ago

@DenovVasil any particular reason this ended up in this project?

sorry, changed

marstamm commented 1 month ago

Hi @DenovVasil ,

thank you for the bug report. I can reproduce this. We do have a fix in the element templates here: https://github.com/bpmn-io/bpmn-js-element-templates/pull/121

Input/output mappings need to be feel expressions. While we do cast Number and Boolean fields to feel on change, we did not do it for default values. As a workaround, you can change the default values for the Boolean properties from "value": true to "value": "=true" until the PR above is merged and integrated.

nikku commented 1 month ago

Pending downstream integration of https://github.com/bpmn-io/bpmn-js-element-templates/releases/tag/v2.2.1.