Skip to Content
0
Jul 26, 2016 at 05:09 AM

DynamicAttributeChangeBean Clarification - Determine the target folder based on the dynamic values contained in the file name

566 Views

Hi All.

i'm referring DynamicAttributeChangeBean - The no-mapping solution to changing Dynamic Configuration ... dynamically! and i achieved my renaming the passthrough scenario with a help of the DACB module. and i would link to appreciate the effort of Eng swee Yeoh.

and i have some other scenario as well. can any one please suggest is below feature is available or not.

in mentioned link Scenario 5, if my case is Partner1_002_InvoiceNumber123.xml (ie invoice number) is unique, what setup has do be done, i tried it but not getting, if give the default prefix and post-fix only it's taking.

my requirement is

expected file name

WPS_SOUTH_388_SH010060030008.xml.asc

WPS_SOUTH_389_SH010060030009.xml.asc

WPS_NORTH_388_SH010060030009.xml.asc

WPS_NORTH_389_SH010060030010.xml.asc

target folder is

/Target/file/SOUTH (both WPS_SOUTH_388_SH010060030008.xml.asc and WPS_SOUTH_389_SH010060030009.xml.asc file to be placed)

/Target/file/NORTH (both WPS_NORTH_388_SH010060030009.xml.asc and WPS_NORTH_389_SH010060030010.xml.asc file to be placed)

if i give regex: WPS_(\d+)_388_SH010060030008.xml.asc only the file which has the same prefix and postfix is taking. i tried with wild (*)char as well it's not working.

how can i route to this, can you please suggest whether it can be achieved or not.

Regards

Ramesh