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 4 months ago

barmac commented 4 months ago

Closes #94

barmac commented 4 months ago

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

nikku commented 4 months ago

I verified against the documentation that this meets our expectations.

barmac commented 4 months ago

In the meantime, I implemented a general fix 😅

barmac commented 4 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.