Skip to content

Conversation

@jarekdanielak
Copy link
Contributor

Closes #192
Closes #195

Proposed Changes

This ensures that property value and the condition matcher are both parsed from FEEL expressions to their target types, e.g. true matches "=true", "=5" matches 5 etc.

Removed test

The removed test states that a condition "should not match when property type is Number but condition expect string". I think the condition has no way to expect a certain type. It expects the type of the related property, and we should try to match the types, in the spirit of doing the hard work for the user.

Try out

npm start and apply "Condition" or "Condition (Number)" templates. Click around the custom properties.

Checklist

Ensure you provide everything we need to review your contribution:

  • Contribution meets our definition of done
  • Pull request establishes context
    • Link to related issue(s), i.e. Closes {LINK_TO_ISSUE} or Related to {LINK_TO_ISSUE}
    • Brief textual description of the changes
    • Screenshots or short videos showing UI/UX changes
    • Steps to try out, i.e. using the @bpmn-io/sr tool

@jarekdanielak jarekdanielak self-assigned this Dec 8, 2025
@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Dec 8, 2025
// given
const element = changeTemplate('Task_1', numberTemplate);
// TODO(@jarekdanielak): To be implemented as part of
// https://github.com/bpmn-io/bpmn-js-element-templates/issues/195
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR description says #195 is going to be closed by the PR so how can this remain a TODO?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs review Review pending

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support boolean and number value for feel: static property Boolean conditions in templates are not working properly.

4 participants