Skip to main content
1-Visitor
March 31, 2021
Question

Get name of a service that called method from Script Functions

  • March 31, 2021
  • 1 reply
  • 1296 views

Hello there,

 

I'm working on ThingWorx Extension and need know name of service that called method from Script Function Library. For example. I have service with name getServiceName() where I call method from Script Function Library that gets name of service and made it uppercase. Output should be GETSERVICENAME. It is possible with Thingworx SDK?

Thank you

1 reply

Community Manager
April 6, 2021

Hi @pStrobl 

 

Can you provide more information around your use case?  We're not really understanding why you would need to call the service name twice.

 

Regards.

 

--Sharon

pStrobl1-VisitorAuthor
1-Visitor
April 26, 2021

Of course I can, I'm sorry for confusing question. I have service in Thingworx (writeAndBackupData) and I need to call method in Java that will log anything I need. What do I need to know if is possible call that Java method from Thingworx and inside this Java method get service name (writeAndBackupData).


Thank you!