File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -203,11 +203,14 @@ $graph:
203
203
If `valueFrom` is an expression, evaluate the expression to yield the
204
204
actual value to use to build the command line and apply the binding
205
205
rules above. If the inputBinding is associated with an input
206
- parameter, the value of `self` in the expression will be the value of the
207
- input parameter.
206
+ parameter, the value of `self` in the expression will be the value of
207
+ the input parameter. Input parameter defaults (as specified by the
208
+ `InputParameter.default` field) must be applied before evaluating the
209
+ expression.
208
210
209
211
When a binding is part of the `CommandLineTool.arguments` field,
210
212
the `valueFrom` field is required.
213
+
211
214
- name : shellQuote
212
215
type : boolean?
213
216
doc : |
Original file line number Diff line number Diff line change @@ -569,7 +569,8 @@ $graph:
569
569
doc : |
570
570
The default value to use for this parameter if the parameter is missing
571
571
from the input object, or if the value of the parameter in the input
572
- object is `null`.
572
+ object is `null`. Default values are applied before evaluating expressions
573
+ (e.g. dependent `valueFrom` fields).
573
574
574
575
- name : type
575
576
type :
Original file line number Diff line number Diff line change @@ -261,7 +261,8 @@ $graph:
261
261
type : ["null", Any]
262
262
doc : |
263
263
The default value for this parameter to use if either there is no
264
- `source` field, or the value produced by the `source` is `null`.
264
+ `source` field, or the value produced by the `source` is `null`. The
265
+ default must be applied prior to scattering or evaluating `valueFrom`.
265
266
jsonldPredicate :
266
267
_id : " cwl:default"
267
268
noLinkCheck : true
@@ -287,10 +288,10 @@ $graph:
287
288
288
289
The value of `inputs` in the parameter reference or expression must be
289
290
the input object to the workflow step after assigning the `source`
290
- values and then scattering. The order of evaluating `valueFrom` among
291
- step input parameters is undefined and the result of evaluating
292
- `valueFrom` on a parameter must not be visible to evaluation of
293
- `valueFrom` on other parameters.
291
+ values, applying `default`, and then scattering. The order of
292
+ evaluating `valueFrom` among step input parameters is undefined and the
293
+ result of evaluating `valueFrom` on a parameter must not be visible to
294
+ evaluation of `valueFrom` on other parameters.
294
295
295
296
296
297
- type : record
You can’t perform that action at this time.
0 commit comments