cancel
Showing results for 
Search instead for 
Did you mean: 

Question File Adapter

0 Kudos

Hi all,

Is there any way to process only plain text messages that contain an "X" in its content?

I need to process only TXT message that contain on some of his line an "X" .

I think that I can make it with "Content conversion" and the property "ignoreError" active, but I think that this is a bad solution because the comunication channel was in error all the time until the message contain "x".

Thanks for all!.


Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

I have solved this problem with a EJB Module. With this module I read all the message content and when I arrive to the correct position, I checked if the context  have a X or not.

Thanks for all!!

Reggards.

Answers (1)

Answers (1)

azharshaikh
Active Contributor
0 Kudos

hi Alvaro,

Is this line "X" coming in a fixed position or it can appear randomly at any line/position?

If the position is fix..you can check that value using Xpath conditions in the Receiver/Interface Determination...and pass the file to correct mapping or else forward it back to temp/archive directory without processing it...

If the position of X is random..then i guess you need to scan the entire file using Java Mapping and process accordingly

Regards,

Azhar