Hi all,
I need to stop/prevent further processing of the following route parts of my composite route in the routescript.
Currently I raise an Exception preincommunication of route part 3 but as I just noticed Bots continues with route part 4 then.
I thought Bots would stop processing the whole route when an Exception is raised.
How can I
stop/prevent further processing of the following route parts?
What am I trying to do / Why do I need this?
I think I have a few more routescripts where this unexpected behaviour could cause the strange issues that happen from time to time that I could not yet figure out.
But in this specific case:
I have a PDF version of my invoices that should be sent out via SMTP in parallel to the EDIFACT via SFTP.
In route part 2 I send my EDIFACTs to a temp directory on disk.
Then in route part 3 I pass-through the EDIFACTs to the SFTP destination.
Finally in route part 4 I pass-through the PDFs to the SMTP destination.
In my routescript I use preincommunication for route part 3 where I rename the PDFs the same as the EDIFACT counterparts except the file extension and check a) if every EDI file has a PDF file and b) if every PDF file has a EDI file. If not, I move the problematic files to an error directory and raise an Exception.
The problem is that the PDFs are sent out anyhow in route part 4 then even though the EDIFACTs were not yet sent as there was an Exception preincommunication of route part 3.
So thats my problem currently.
I'm looking forward to your help.
Thanks & best regards
Alexander