DynamoAutomation - Pass Data from Master to Slave Graph

@Konrad_K_Sobon - Is there a way to pass information from a master to graph to a slave graph? I’d like to inform the slaves graphs what directory the master graph is working on so I can create nested directories in the slave graph. Right now I can get the directory of the file being processed by the slave, but it places it at the top level of my output directory. I suppose I could export the directory to a TXT/CSV and query that from the slave, but that sounds slow.

Can you elaborate on this a bit? I have no ideas for an answer but would likw to learn about this process and how it can help speed things along.

I need to run a maintenance script across my entire library.

The graph I’m using currently does a saveas to a new location and I move/overwrite to the server when complete. The original graph that I pulled from Konrad’s GitHub puts all the files into a single folder regardless of where they came from.

I’ve gotten what he calls the slave graph (the one doing the actual work - no political commentary, I’m sure) to extract the current directory of the file being processed but without additional user intervention (which I can totally manage) each time I setup the automation the slave graph doesn’t know anything about how the directory is organized or nested.

I thought that if I could tell the master graph (that essentially creates a series of journal files) where the top of the directory stack was located, and pass that down to the slave graphs in an automated manner, I could, in the slave, compare the processed file location and this top level directory in order to extract how the directory is nested. Then I could create/verify directories in the output folder in which to place the altered files.

Clear as muddy water? :wink:

Sweet workflow… I may have to play around with it later, though not something I have to work with often (ever?) in my current role, I’m sure others I work with would be jealous.

You already answered your question in your original post. You’ll need to write the data into an external source like CSV, Excel or a database. This is currently the only means of communication between MG and SG.

1 Like

Thought so. Thanks!