sorter
once you confirmed that the document has been detected correctly the sorter will put it into specified directories or trigger pre-defined actions (e.g. mail it so somebody)
flow description
the program roughly executes as follows.
- database connection is established.
- the base class is being instanciated to work provide output and other supporting functionalities
- the program then goes into
/data/sort
(a local folder needs to be mapped viadocker run
command) and looks for*.pdf
files
foreach found pdf the following flow is executed:
- the file name is split up into its parts
- date
- company
- subject
- recipient
- amount
- tags
- based on the gathered data paperyard checks archive / sort rules