Mirth Community

Mirth Community (http://www.mirthcorp.com/community/forums/index.php)
-   Support (http://www.mirthcorp.com/community/forums/forumdisplay.php?f=6)
-   -   Raising an error without an uncaught exception (http://www.mirthcorp.com/community/forums/showthread.php?t=216600)

tthompso 10-24-2016 11:49 AM

Raising an error without an uncaught exception
I'm aware it is possible to mark the instance of a message as an error by throwing an uncaught error in the JavaScript destination transformer.

In a JavaScript Transformer is it possible to mark the message as "error" without throwing an uncaught exception?

something like message.status('Error')

narupley 10-24-2016 02:10 PM

Not in the transformer, but in the response transformer you can override the status:


responseStatus = ERROR;
If you want the response transformer to execute even when there's no response data, you can set your response data types to Raw.

All times are GMT -8. The time now is 08:48 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation