You could check this example out. Please note by default the Temp folder will be deleted after reset. You could also create a permanent folder or de-select the delete option.
Hi. Oops, @mlauber71 was too fast for me Oh well, here’s another (perhaps more specific to your situation) answer. Place your Java Edit Variable node before the Create Temp Dir node.
The Java node should create a variable (perhaps named “timestampFilename” with the value equal to the desired file name (e.g. “12162019.csv”). Next configure the Create Temp Dir node with an Additional Path Variable. Give it a name (e.g. “timestampfile” and a value that will be controlled by a workflow variable (the variable created by the Java Edit Variable node in the prev. step). This node will create a new variable with the full path name (temp dir path plus your timestamp file name). (That’s the critical part).
Finally use the timestampfile workflow variable created in the prev. step to parameterize the CSV Writer.