# About using several times the runGraph class

**URL:** <https://forum.cloverdx.com/t/about-using-several-times-the-rungraph-class/184>\
**Category:** CloverDX Platform\
**Created:** [July 16, 2007, 12:00am UTC](https://forum.cloverdx.com/t/about-using-several-times-the-rungraph-class/184 "2007-07-16T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 12:00am UTC](https://forum.cloverdx.com/t/about-using-several-times-the-rungraph-class/184/1 "2007-07-16T00:00:00Z")

</div>

Hi,

I would like to use several times the runGraph class.  
Indeed I would like to use this class with several metadata files in a loop in which I send the metadata file as a parameter to the graph.

The first problem is that if there’s an error you make a “System.exit(-1)” or a “System.exit(0)” if it is OK. So the program exits and do not continues with the next metadata file.

The second problem is that you load the plugins each time at the beginning of the main() procedure. Of course there’s an error when I try to load the plugins the second time.

To conclude I would say that it would be great if we could use the runGraph class in a loop or several times in a same java program.

I hope you understand me.

Thank you.

---

<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:** [December 17, 2009, 12:57pm UTC](https://forum.cloverdx.com/t/about-using-several-times-the-rungraph-class/184/2 "2009-12-17T12:57:44Z")

</div>

Hello,  
running graphs from java code is described on [Embedding clover](http://wiki.clovergui.net/doku.php?id=embedding%5Fclover) or you can use [RunGraph](http://wiki.clovergui.net/doku.php?id=components:others#run%5Fgraph) component for running the same graph more times with different parameters.
