on ‎2017 Oct 11 9:46 PM
I know how to build a Java map (done quite a few). I have a new requirement that I can't quite figure out...
The java map will handle the incoming data differently based on what File adapter picked up the file. I do not want to rely on File name or File Directory to determine this information as those can be changed (which of course would cause issues).
I would like to be able to "know" which Service Interface is being used when the Java map is called. Is this possible? I don't remember seeing it listed as part of a dynamic configuration entry and I can't find a list of valid System.getProperty() options.
Any ideas on how this could be done? If not, then I will just add a parameter to the java map and send in the information that way.
Request clarification before answering.
Hi,
In the TransformationInput input, the interface should be in the XI Header. Have you tried input.getInputHeader().getInterface(); ?
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for this. I completely missed this during research.
if you are comfortable writing java map,this should help you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.