You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing a workflow with a step has many options that should be exposed as workflow inputs, it is currently necessary to copy all the parameters to the outer workflow. This is verbose and creates a maintenance problem. I propose a requirement type that instructs the implementation to lift unconnected input and output parameters to the parent workflow.
Perhaps the solution is to support cross-referencing to other parameters? In this example, the workflow input would explicitly take the type and default value from the step tool (using draft-3 scoped identifiers):
The simpler method is that all step inputs not wired to a workflow input or a step output are promoted and wired to a same-named workflow input unless there is a name conflict.
In the case of a name conflict then the writer can manually add the workflow input or use expose: unique_name as above.
Activity
tetron commentedon Sep 17, 2015
Perhaps the solution is to support cross-referencing to other parameters? In this example, the workflow input would explicitly take the type and default value from the step tool (using draft-3 scoped identifiers):
tetron commentedon Sep 18, 2015
This also relates to #124, permitting types to reference other type definitions references also allows for more flexible declaration than SchemaDefs.
mr-c commentedon Oct 11, 2016
The simpler method is that all step inputs not wired to a workflow input or a step output are promoted and wired to a same-named workflow input unless there is a name conflict.
In the case of a name conflict then the writer can manually add the workflow input or use
expose: unique_nameas above.Merge pull request #86 from common-workflow-language/mypy-470
Squashed 'v1.1.0-dev1/salad/' changes from 98a5bea..27c20e8