visiyo / AutoStoreWorkflows

Open Source Repo for Sample AutoStore CFGs, Scripts, and Questions
MIT License
8 stars 5 forks source link

Knowledge Loader - use original filename after OCR component #4

Open PaulKroon opened 7 years ago

PaulKroon commented 7 years ago

Workflow components: Knowledge Loader - OCR -Send to Folder

situation:

I want to use the original filename without '0001'. Is this possible.

Possible solution: In the xml file (in the KO file) there is 'Name' value with original name (see file, yellow marked). Should be logical that you can use this in naming the file, but can figure out how to do this. (I tried ~ASX::%Name%~)

image

njcaruso commented 7 years ago

I'm not sure why you're getting 0001 appended. What version of AutoStore are you on?

I tried to replicate but was not successful. See video here, it worked great for me: https://www.useloom.com/share/ff048bcc616e472fa8babb5ee78db9ea

PaulKroon commented 7 years ago

He Nick, place the OCR component in the second step and run again. The whole idea in using KO files is to break up the workflow and be able to use several OCR components to process the files, so place it in the second step is best practice isn't it.

Op 7 mrt. 2017 04:19 schreef "Nick Caruso" notifications@github.com:

I'm not sure why you're getting 0001 appended. What version of AutoStore are you on?

I tried to replicate but was not successful. See video here, it worked great for me: https://www.useloom.com/share/ff048bcc616e472fa8babb5ee78db9ea

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/visiyo/AutoStoreWorkflows/issues/4#issuecomment-284609732, or mute the thread https://github.com/notifications/unsubscribe-auth/AXIiECewyA_6d4O3ZT5glk3cL91P9Javks5rjMymgaJpZM4MTlav .

njcaruso commented 7 years ago

Sorry, you're absolutely right. But I just moved updated the CFG, but was not able to replicate your results. Can you paste a link to a config please? And what version of AutoStore are you on? I'm on AS7 SP3.

PaulKroon commented 7 years ago

I'm on AS7 SP3. I looked at the getOriginalFileName in the repocitory, but on my machine got the same result (adding 0001) as with my solutions. The behaviour is only there when you run a PDF file through the workflow, so maybe you only tried with textfiles?