cancel
Showing results for 
Search instead for 
Did you mean: 

XPATH in JAVA Mapping

madanmohan_agrawal
Contributor
0 Kudos

Hi,

I want to store a value in XPATH inside JAVA Mapping (and then I will use the XPATH in Receiver Determination to put some condition).

Please suggest some way how to store a value in XPATH inside JAVA Mapping.

Regards,

Madan Agrawal

Accepted Solutions (0)

Answers (3)

Answers (3)

madanmohan_agrawal
Contributor
0 Kudos

The problem is solved.

In IR, I created the Receivers dynamically using JAVA Mapping and in ID I use the Enhanced Receiver Determination. It worked.

Regards,

Madan Agrawal

0 Kudos

hi,

XPath is used to navigate through elements and attributes in an XML document.

For more information on using the xpath in your Receiver Determination, go through the below link:

Regards

Venkat

MichalKrawczyk
Active Contributor
0 Kudos

hi,

xpath is just a link to your XML value

nothing more so if you need to use xpatch just put the value in the XML file

anywhere

Regards,

Michal Krawczyk

madanmohan_agrawal
Contributor
0 Kudos

>>xpath is just a link to your XML value

>>nothing more so if you need to use xpatch just put the value in the XML file

>>anywhere

Hi Michal,

My input file is a text file. and the structure of the text file is very complex to convert it into XML so I have choosen to use JAVA Mapping to route the text file to destination.

Requirement is to send the file to two destination based on the value of a field inside text file.

so inside my java mapping I want to store that value in XPATH (which I will use in Receiver determination to put a condition to route the file to two destination) .

Please suggest if it is possible.

Also please suggest if there is any other way to acheive this ( to put a condition in RD while I am using Java mapping in IM)

Regards,

Madan Agrawal

Former Member
0 Kudos

Hi Madan ,

I would suggest to store the value in <dynamic configuration>.

Search the threads for dynamic configurarion.

It is possible to write into dynamic configuration with java mapping

regards Mario

madanmohan_agrawal
Contributor
0 Kudos

>>I would suggest to store the value in <dynamic configuration>.

Thankz Mario,

But please suggest how to use the dynamic configuration to send the file to two destination.

>>Search the threads for dynamic configurarion.

>>It is possible to write into dynamic configuration with java mapping

I know how to store the value in dynamic configuration inside JAVA Mapping.

regards,

Madan Agrawal

Former Member
0 Kudos

Hi,

design a BPM, which proccesses the JAVA-Mapping. In the JAVA-Mapping write to the dyn. Attrbs.

a) Configure a receiver-Determination (from initial sender to BPM )

b) Configure a receiver-Determinations (from BPM sender to possible receivers)

in (b) make a condition on the value inside the dyn. Attrbs.

Regards

Mario

stefan_grube
Active Contributor
0 Kudos

> Requirement is to send the file to two destination based on the value of a field inside text file.

> so inside my java mapping I want to store that value in XPATH (which I will use in Receiver determination to put a condition to route the file to two destination) .

This is not possible, as the receiver determination is executed before the mapping.

You can use enhanced receiver determination to determine the receiver in your Java mapping directly. In that case you need a rule inside the Java Mapping to determine the receiver directly.

Regards

Stefan

Former Member
0 Kudos

see if this is possible

have 2 different interfaces for each destination, based on the value create 2 different messages inside JAVA mapping