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

Callback option in ThingWorx

Michail
9-Granite

Callback option in ThingWorx

Good day, I'm using the old and deprecated ThingWorx version 8.3. 

 

I've written a service part of which is a call to another service which does the rest api call.

 

Is there a way to get a response from the rest api call first and only then proceed with the subsequent portion of the code?

 

Sometimes, the service completes and the rest api had not returned its contents.

1 REPLY 1
PaiChung
22-Sapphire I
(To:Michail)

Probably best to split this up into two parts, after the api call returns the information, you can set a property which triggers a datachange subscription to then finish the second part of the service.

This may not fit your use case requirements.

Announcements


Top Tags