Getting notify/subscribing to ThingTemplate/ThingShape/Thing save at design time
I want to create a data table which will have ThingTemplateName and ThingTemplatePropertyName columns as Primary key with extra few columns like: Score, Scale, Rate etc.
I would like to provide extra aspects to each property in ThingTemplate since we are limited to built-in aspects/characteristics of a property (like: name, description, baseType, pushType etc).
I will have a mashup where an admin can add extra metadata information about properties and I need to syncronize this DataTable with changes to ThingTemplates's properties.
I will initially start creating a ThingTemplate with x number of properties. I will then press Save. I want a service to intercept that save action and call a service that will fill out DataTable with ThingTemplate name and a property name. So I will have x number of rows in DataTable like:
ThingTemplateName, ThingTemplatePropertyName, Score, Scale, Rate etc.
----------------------------|----------------------------------------|----------|-------|-------------------
MyFirstTT |Prop1
MyFirstTT |Prop2
MyFirstTT |Prop3
....
MyFirstTT |PropX
I want to subscribe to "first" and any subsequent save actions (Pressing Save after some changes are done like adding a new property, changing its type, removing a property etc) at design time so I can run a service that will syncronize ThingTemplate name and ThingTemplate property names with ThingTemplateName and ThingTemplatePropertyName columns of DataTable..
Later I want to combine the template's properties with these custom ones and provide this metadata for the agent to dynamically initialize itself.
Score, Scale, Rate will be used in agent VirtualThing side logic when updating Remote Properties.
Thanks,
Rad

