-
Notifications
You must be signed in to change notification settings - Fork 49
it should not be possible to create Messages with invalid payload #272
Comments
Solution I would propose:
=> This way we can ensure that there will always be a Feel expression like value in the Subscription Correlation Key field. When a user enters a value without a starting Will need to check with Zeebe team what a appropriate default value would be. |
I don't think we should fill a correlation key randomly, there is no sane default as this depends on the variables the user adds to the process. IMHO I think we should validate that field and make sure that the process model does not contain any unreferenced message elements /cc @saig0 can you share you opinion please 🍪 |
The solution I outlined in #272 (comment) would be a "quick fix". If there is no sane default then we would need IMO the following solution:
Note that the "Delete the message" functionality is not present in the Properties Panel (ie. see camunda/camunda-modeler#136). Therefore we would be blocked for this issue as of now. But note that there is activity to add this "deletion" functionality (see camunda/camunda-modeler#1930) |
We can validate the field to be a FEEL expression (starting with Also, I have a feeling we mixing some things up inside this issue We should keep this issue focus on the first one and create another one for the second issue. |
I'm okay with all the suggestions. We should have validation for the field. We can prefill it, for example with |
My concern with prefilling it with a valid expression like |
Let's not pre-fill it but go for validation within the panel instead. ➡️ it should be visible immediately to the user that something is missing as she creates the message. Mid-term we'll likely add linting and deployment feedback to make these issues even more visible. |
Okay, so concluding from what we discussed. We can do the following things:
=> I created separate issue for to make the progress and next steps clearer. I will close this issue. Please feel free to re-open in case you feel something is missing / got lost. |
Describe the Bug
<bpmn:message>
entries are not deletableOR
it is possible to create invalid
<bpmn:messages>
Steps to Reproduce
subscription correlation key
(here:wurst
)despite my model is not using the created message, it is still part of the model and therefor not deployable
Expected Behavior
it should not be possible to create messages with invalid payload messing my model w/o even using it
Environment
The text was updated successfully, but these errors were encountered: