# Access envDef of Workflow in CWLtool

**URL:** <https://cwl.discourse.group/t/access-envdef-of-workflow-in-cwltool/572>\
**Category:** CWL Questions\
**Created:** [March 2, 2022, 11:15pm UTC](https://cwl.discourse.group/t/access-envdef-of-workflow-in-cwltool/572 "2022-03-02T23:15:12Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![HrishiDhondge](https://yyz2.discourse-cdn.com/free1/user_avatar/cwl.discourse.group/hrishidhondge/32/276_2.png) [@HrishiDhondge](https://cwl.discourse.group/u/HrishiDhondge)\
**Post date:** [March 11, 2022, 7:11am UTC](https://cwl.discourse.group/t/access-envdef-of-workflow-in-cwltool/572/13 "2022-03-11T07:11:42Z")

</div>

Thank you @mrc  
I am almost in the final stage of the workflow, so I’ll try to finish it and hopefully, I will be able to share the code and everything to build a test case for loops. 🙂

How may I implement the [default value](https://cwl.discourse.group/t/constructing-a-default-value-for-a-tool-input/161/4) from this example for File? I am trying to access the file from it’s location and read it inside the tool?

---

_[View the full topic](https://cwl.discourse.group/t/access-envdef-of-workflow-in-cwltool/572)._
