Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Passing Header values to a SubJob in a route

I am trying to figure out the best way to pass header values from a Job to a SubJob within a route.
Here is how my current route looks (Screenshot attached - Hopefully):
Main Job:
Poll for a content file -->
Set header values for fileName, fileSize, DBConnection, etc -->
Call a stored proc to insert the file -->
Store the result as a header value to use later (result is a UID) -->
Move the file to a different directory -->
Create the body of my JMS message which is just the location of the file to Checksum -->
Call a JMS Queue to do a MD5Checksum on the file.
SubJob:
Receive JMS Message with File Location and Name -->
Checksum the file -->
Set the checksum result as a header value -->
Call a stored procedure to add the checksum to the file record in the DB
When I call the subjob I lose all of the Header Values that I set in the main job. I could change my JMS message to contain all of the data I need, but I would like to pass all the header values in the JMS message instead. Is there a way to do this?
0 Replies