cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver channel file-name

Former Member
0 Kudos

Hi,

Scenario File -> File (using an SFTP adapter)

Is there anyway I can configure my receiver determination in a way to look at a file-name which determines which comm channel is used? The mapping does not contain this info, only the filename so I can't look at the mapping..

Thanks,

Jan

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

In your receiver determination conditions, you have an option to use context objects there instead of xPath. There is a context object called FileName.

Hope this helps,

Mark

Edited by: Mark Dihiansan on Jun 10, 2011 7:59 AM

Former Member
0 Kudos

awesome, thanks this will work.. Do you know if I can use <filename> as a right hand operand? for example if the filename is:

GoodsMovement_20110610.Ready can I specify GoodsMovemen which will pick up all those specific files?

Former Member
0 Kudos

awesome, thanks this will work.. Do you know if I can use <filename> as a right hand operand? for example if the filename is:

GoodsMovement_20110610.Ready can I specify GoodsMovemen which will pick up all those specific files?

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Do you know if I can use <filename> as a right hand operand?

No, it is not possible to use contextObjects and xpath in the right hand operand. The values there are always hardcoded.

for example if the filename is:

GoodsMovement_20110610.Ready can I specify GoodsMovemen which will pick up all those specific files?

If you will be picking files, you should use file sender instead Filename would be GoodsMovement_*

Hope this helps,

Mark

Answers (0)