running number of a flow
How do I create a running number of a data flow (similar to auto increment of database)?
Every time the data flow run, the number should be increased by a constant (i.e. 1), and will be emitted as one of the output columns.
Thanks.
-
There are probably some more elegant ways to achieve this but... the attached .lna file contains a node that stores a persistent execution count in the specified file. If the file does not exist it is created and the execution count starts at 1.
Obviously, you must use a unique file for each data flow that would use a persistent execution counter.
Regards,
Adrian
Attached files
Please sign in to leave a comment.
Comments
4 comments