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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

How to get Service Fail information in ThingWorx 9.0?

RP_9407685
4-Participant

How to get Service Fail information in ThingWorx 9.0?

Hi,

We can link Service successful function to any other service but How to link the service Failure function to another service?

Please support ASAP.

1 ACCEPTED SOLUTION

Accepted Solutions
Ashritha
13-Aquamarine
(To:RP_9407685)

Hi @RP_9407685 ,

Use the try catch block in the service. Handle the negative scenario in catch block. You can use one infotable column to indicate Failure. Use  validator function  to check the failure or success. Trigger this validator on service invoke complete event. Validator can be used to trigger success or failure event.Link 

 

View solution in original post

3 REPLIES 3
RP_9407685
4-Participant
(To:RP_9407685)

Can anyone reply to my comment please?

Ashritha
13-Aquamarine
(To:RP_9407685)

Hi @RP_9407685 ,

Use the try catch block in the service. Handle the negative scenario in catch block. You can use one infotable column to indicate Failure. Use  validator function  to check the failure or success. Trigger this validator on service invoke complete event. Validator can be used to trigger success or failure event.Link 

 

slangley
23-Emerald II
(To:RP_9407685)

Hi @RP_9407685.

 

If you feel your question has been answered, please mark the previous response as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Top Tags