# Default in workflow and subworkflow

**URL:** <https://cwl.discourse.group/t/default-in-workflow-and-subworkflow/30>\
**Category:** CWL Questions\
**Created:** [September 20, 2019, 6:28pm UTC](https://cwl.discourse.group/t/default-in-workflow-and-subworkflow/30 "2019-09-20T18:28:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ionox0](https://yyz2.discourse-cdn.com/free1/user_avatar/cwl.discourse.group/ionox0/32/18_2.png) [@ionox0](https://cwl.discourse.group/u/ionox0)\
**Post date:** [September 20, 2019, 6:28pm UTC](https://cwl.discourse.group/t/default-in-workflow-and-subworkflow/30/1 "2019-09-20T18:28:41Z")

</div>

Is there any specification for which default will be used if there are defaults for both a workflow and subworkflow?

Thanks!

---

<div class="post-metadata">

**Author:** ![mrc](https://yyz2.discourse-cdn.com/free1/user_avatar/cwl.discourse.group/mrc/32/3_2.png) [@mrc](https://cwl.discourse.group/u/mrc)\
**Post date:** [September 21, 2019, 9:39am UTC](https://cwl.discourse.group/t/default-in-workflow-and-subworkflow/30/2 "2019-09-21T09:39:30Z")

</div>

The default from the outer `Workflow` will be used.

The `default` at the outer layer (either `WorkflowStep` or the `inputs` at the `Workflow` level) will be the input provided to the `Process` (`CommandLineTool`, `ExpressionTool`, or sub-`Workflow`) of a `WorkflowStep`. This value is indistinguishable from any other value and thus the `default` will be ignored.

Does that make sense?
