GitHub user mattcasters created a discussion: Dynamic variables
So, what if we had a way to dynamically resolve variables. That was the main
theme of the discussion under issue #3454.
The idea is simple enough but perhaps hard to explain in text form and so it
got snowed under for a while.
Well, suppose you would be able to build plugins to resolve variables with
metadata.
We could introduce a new syntax: `#{resolver-name:variable}`.
For example: `#{pipeline:hop}` with
* `pipeline` : being the name of the Variable Resolver metadata object
* `hop` : the name of the variable or expression you would like to see resolved.

The pipeline variable resolver would look something like this:

You could then make a pipeline to resolve a variable value. Here is an example
with static data...

The pipeline gets the expression (or variable name) via the specified variable
and looks up the actual value. In the simple scenario above we're using
hardcoded value. You could also store the names and values in a database table
or a file somewhere.
Other use cases would include the lookup of JSON Web Tokens, interactions with
secret vaults and so on.
If you want to try this out, build [pull request
4761](https://github.com/apache/hop/pull/4761)
What resolver plugins or features did you think of? Let me know!
Cheers,
Matt
GitHub link: https://github.com/apache/hop/discussions/4763
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]