web stats
How to use the internal Flying saucer classes ? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 04-24-2015, 03:35 AM
lionelroux lionelroux is offline
OBX.2 Kenobi
 
Join Date: Apr 2013
Posts: 82
lionelroux is on a distinguished road
Exclamation How to use the internal Flying saucer classes ?

Hello,

I have a channel which queries a database in the source connector.
I can generate a PDf in the destination connector using the Document Writer and Flying saucer.

But I would like to send a message containing a base 64 version of this document to another channel (this one is responsible for sending documents with metadata to an Alfresco XDS serveur).

Should I use the internal flying sauccer classes in a transformer step or would it be better to have another strategy ?

Edit : what about using the response connector and a router ?

thx in advance

Last edited by lionelroux; 04-24-2015 at 04:52 AM.
Reply With Quote
  #2  
Old 04-24-2015, 09:43 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,126
narupley is on a distinguished road
Default

This is actually something we added in 3.2! The document writer now has the ability to write the PDF/RTF to an attachment instead of to a file. And the response the destination returns is just the attachment replacement token. So in a subsequent destination you can include the response from the Document Writer, and the PDF will automatically be attached to the outbound message.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #3  
Old 04-26-2015, 08:16 AM
lionelroux lionelroux is offline
OBX.2 Kenobi
 
Join Date: Apr 2013
Posts: 82
lionelroux is on a distinguished road
Default

Nice ! I used it sucessfully.

Finally, I process the metadata of my PDF attachment in the response connector. It does the job.

In the response connector, I just used a router to send the XML metadata and the base64 from my attchment in an XML enveloppe.

Thx once again.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 05:50 AM.


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