Distinguishing Internal
vs Inputable
Variables in WfSpec
#1423
GhostArrays
started this conversation in
Ideas
Replies: 1 comment
-
Internal means not part of the public API of the
As you observed, it doesn't have any impact on whether you can or cannot set the variable when running a You can just do something like this:
That guards it from being overriden. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’m proposing a clearer distinction between input variables and internal variables.
Problem:
Currently, all variables can be set at the start of a workflow execution, which creates ambiguity and potential misuse. In many cases, we want certain variables to be used only by the internal logic of the workflow — they should not be editable by the user at the time of execution.
Proposal:
Introduce a mechanism to explicitly mark variables as either:
• Internal (default): Variables meant to be used only within the workflow logic and not exposed to the user when starting a workflow.
• Inputable: Variables that can be set by the user at the time of workflow execution.
Example syntax:
This makes the intent of each variable explicit and avoids accidental misuse. It also helps clarify the API and provides a better developer experience.
Would love to hear thoughts and feedback on this direction.
Beta Was this translation helpful? Give feedback.
All reactions