Order Of Processing Csv Files In Bartender Follow

0
Avatar
Legacy Poster

Dear
We are receiving in batch CSV-txt files in a specific directory from our ERP system for printing process orders . At this moment bartender always takes the first order he received and this will be processed, in the meantime, when the software is printing the first label, other orders are placed in the directory. When he is finished processing the first order, it could be possible that there already 4 or 5 other orders are placed in this directory. Now bartender takes again the first order he sees, and this can be order 5.
The problem is now, that the order of printing is not the same as the order of releasing the process orders. The user needs first to sort the labels for adding it to the process orders.
Is there a way that we can manage this , so bartender needs to print in order of the receiving time ?

Ex.
Receiving order 1 -> Commander is processing order1
Receiving order 2 -> Commander is processing order1
Receiving order 3 -> Commander is processing order1
Receiving order 4 -> Commander has finished order1 and now is processing order 4

It should be
Receiving order 1 -> Commander is processing order1
Receiving order 2 -> Commander is processing order1
Receiving order 3 -> Commander is processing order1
Receiving order 4 -> Commander has finished order1 and needs to process order 2

1 comments

0
Avatar
Shotaro Ito
Moderator
Comment actions Permalink

[quote name='Diederd' timestamp='1320829458' post='1015']
Is there a way that we can manage this , so bartender needs to print in order of the receiving time ?
[/quote]

Hi Diederd,
When trigger files were dropped in very short period of time, Commander would process trigger file by ascending order of file name.
Use single process for command handler, and name trigger files by time stamp by milliseconds like
"TRIGGER20110925_103508_021.csv"
"TRIGGER20110925_103508_043.csv"
"TRIGGER20110925_103508_530.csv"

or name trigger files in serial number like
"TRIGGER000265790.dd"
"TRIGGER000265791.dd"
"TRIGGER000265792.dd"

If you use BarTender Enterprise Automation Edition and assign multiple processes to a Command handler to speed up process, consider use of BarTender XML script to control print order.
You can place multiple formats in a XML Script trigger, and specify text database to connect or embed text database by CDATA tag.
(for XML trigger please check BarTender online Help > Automating BarTender > Automation with BarTender XML Script)

These post might help in your case, too.
[url="http://seagullscientific.invisionzone.com/index.php?/topic/261-print-order-from-trigger-files-with-individual-rows-of-data/"]Print Order From Trigger Files With Individual Rows Of Data[/url]

Hope that helps.

Please sign in to leave a comment.