Skip to Content
avatar image
Former Member

Can we control the triggering of sender file adapter

Hi,

Can we control the tiggering of Sender file adapter with option of Run OS command before message processing

This option is available in Sender communication channel, what are the limitations of this option?

My actual requirement is to see the target folder whether it is empty or not, if empty then I can trigger the interface.

For this I want to write shell script whihc execute at OS level to check whether the target is empty or not, But the constraint is will this can control the triggering of sender adapter.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Aug 05, 2008 at 01:32 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 05, 2008 at 02:02 PM

    Hi Sekhar,

    I guess this can help you control the file pick up.

    If your shell script works well then using the same you can modify the filename or its extension if the target folder is empty.

    Say in the sender file adapter you set the source-filename as "inbound_*.ready". Now when originally the source file is dropped into the source folder (by any other process) let it be named as "inbound_001.pending" and your script will change the file name to "inbound_001.ready" if the target directory is empty. I dont think you need to use the pre processing OS command for this.

    Does it make any sense?

    Regards,

    Suddha

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 08, 2009 at 10:56 AM

    ok

    Add comment
    10|10000 characters needed characters exceeded