SAP Hybris suite , Hybris tutorial, Java, J2ee Stuff Online-

How can prioritise file feed import order in hot folder in hybirs - interview question 2017

Open 1 Answers 405 Views
Hello Friends,

Can you please explain to prioritise the which file will import first during file import in hot folder in hybris

1 Answer

You can use below code snippet:

<file:inbound-channel-adapter id="batchFilexyz"
        directory="" filename-regex="^(.*)_(\d+)\.csv"
        comparator="xyzFileOrderComparator" auto-startup="#{autoStartProduct}">


<bean id="xyzFileOrderComparator"
        <property name="prefixPriority">
                <!-- default priority is 0 -->
                <entry key="File_4" value="1" />
                <entry key="File_3" value="2" />
                <entry key="File_2" value="3" />
                <entry key="File_1" value="4" />
answered Jul 7, 2017 by Piyush