Skip to main content
Dec 31, 2020 4:40 AM UTC
Solved

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.

AshrithaAnswer
Dec 31, 2020 7:16 AM UTC

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 

 

3 replies

Dec 31, 2020 6:19 AM UTC

Can anyone reply to my comment please?

AshrithaAnswer
Dec 31, 2020 7:16 AM UTC

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 

 

Jan 4, 2021 3:52 PM UTC

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