bpmn-io / bpmn-js-element-templates

The element template extension for bpmn-js
MIT License
5 stars 3 forks source link

Correctly apply condition depending on boolean on initial load #97

Closed barmac closed 6 months ago

barmac commented 6 months ago

Closes #94

barmac commented 6 months ago

Notice that we cannot blindly cast to boolean, because in FEEL-enabled boolean properties the value is set to =true.

nikku commented 6 months ago

I verified against the documentation that this meets our expectations.

barmac commented 6 months ago

In the meantime, I implemented a general fix 😅

barmac commented 6 months ago

I added tests for isExecutable. Notice that we rely on explicit values (no changes here), but that's how element templates work anyway.