Article - CS226689

How can I get the "me" context for a ThingShape defined in a ThingWorx Extension?

Modified: 02-Mar-2021   


Applies To

  • ThingWorx Platform 6.6 N/A
  • ThingWorx Extension SDK 6.6

Description

  • How can I get the "me" context that is normally available in a JavaScript service when defining a ThingShape service in a ThingWorx Java Extension?
  • How can I get the name of the instantiated Thing for a ThingShape service defined in Java?
  • Thing.getName() returns an empty string when run off a ThingShape service that extends the Thing class.
This is a printer-friendly version of Article 226689 and may be out of date. For the latest version click CS226689