Implementation specific context #932
-
IdeaRuntime expressions already specify a list of Arguments that are available. These are all defined by:
If I were to take my workflow and move it from one implementation to another I would expect that all these are exactly the same since they are implementation agnostic. I propose to add a new argument called
Why is this neededI have a case where I want workflow authors to be able to access their tenantId in every workflow as well as the fact if this is a test run. using a specified expression argument like AlternativesNon standard argumentNothing is stopping implementors to expose a non standard argument like SecretsAll these things could be exposed using secrets. However:
extending
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
Interested to hear your thoughts @cdavernas @JBBianchi @fjtirado @ricardozanini |
Beta Was this translation helpful? Give feedback.
-
@matthias-pichler-warrify |
Beta Was this translation helpful? Give feedback.
-
Or as intermediate proposal, add custom property to context (and put everything custom there) |
Beta Was this translation helpful? Give feedback.
-
So since we have an agreement (+1 from my side too), can we have a summary, mark the answer as the correct one, and create an issue to move forward @matthias-pichler-warrify? PS: I can do it, but since it's your requirement, I think it's fair if you do it. |
Beta Was this translation helpful? Give feedback.
-
Summary: We will introduce a dedicated |
Beta Was this translation helpful? Give feedback.
Summary:
We will introduce a dedicated
$runtime
argument that will contain a set of default/standardized properties about the implementation (e.g.name
&version
) as well as a dedicated field (e.g.$runtime.metadata
) to hold non-standard implementation specific values. Usage of this property will make it immediately visible that a given workflow definition might not be runtime agnostic.Issue: #950
PR: #952