Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Can I use value from a context variable or a global variable in setHeader component?

Hi,

 

I am new to Talend. I am writing a route to encrypt plain file in a directory.

I am using CJavaDSLprocessor (.mashal(pgpSignAndEncrypt)  encrypt and sign the file in the directory.

Before cJavaDSLprocessor, does sign and encryption,  I will need to setHeader component to have all following header value set 

"CamelPGPDataFormatSignatureKeyRing"

"CamelPGPDataFormatKeyPassword"

"CamelPGPDataFormatEncryptionKeyRing"

"CamelPGPDataFormatKeyUserids"

"CamelPGPDataFormatNumberOfEncryptionKeys"

"CamelPGPDataFormatSignatureKeyUserid"

 

The values were retrieved from database dynamically in a sub-route ( direct from multicast, I could not set header in there since it is different message) .   I am thinking to set them in the globallMap or context variable,  and then set in cSetHeader component before sign and encrypt the file.  

 

Do anyone know how to do that? any suggestion?

 

Thanks!

Labels (3)
1 Reply
Anonymous
Not applicable
Author

Hello,

Sorry for delay.

We have redirected your issue to ESB experts and then come back to you as soon as we can.

Thanks for your time.

Best regards

Sabrina