In regards to Flowscript nodes (FlowCanvas), you can use/override the OnGraphStarted or OnGraphStopped if you want to set/reset some values for the node. (also please make sure to call base method in case you override any such method).
Please let me know if using either of the two methods work for you.