cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Get name of a service that called method from Script Functions

pStrobl
7-Bedrock

Get name of a service that called method from Script Functions

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

2 REPLIES 2
slangley
23-Emerald II
(To:pStrobl)

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

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!

Announcements


Top Tags