# What's the role of "resourceName" in DeploymentBuilder.addInputStream?

**URL:** <https://forum.flowable.org/t/whats-the-role-of-resourcename-in-deploymentbuilder-addinputstream/3758>\
**Category:** Flowable Engine\
**Created:** [April 17, 2019, 10:53am UTC](https://forum.flowable.org/t/whats-the-role-of-resourcename-in-deploymentbuilder-addinputstream/3758 "2019-04-17T10:53:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![infiniteloop](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/infiniteloop/32/1168_2.png) [@infiniteloop](https://forum.flowable.org/u/infiniteloop)\
**Post date:** [April 17, 2019, 10:53am UTC](https://forum.flowable.org/t/whats-the-role-of-resourcename-in-deploymentbuilder-addinputstream/3758/1 "2019-04-17T10:53:47Z")

</div>

Working with DeploymentBuilder I came across a doubt that I couldn’t figure out. When calling the method `addInputStream` of DeploymentBuilder interface, the method wants two parameters: one is the InputStream, and the other is `String resourceName`. What is this resource name and how it is used?  
In my case, the inputstream I’m passing is built this way:

`InputStream is = new ByteArrayInputStream(file.getBytes(Charset.forName("UTF-8")));`

where `file` is a String representation of the xml I want to deploy. What should be set as resourceName? I only have a String in this case. I’ve tried passing a random name and the deploy is working correctly, so I don’t know what this resource name is used for. What should be passed? How does the DeploymentBuilder use this information to deploy? And above all, is it fundamental?

---

<div class="post-metadata">

**Author:** ![carbon\_60](https://avatars.discourse-cdn.com/v4/letter/c/ecae2f/32.png) [@carbon\_60](https://forum.flowable.org/u/carbon_60)\
**Post date:** [June 16, 2023, 2:05pm UTC](https://forum.flowable.org/t/whats-the-role-of-resourcename-in-deploymentbuilder-addinputstream/3758/2 "2023-06-16T14:05:07Z")

</div>

I know this is an old post, but I did not see any response. Yet, I found the answer from another post:

> [@Deploying process as InputStream doesnt deploy correctly as bpmn resource file](https://forum.flowable.org/t/deploying-process-as-inputstream-doesnt-deploy-correctly-as-bpmn-resource-file/1124/2):
>
> think i spotted it eventually, though i saw no errors it wasnt correctly naming the namespace refs - so looked at manual file off web, and my generated file and i hadnt quite typed the names correct for default namepsave and the DI didnt resolve, after some digging i corrected and i now generate this - which appears to parse and reslove names. now when i send the inputStream to the method and a name string the artifacts appear to deploy. so i think i have the boilerplating right - now go fin…
