Skip to content
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

Simplify injection of static values via zeebe:input #8733

Closed
nikku opened this issue Feb 3, 2022 · 2 comments · Fixed by #8844
Closed

Simplify injection of static values via zeebe:input #8733

nikku opened this issue Feb 3, 2022 · 2 comments · Fixed by #8844
Labels
blocker/stakeholder Marks an issue as blocked, waiting for stakeholder input kind/feature Categorizes an issue or PR as a feature, i.e. new behavior

Comments

@nikku
Copy link
Member

nikku commented Feb 3, 2022

Is your feature request related to a problem? Please describe.

As a user I'm happily automating my processes with Zeebe. What I already understood is that Zeebe has a clear way of distinguishing expressions (= someVariable) from static values (strings, HELLO WORLD).

What I also understood is that headers shall be used for "static configuration". Inputs on the other hand shall be used to (dynamic) variable binding.

As a matter of fact though variables can also be of "static" nature. I.e. as a user I build an email worker, require the PORT to be passed in as a variable. I do not want to have that variable in my process; I simply want to set it up in the easiest possible manner and want my team to use it.

So in order to provide that static PORT=25 value I need to specify the input using a =25 expression. What I wanted to do instead is to simply enter 25 (what would pass the result to my worker as the string "25". Intuitively I thought that simple conversion was supported, it is for messages.

image

Camunda Modeler + example diagram.

Bottom line: As zeebe already has a clear understanding if I pass an expression = ABC or not (not prefixed with =) it does not make sense why it would not be forgiving to me as a user.

Describe the solution you'd like

The engine uses = to determine if an input is an expression, if INPUT is not prefixed with = it will simply provide INPUT as a string.

In other places, i.e. messages it exactly works like this.

Describe alternatives you've considered

In a world where I as a user have full understanding of zeebe internals and/or can clearly distinguish I can freely switch between inputs and headers; so accepting the situation would be an option.

In the world of element templates and re-usable worker implementations (i.e. email or rest task) we'd always need to prefix everything, even plain strings with =. It does make things explicit but also requires users to learn more things as they get started automating with zeebe.

Additional context

This came up in the context of improved feel expression editing support as well as connectors.

@nikku nikku added the kind/feature Categorizes an issue or PR as a feature, i.e. new behavior label Feb 3, 2022
@nikku
Copy link
Member Author

nikku commented Feb 3, 2022

cc @currandwyer

@npepinpe npepinpe added the blocker/stakeholder Marks an issue as blocked, waiting for stakeholder input label Feb 15, 2022
@npepinpe
Copy link
Member

npepinpe commented Feb 15, 2022

Makes sense to me 👍 I'm happy to receive a PR for this, or maybe someone (@felix-mueller ?) can clarify whether this is required for the connectors topic and within which time frame.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker/stakeholder Marks an issue as blocked, waiting for stakeholder input kind/feature Categorizes an issue or PR as a feature, i.e. new behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants