|
#1
|
|||
|
|||
|
Hello all,
Anyone aware of a way to do this: In a Source Transformer step, I want to examine the contents of ORC.8, and if it is null, then force the message into an ERROR state, and not send. Either that, or send it into another channel to handle errors/send emails, etc.... Thanks, J |
|
#2
|
|||
|
|||
|
The easiest way is just to throw an exception from a filter/transformer:
Code:
throw('Error message here.');
|
|
#3
|
|||
|
|||
|
Hello,
I have the same need. I opened a suggestion of improvement: [#MIRTH-2063] Choose the status of the message. |
|
#4
|
|||
|
|||
|
Quote:
Quote:
|
|
#5
|
|||
|
|||
|
Quote:
Quote:
Quote:
Last edited by DBE; 03-16-2012 at 08:15 AM. |
|
#6
|
|||
|
|||
|
In the LLP Sender, there's actually not a lot of freedom to dynamically choose the response status. You can choose to "process" the HL7 ACK, but really all that is doing is looking at the MSA.1; if it's AA, then the status is SENT, otherwise it's ERROR.
It sounds like we just have a difference in semantic opinions. Different developers and systems will have different definitions of what a truly "sent" message should be. That said, you can take matters into your own hands by decrementing the sent statistic for the channel and even updating the actual status of the message in the database from SENT to something else, in the postprocessor script. |
|
#7
|
|||
|
|||
|
Thank you for your point of view
.I already tried (and succeeded) to change the status and to decrement the counter but it makes the channels too complicated. |
|
#8
|
|||
|
|||
|
No problem! That rings a bell actually... I think I helped someone else out with that before. I'll copy it here for convenience:
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|