Share objects across multiple script operators
#1
There doesn't appear to be an easy way to create data structures that survive and are accessible across different script operators across the whole flow.

You can create static member variables for script nodes that at least survive and retain their values across a script operators evaluation - although I am not sure yet if they are safe between multiple evaluations of the same script operator?  (ie do you recreate/new the script operator C# class every time it is evaluated?).

Being able to root a custom context object at the global and flow level via the tyflow interfaces would be one way of doing this.  Another way could be some sort of global script operator that defines and provides an interface and object that is accessible from all other script operators.
  Reply


Messages In This Thread
Share objects across multiple script operators - by wbk - 07-18-2023, 04:43 AM

Forum Jump: