About using several times the runGraph class

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.

Hello,
running graphs from java code is described on Embedding clover or you can use RunGraph component for running the same graph more times with different parameters.