Moving files on text extraction during auto import

We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
tvsuhail
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: Sat Aug 17, 2019 11:10 am

Moving files on text extraction during auto import

Post by tvsuhail » Sun Aug 18, 2019 7:51 am

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.
Attachments
Automation_2.JPG
Automation_1.JPG

jllort
Moderator
Moderator
Posts: 10830
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Moving files on text extraction during auto import

Post by jllort » Sun Aug 18, 2019 8:34 am

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).

tvsuhail
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: Sat Aug 17, 2019 11:10 am

Re: Moving files on text extraction during auto import

Post by tvsuhail » Sun Aug 18, 2019 8:59 am

It is text extraction, attached the with event.
Attachments
Automation_3.JPG

tvsuhail
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: Sat Aug 17, 2019 11:10 am

Re: Moving files on text extraction during auto import

Post by tvsuhail » Tue Aug 20, 2019 9:22 am

Any help would be really appreciated... :)

jllort
Moderator
Moderator
Posts: 10830
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Moving files on text extraction during auto import

Post by jllort » Thu Aug 22, 2019 12:00 pm

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

tvsuhail
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: Sat Aug 17, 2019 11:10 am

Re: Moving files on text extraction during auto import

Post by tvsuhail » Thu Aug 22, 2019 12:14 pm

Thank you, I will look into it. I am already on 6.3.8.

tvsuhail
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: Sat Aug 17, 2019 11:10 am

Re: Moving files on text extraction during auto import

Post by tvsuhail » Sat Aug 24, 2019 12:04 pm

So, adding a Validation class to find the string under existing Text Extractor will work? Do you have any similar class?

tvsuhail
Fresh Boarder
Fresh Boarder
Posts: 10
Joined: Sat Aug 17, 2019 11:10 am

Re: Moving files on text extraction during auto import

Post by tvsuhail » Sun Aug 25, 2019 11:30 am

I solved it using trigger on update of ocr column to move the files to respective folders.. :)

Post Reply