Skip to main content
1-Visitor
July 17, 2015
Solved

Creating Groups in ThingWorx using Java SDK

  • July 17, 2015
  • 2 replies
  • 1508 views

Hey IoT Community,

Currently I'm trying to use the Java SDK to create a group inside the ThingWorx platform. My attempts have yet to be successful. I was doing some reading in the documentation and it mentions the use of the class VirtualThing. Is it possible to create groups using VirtualThing? or is there another way that groups can be created? any information on this would be greatly appreciated

Use Case:

- Trying to create a new group in ThingWorx when my custom authenticator is being accessed

Thanks!

    Best answer by paic

    Once the EMS is successfully connected, depending on the permission settings, all of the REST API is accessible, so you can use services in the model to create the group.

    BEST PRACTICE!!!: Create a Service ahead of time that the EMS is allowed to invoke, which will do what is required. Do NOT allow your EMS to invoke actual Entity Services!!!

    2 replies

    paic1-VisitorAnswer
    1-Visitor
    July 20, 2015

    Once the EMS is successfully connected, depending on the permission settings, all of the REST API is accessible, so you can use services in the model to create the group.

    BEST PRACTICE!!!: Create a Service ahead of time that the EMS is allowed to invoke, which will do what is required. Do NOT allow your EMS to invoke actual Entity Services!!!

    marineau1-VisitorAuthor
    1-Visitor
    July 20, 2015

    Thank you for your input this was quite helpful!