I want to use a customized message box to display the exception message , but how does the customized widget catch the exception of the ThingWorx service ?
Can you provide details of the use case? What happens when the service runs successfully? What are some of the error messages you need to display? This may help us to provide a better example of how to meet your requirements.
The ThingWorx service can only set fix successful message which display in the mashup. I want do display a customized message because:
So I want to know if there's a general way to catch the result of the service, whatever it's successful or failed. Then I can display the result in a customized widget(message box).
can be achieved it in many ways,
This way, you don't have to worry about any bindings and service output conversions or any other expressions.
Hope this works for you.
Think you for your suggestions, but they're still not general I think.
You can make your design to a better informative system. Irrespective of service status, show the message such as if it successful set success message in your service, else set error message to the session.
In mashup, after each service execution event give it to your message box.
If you just want to show error message then set error message to the session in your service. In mashup you have to add validator whether to show message box or not.
If you feel your question has been answered, please mark the Accepted Solution for the benefit of others with the same question.
Thank you for your participation in our community!