Information on ThingStart Event and constructor and destructor for a Thing
Hello,
I have a requirement to perform some action at startup (like filling some data tables or running some services associated with Thingworx entities), for that I am using a subscription to ThingStart Event. But I would like to have some more insights on how and when does ThingStart event occurs/triggers. I read in some documentation, that ThingStart event is fired when the Thing is created, so does that mean it occurs only once in the lifetime of a Thing? I tried to look for some detailed information for ThingStart event, but was unable to find it.
Another part of my question is what is the provision to have constructor and destructor feature for Thingworx entities, say for example, I would like to associate my Things with a Value Stream, when it is created (so I could do - Create a new Thing, Create a new Value Stream and assign the ValueStream to a that thing).
Similarly while destroying a Thing I would like to de-assign the Value stream, delete the thing and delete the value stream.
So how can I achieve this kind of behaviour in Thingworx?
Thanks in advance
Regards
Aditya Mittal

