Page 1 of 1

Moving files on text extraction during auto import

PostPosted:Sun Aug 18, 2019 7:51 am
by tvsuhail
How we can move the files based on the content in the OCR extracted document? Document is being auto imported using a crontab, and OCR done upon auto importing using tesseract ocr.

I have tried an automation rule as attached screenshots on text extraction to find the keyword, then add the category if exists, but not working.

Re: Moving files on text extraction during auto import

PostPosted:Sun Aug 18, 2019 8:34 am
by jllort
Share the screenshot with the event type visible ( in the top of the current screenshot the events used are hidden -> click on the search icon at top).

Re: Moving files on text extraction during auto import

PostPosted:Sun Aug 18, 2019 8:59 am
by tvsuhail
It is text extraction, attached the with event.

Re: Moving files on text extraction during auto import

PostPosted:Tue Aug 20, 2019 9:22 am
by tvsuhail
Any help would be really appreciated... :)

Re: Moving files on text extraction during auto import

PostPosted:Thu Aug 22, 2019 12:00 pm
by jllort
HasKeyword validation does not work with the content extracted from the document it only works with the keywords you have previously set from the user interface. MIght be here's the mistake? and you should create your own validation -> https://docs.openkm.com/kcenter/view/ok ... ation.html

I suggest upgrading to the latest OpenKM version 6.3.8 ( if you are not there ) what comes with the plugin architecture.

Also might be interested in OpenKM personal development environment ( virtual machine ready to be used ). Take a look here https://www.openkm.com/en/download.html

Re: Moving files on text extraction during auto import

PostPosted:Thu Aug 22, 2019 12:14 pm
by tvsuhail
Thank you, I will look into it. I am already on 6.3.8.

Re: Moving files on text extraction during auto import

PostPosted:Sat Aug 24, 2019 12:04 pm
by tvsuhail
So, adding a Validation class to find the string under existing Text Extractor will work? Do you have any similar class?

Re: Moving files on text extraction during auto import

PostPosted:Sun Aug 25, 2019 11:30 am
by tvsuhail
I solved it using trigger on update of ocr column to move the files to respective folders.. :)