# Passing a parameter file to a graph running from java

**URL:** <https://forum.cloverdx.com/t/passing-a-parameter-file-to-a-graph-running-from-java/911>\
**Category:** CloverDX Platform\
**Created:** [August 10, 2011, 12:00am UTC](https://forum.cloverdx.com/t/passing-a-parameter-file-to-a-graph-running-from-java/911 "2011-08-10T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpdi](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.cloverdx.com/tpdi/32/110_2.png) [@tpdi](https://forum.cloverdx.com/u/tpdi)\
**Post date:** [August 10, 2011, 12:00am UTC](https://forum.cloverdx.com/t/passing-a-parameter-file-to-a-graph-running-from-java/911/1 "2011-08-10T00:00:00Z")

</div>

I’m running some graphs from java.

How can I add or override the values in the graph’s parameters (workspace.prm or internal parameters)?

Is the answer to call GraphRuntimeContext.setAdditionalProperties()?

Thanks.

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [August 10, 2011, 2:51pm UTC](https://forum.cloverdx.com/t/passing-a-parameter-file-to-a-graph-running-from-java/911/2 "2011-08-10T14:51:48Z")

</div>

Hello,  
method _org.jetel.graph.runtime.GraphRuntimeContext.setAdditionalProperties(Properties)_ clears all parameters and sets the new ones, method _org.jetel.graph.runtime.GraphRuntimeContext.addAdditionalProperties(Properties)_ adds new parameters to the existing ones (if the name of a new parameter is the same as the existing one, it will be replaced by the new value).
