Gateway Tag Event Scripts

I’ve been doing some research, but I cannot find a solution.

We started using Gateway Tag Event Scripts and its working as expected, the current design requires to suscribe/add all tags under a folder (including subfolders), but every time we add a new tag, someone needs to go manually and add the tagpath in the corresponding script.

Is there a way to programmatically add tags to the list?

We have a script to find all the tags in the folder, but we cannot find a way to add them to the Gateway TAG change event definition.

Thanks,

Unfortunately, no. It might be possible if one dug around in the resource types in the Java SDK, but it probably wouldn't be simple.
However, if you truly need dynamic tag listeners, you could create jython implementations of the SDK TagListener class and manually subscribe them. Still not simple.

1 Like

Sounds like a good use case for UDTs with tag event scripts.

1 Like

I will take a look at them, to see if we can use this approach.

Thanks,