Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: OrhanHello,
First of all thanks for taking the time to read this post.
Let's say I have a simple graph. I have a composite node, within that composite node is a static data node hooked up to an Output Delimited node.
I want to define composite level parameters that will evaluate to an output folder and an output filename. These would then be used in the Output Delimited node in the File box.
If I hard set the values, this works - for example, after declaring 2 parameters as string within the composite node, I might have something like:
Output folder: C:\testfolder
Output filename: {{^Output folder^}}\testfile.csv
Then in the Output Delimited node, in the File box I would put {{^Output filename^}}
Now let's say I want my output filename to contain a sequence of digits; the date and time of current execution. For example, if the date and time now is 29-12-2015 17:01:30, I'd like to first transform these values into a single long value, i.e. 29122015170130. I know this is achievable using Brainscript functions like timestamp. I then want to integrate this number into the filename that gets generated. So if I ran the graph at the date and time specified above, I would get an output filename of:
C:\testfolder\testfile29122015170130.csv
This method would ensure that each subsequent run of the graph would generate a unique filename.
Is this possible to do in Lavastorm? I have been playing around with parameter types, and I see there are some brainscript options like "brainscript", "brainscriptexpr", "brainscriptoutput". I haven't been able to find any help on what these types mean or what they actually do. My initial thought was that if I selected something like "brainscriptoutput", I might be able to define a function in the text box for the parameter which would evaluate and become the parameter value going forwards. For example, I might enter strcat("a","b") and then I was hoping that the parameter would be set to ab - but in fact the parameter is literally set to strcat("a","b").
Any input/advice is appreciated.