-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditional properties are not reliably rendered #3029
Comments
|
I believe it should work the same as for any other templated "Dropdown" property. When no {
"name": "Dropdown",
"id": "Dropdown",
"appliesTo": [ "bpmn:ServiceTask" ],
"properties": [
{
"label": "Task Priority",
"type": "Dropdown",
"choices": [
{ "name": "low", "value": "20" },
{ "name": "medium", "value": "50" },
{ "name": "height", "value": "100" }
],
"binding": {
"type": "property",
"name": "camunda:priority"
}
}
]
} |
Moving this to backlog as it was not picked for the next iteration. Feel free to disagree. |
Hi, a forum user just ran into this issue, too: https://forum.camunda.io/t/help-use-expression-in-element-templates/39039 The problem became visible earlier as I thought. Since now at least two users reported this and the feature will become more powerful if we fix this, please put it into ready and pick it up on the next planning. |
Also reported from the connectors side of things: https://github.com/camunda/web-modeler/issues/3075. Moving back to ready and hoping to be able to pick this up. |
I had a look at this and here are my discoveries: Regarding rendering without a default values:
Regarding switching between values:
EDIT: updated root cause here bpmn-io/bpmn-js-properties-panel#815 |
Closed via dependency bump. |
UPD, TLDR: initial dynamic value is not pre-populated. Hi @nikku, sorry for re-opening, just wanted to double-check if this is released (or is it even the same issue?) because this is an issue raised by one of external users. I currently still see an issue on dev. Consider following element template and video attached.
Screen.Recording.2022-11-30.at.18.45.50.mov |
Thanks for raising. I propose to (and will) move this to a separate issue. |
Opened #3327 to track the bug you reported as a follow up. |
FYI @igpetrov #3327 (comment). |
Describe the bug
Property conditions are not evaluated right when applying a template where the referenced dropdown value has no explicit default. Also, the value of a binding is not changed to the specified default value when using multiple but mutually exclusive properties with different default values (i.e. to simulate conditional default values). The latter is a behavior requested by a partner that implements a whole connector ecosystem.
Steps to reproduce
See the video and template (next comment)
Bildschirmaufnahme.2022-07-14.um.17.12.52.mov
Expected behavior
Environment
The text was updated successfully, but these errors were encountered: