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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. 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!

Top Tags