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
Copy file name to clipboardExpand all lines: _episodes/06-params.md
+51Lines changed: 51 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -80,3 +80,54 @@ Note that because `File` parameters are objects, to get the path to an
80
80
input file you must reference the path field on a file object; to
81
81
reference the path to the tar file in the above example you would write
82
82
`$(inputs.tarfile.path)`.
83
+
84
+
> ## Where are parameter references allowed?
85
+
> You can only use parameter references in certain fields. These are:
86
+
>
87
+
> - From [`CommandLineTool`](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandLineTool)
88
+
> -`arguments`
89
+
> -`valueFrom`
90
+
> -`stdin`
91
+
> -`stdout`
92
+
> -`stderr`
93
+
> - From [CommandInputParameter](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandInputParameter)
94
+
> -`format`
95
+
> -`secondaryFiles`
96
+
> - From [`inputBinding`](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandLineBinding)
97
+
> -`valueFrom`
98
+
> - From [CommandOutputParamater](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandOutputParameter)
99
+
> -`format`
100
+
> -`secondaryFiles`
101
+
> - From [CommandOutputBinding](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandOutputBinding)
102
+
> -`glob`
103
+
> -`outputEval`
104
+
> - From `Workflow`
105
+
> - From [InputParameter](http://www.commonwl.org/v1.0/Workflow.html#InputParameter) and [WorkflowOutputParameter](http://www.commonwl.org/v1.0/Workflow.html#WorkflowOutputParameter)
106
+
> -`format`
107
+
> -`secondaryFiles`
108
+
> - From `steps`
109
+
> - From [WorkflowStepInput](http://www.commonwl.org/v1.0/Workflow.html#WorkflowStepInput)
110
+
> -`valueFrom`
111
+
> - From [ExpressionTool](https://www.commonwl.org/v1.0/Workflow.html#ExpressionTool)
112
+
> -`expression`
113
+
> - From [InputParameter](http://www.commonwl.org/v1.0/Workflow.html#InputParameter) and [ExpressionToolOutputParameter](http://www.commonwl.org/v1.0/Workflow.html#ExpressionToolOutputParameter)
114
+
> -`format`
115
+
> -`secondaryFiles`
116
+
> - From [`ResourceRequirement`](http://www.commonwl.org/v1.0/CommandLineTool.html#ResourceRequirement)
117
+
> -`coresMin`
118
+
> -`coresMax`
119
+
> -`ramMin`
120
+
> -`ramMax`
121
+
> -`tmpdirMin`
122
+
> -`tmpdirMax`
123
+
> -`outdirMin`
124
+
> -`outdirMax`
125
+
> - From [`InitialWorkDirRequirement`](http://www.commonwl.org/v1.0/CommandLineTool.html#InitialWorkDirRequirement)
126
+
> -`listing`
127
+
> - in [Dirent](http://www.commonwl.org/v1.0/CommandLineTool.html#Dirent)
128
+
> -`entry`
129
+
> -`entryname`
130
+
> - From `EnvVarRequirement`
131
+
> - From [EnvironmentDef](http://www.commonwl.org/v1.0/CommandLineTool.html#EnvironmentDef)
-`format` (in a [CommandInputParameter](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandInputParameter), [CommandOutputParamater](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandOutputParameter), [WorkflowOutputParameter](http://www.commonwl.org/v1.0/Workflow.html#WorkflowOutputParameter), or [ExpressionToolOutputParameter](http://www.commonwl.org/v1.0/Workflow.html#ExpressionToolOutputParameter))
-`secondaryFiles` (in a [CommandInputParameter](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandInputParameter), [CommandOutputParamater](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandOutputParameter), [WorkflowOutputParameter](http://www.commonwl.org/v1.0/Workflow.html#WorkflowOutputParameter), or [ExpressionToolOutputParameter](http://www.commonwl.org/v1.0/Workflow.html#ExpressionToolOutputParameter))
-`valueFrom` (in a [CommandLineBinding](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandLineBinding), or [WorkflowStepInput](http://www.commonwl.org/v1.0/Workflow.html#WorkflowStepInput))
89
+
> ## Where are parameter references allowed?
90
+
> Just like [parameter references]({{ page.root }}{% link _episodes/06-params.md %}), you can use JavaScript Expressions
91
+
> only in certain fields. These are:
92
+
>
93
+
> - From [`CommandLineTool`](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandLineTool)
94
+
> -`arguments`
95
+
> -`valueFrom`
96
+
> -`stdin`
97
+
> -`stdout`
98
+
> -`stderr`
99
+
> - From [CommandInputParameter](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandInputParameter)
100
+
> -`format`
101
+
> -`secondaryFiles`
102
+
> - From [`inputBinding`](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandLineBinding)
103
+
> -`valueFrom`
104
+
> - From [CommandOutputParamater](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandOutputParameter)
105
+
> -`format`
106
+
> -`secondaryFiles`
107
+
> - From [CommandOutputBinding](http://www.commonwl.org/v1.0/CommandLineTool.html#CommandOutputBinding)
108
+
> -`glob`
109
+
> -`outputEval`
110
+
> - From `Workflow`
111
+
> - From [InputParameter](http://www.commonwl.org/v1.0/Workflow.html#InputParameter) and [WorkflowOutputParameter](http://www.commonwl.org/v1.0/Workflow.html#WorkflowOutputParameter)
112
+
> -`format`
113
+
> -`secondaryFiles`
114
+
> - From `steps`
115
+
> - From [WorkflowStepInput](http://www.commonwl.org/v1.0/Workflow.html#WorkflowStepInput)
116
+
> -`valueFrom`
117
+
> - From [ExpressionTool](https://www.commonwl.org/v1.0/Workflow.html#ExpressionTool)
118
+
> -`expression`
119
+
> - From [InputParameter](http://www.commonwl.org/v1.0/Workflow.html#InputParameter) and [ExpressionToolOutputParameter](http://www.commonwl.org/v1.0/Workflow.html#ExpressionToolOutputParameter)
120
+
> -`format`
121
+
> -`secondaryFiles`
122
+
> - From [`ResourceRequirement`](http://www.commonwl.org/v1.0/CommandLineTool.html#ResourceRequirement)
123
+
> -`coresMin`
124
+
> -`coresMax`
125
+
> -`ramMin`
126
+
> -`ramMax`
127
+
> -`tmpdirMin`
128
+
> -`tmpdirMax`
129
+
> -`outdirMin`
130
+
> -`outdirMax`
131
+
> - From [`InitialWorkDirRequirement`](http://www.commonwl.org/v1.0/CommandLineTool.html#InitialWorkDirRequirement)
132
+
> -`listing`
133
+
> - in [Dirent](http://www.commonwl.org/v1.0/CommandLineTool.html#Dirent)
134
+
> -`entry`
135
+
> -`entryname`
136
+
> - From `EnvVarRequirement`
137
+
> - From [EnvironmentDef](http://www.commonwl.org/v1.0/CommandLineTool.html#EnvironmentDef)
0 commit comments