on 03-05-2019 8:41 PM
Hi All,
I have a scenario
In one operation mapping , I have 3 mappings
1.Idoc to idoc --> message mapping
2.Idoc to json --> Java mapping
3.json to a field + 4 extra fields --> Java mapping
Now in 1st mapping (Idoc to Idoc) I'm getting a plant number in one field, I have to map that field value in 3rd mapping (Java mapping) in one of the 4 extra fields
How can I approach it?
I planned to write a UDF in FL on the first mapping and calling that FL in 3rd java mapping, is this approach will work? Or any best way to get it.
Thanks
Ranjith
Find out the field mapping in the target idoc field of 1st Mapping.
That value is definitely passed to your 2nd and eventually 3rd mapping. You need to access that field in you 3rd Java Mapping and do the formatting accordingly.
If value created in the 1st mapping is not coming to 3rd mapping then you need to create an additional field to pass the value to your 3rd mapping.
Global container is visible only in different UDF of same MM. It is not accessible in a separate mapping.
Thanks,
Apu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ranjith!
I haven't ever tried it myself, but at first sight:
1. Try to use Global container object within UDF to save value at first step and to read it back in the third step (but I'm not sure about the possibility to access Global container in java mapping).
2. Try to make use of output mapping parameter.
3. Create extra field for your purpose or use Dynamic Configuration.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.