# Use alias to avoid having duplicate run IDs?

**URL:** <https://cwl.discourse.group/t/use-alias-to-avoid-having-duplicate-run-ids/603>\
**Category:** CWL Questions\
**Created:** [May 19, 2022, 2:12pm UTC](https://cwl.discourse.group/t/use-alias-to-avoid-having-duplicate-run-ids/603 "2022-05-19T14:12:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![teetee1](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@teetee1](https://cwl.discourse.group/u/teetee1)\
**Post date:** [May 19, 2022, 2:12pm UTC](https://cwl.discourse.group/t/use-alias-to-avoid-having-duplicate-run-ids/603/1 "2022-05-19T14:12:26Z")

</div>

CWL rookie here. I have checked the specification document before posting.  
Scenario: Among several processes used by the pipeline, there are duplicate CommandLineTool objects (same object / process with different inputs and command arguments) which works fine with cwltool. The cwljava compiler we use to convert the pipeline rejected the cwl.json because of those duplicate run ids:

```auto
[error] Error translating wf.cwl.json to IR
java.lang.Exception: two different processes with the same name TOOL_NAME

```

Is this something I should report to the cwljava github repo?

During my search for the workaround, I remembered in WDL, developers can use `import xxx.wdl as yyy` to make an alias of a task / workflows to avoid having the same object id and causes confusion. Is there any similar alias features in CWL?

---

<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:** [October 18, 2022, 7:59am UTC](https://cwl.discourse.group/t/use-alias-to-avoid-having-duplicate-run-ids/603/2 "2022-10-18T07:59:24Z")

</div>

Can you share a link to the " cwljava compiler" ? I’m not familiar with that.
