Extension SDK : Create a Thread and access other entity from it.
Feb 12, 2016
01:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Feb 12, 2016
01:36 AM
Extension SDK : Create a Thread and access other entity from it.
Hi,
I'm developing a Thingworx extension package using the extension SDK,
And I got an exception sort of 'not authorized', 'no permission' related with the SecurityContext in the SDK
when I created a thread and tried to write properties or get entity using it's name from the thread. (not the main thread of Extension).
To access the thingworx entity from the user created thread is not allowed? Or is there any way to get a permission to access?
Labels:
- Labels:
-
Extensions
- Tags:
- extension sdk
1 REPLY 1
Feb 15, 2016
10:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Feb 15, 2016
10:29 AM
As I mentioned in your other post, security privileges are tracked using ThreadLocal storage in the ThreadLocalContext class. If you create a new thread, you will need to set up the proper security context using this class, otherwise Thingworx will not allow you to access any entities.
