Just create a temp file with each instantiation of a NodeModel (e.g. in the constructor or via lazy initialization) and you should be safe. NodeModel instances are not shared among different nodes in a workflow.
In my node I create a temporary file and I wanted to use the nodeID in the filename to have one file for each existing node. So the execution of a second should not overwrite the file of the first one.
Just create a temp file with
Just create a temp file with each instantiation of a NodeModel (e.g. in the constructor or via lazy initialization) and you should be safe. NodeModel instances are not shared among different nodes in a workflow.
But I guess you knew that already.
Cheers,
Bernd
In my node I create a
In my node I create a temporary file and I wanted to use the nodeID in the filename to have one file for each existing node. So the execution of a second should not overwrite the file of the first one.
But thanks for your answer!
Sandra
Hi Sandra, Nope, that's not
Hi Sandra,
Nope, that's not possible. Your NodeModel does not have access to any of the framework classes. What would you use the NodeID for?
Thanks,
Bernd