-
Notifications
You must be signed in to change notification settings - Fork 198
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
Add ability to create optional
inputs & outputs via cloud element templates
#559
Comments
What I would expect here is |
@pihme @pinussilvestrus I can confirm that optional is required to make our connectors story fly. Empty / unbound inputs are rejected by the engine on deployment => We need to ensure we don't add them, unless non-empty. Specifically the following configuration on a service task is being rejected by the engine: Generated by an element template we must ensure it is possible to not add the input, unless filled in. |
Thanks, @nikku for reporting 👍 I think we should give this one a higher priority then. Furthermore, empty |
Agreed. ✅ Optional properties like |
So what you're saying is that linting for |
Yes, no changes should be necessary from the linting side of things. |
Is your feature request related to a problem? Please describe
The way element templates work is that properties are persisted in the XML in all cases, although they could be empty (cf. #501). For the newly added element templates support (cf. #540) for
zeebe:input
&zeebe:output
I want to prevent having empty parameters, to ensure they don't have effects on the execution engine.Describe the solution you'd like
Add the possibility to mark a
zeebe:input
orzeebe:output
property as optional. E.g.When the input field is then configured as empty, it should not persist in the resulting XML. We have to make sure it works alongside existing template configurations (or permit them via JSON Schema)
optional = true
andvalue != null
(default value is defined, what happens after I deleted the value via UI?)optional = true
andconstraints.notEmpty = true
optional = true
andeditable = false
Describe alternatives you've considered
We have something similar in Camunda Platform (C7) for output parameters, where we handled this via toggle switch. This doesn't work in a generic fashion though / with simple custom fields.
Additional context
Related to #501
Related to #540
Child of camunda/camunda-modeler#2640
The text was updated successfully, but these errors were encountered: