I'm writing a Java extension and editing the metadata.xml, but I don't understand what the term ThingPackage stands for .
According to the XML structure , the ThingTemplate must refer to ThingPackage which defines the name of the classname, while ThingShape can define classname directly.
What's the relationship among ThingPackage, ThingTemplate ,ThingShape and Thing ?
<ThingPackage className="" description="" name=""/>
<ThingShape aspect.isEditableExtensionObject="false" className="" description="" name=""/>
So ThingPackage means Script handler ? it's hard to link it with the term "Package". Sorry I checked the post but still don't get it.
And ThingPackage is not visible/necessary when creating a ThingTemplate in ThingWorx composer, why the configuration becomes visible/necessary when creating ThingTemplate from extension ?
I found some more information around ThingPackage in ThingWorx Extension Development Guide,
Each Java-based thing template must have two entries in the metadata.xml
• A <ThingPackage> element under the
<Entities><ThingPackages> element, which specifies the class name
of the thing template
• A <ThingTemplate> element under the
<Entities><ThingTemplates> element, which refers to the name of
the thing package.
The guide just tell me to follow the guide but it doesn't tell me what the term "ThingPackage" stands for . It's fine to follow it but I still has the question and cannot understand it .